Package com.sas.lsaf.security.membership
Class Membership
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.security.membership.MembershipDescriptor
com.sas.lsaf.security.membership.Membership
- All Implemented Interfaces:
Identifiable,Serializable
The representation of the membership of a membership context.
- Since:
- 1.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMembership(ObjectIdentity context, long revision, Set<Principal> members) It is not intended or recommended that the consumer of this API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the members of the membership.longGets the internal revision number of the membership.inthashCode()voidsetMembers(Set<Principal> members) Sets the members of the membership.toString()Methods inherited from class com.sas.lsaf.security.membership.MembershipDescriptor
getContextMethods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
Constructor Details
-
Membership
It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the memberships returned by the API.- Parameters:
context- the context identity with which the membership is associated.revision- the internal revision number of the membership.members- the current members of the membership.
-
-
Method Details
-
getRevision
public long getRevision()Gets the internal revision number of the membership.- Returns:
- The internal revision number of the membership
-
getMembers
Gets the members of the membership.- Returns:
- The members of the membership.
-
setMembers
Sets the members of the membership.- Parameters:
members- the members of the membership.
-
hashCode
public int hashCode()- Overrides:
hashCodein classMembershipDescriptor
-
equals
- Overrides:
equalsin classMembershipDescriptor
-
toString
- Overrides:
toStringin classMembershipDescriptor
-