Package com.sas.lsaf.security.group
Class Group
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.security.group.GroupDescriptor
com.sas.lsaf.security.group.Group
- All Implemented Interfaces:
Identifiable,Principal,Serializable
Group is a collection of principals (users or other groups) that are uniquely identified by a name and context. A
group is associated with and scoped to a context in which it is defined. Group contexts are contexts that are defined in the
repository hierarchy and that have the membership capability.
- Since:
- 1.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the members of the group.longGets the internal revision number of the object.inthashCode()voidsetMembers(Set<Principal> members) Sets the members of the group.toString()Methods inherited from class com.sas.lsaf.security.group.GroupDescriptor
getContext, getDescription, getName, getPrincipalId, getPrincipalName, setDescription, setNameMethods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.lsaf.core.Identifiable
getId, getTypeId
-
Constructor Details
-
Group
public Group(String id, ObjectIdentity context, String name, String description, long revision, Set<Principal> members) It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the groups returned by the API.- Parameters:
id- the unique identifier of the group.context- the context in which the group was defined.name- the name of the group.description- the description of the group.revision- the internal revision number of this group.members- the members of the group.
-
-
Method Details
-
getRevision
public long getRevision()Gets the internal revision number of the object.- Returns:
- The internal revision number of the object.
-
getMembers
Gets the members of the group.- Returns:
- The members.
-
setMembers
Sets the members of the group.- Parameters:
members- the members of the group.
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacePrincipal- Overrides:
hashCodein classGroupDescriptor
-
equals
- Specified by:
equalsin interfacePrincipal- Overrides:
equalsin classGroupDescriptor
-
toString
- Overrides:
toStringin classGroupDescriptor
-