com.sas.hls.security.group
Class Group

java.lang.Object
  extended by com.sas.hls.security.group.GroupDescriptor
      extended by com.sas.hls.security.group.Group
All Implemented Interfaces:
Identifiable, AclPrincipal, Principal, Serializable

public class Group
extends GroupDescriptor

Group is a collection of principals (users or other groups) and may be identified by a name and context. A Group is associated with and scoped to a context where it is defined. Group contexts are objects that are implement the GroupContext interface. See GroupContext. Examples of group contexts are Organization, Project and Analysis.

See Also:
Serialized Form

Constructor Summary
Group(ObjectIdentity groupContext, String name, String identifier, String principalId, String principalName, String description, Set<Principal> members)
          Constructor
Group(ObjectIdentity groupContext, String name, String identifier, String principalId, String principalName, String description, Set<Principal> members, long revision)
          Constructor
 
Method Summary
 Set<Principal> getMembers()
          Get the members of this group.
 void setMembers(Set<Principal> members)
          Set the members of this group.
 
Methods inherited from class com.sas.hls.security.group.GroupDescriptor
equals, getDescription, getGroupContext, getIdentifier, getName, getObjectType, getPrincipalId, getPrincipalName, getRevision, hashCode, setDescription, setIdentifier, setName, setObjectType, setRevision
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Group

public Group(ObjectIdentity groupContext,
             String name,
             String identifier,
             String principalId,
             String principalName,
             String description,
             Set<Principal> members,
             long revision)
Constructor

Parameters:
groupContext - the context of this group
name - the name of this group
identifier - the unique identifier for this group
principalId - the principal identifier for this group
principalName - the principal name for this group
description - the description of this group
members - the members of this group
revision - the internal revision number for this group

Group

public Group(ObjectIdentity groupContext,
             String name,
             String identifier,
             String principalId,
             String principalName,
             String description,
             Set<Principal> members)
Constructor

Parameters:
groupContext - the context of this group
name - the name of this group
identifier - the unique identifier for this group
principalId - the principal identifier for this group
principalName - the principal name for this group
description - the description of this group
members - the members of this group
Method Detail

getMembers

public Set<Principal> getMembers()
Get the members of this group.

Returns:
the members

setMembers

public void setMembers(Set<Principal> members)
Set the members of this group.

Parameters:
members - the members to set


Copyright (c) 2014, SAS Institute Inc., Cary, NC, USA