public class Membership extends MembershipDescriptor
Constructor and Description |
---|
Membership()
Zero-arg constructor.
|
Membership(ObjectIdentity context)
MembershipDescriptor constructor given a MembershipContext.
|
Membership(ObjectIdentity context,
Principal... members)
Membership constructor given the context it is for and the list of Principals to be in the membership.
|
Membership(ObjectIdentity context,
Set<Principal> members)
Membership constructor given the context it is for and the list of Principals to be in the membership.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one.
|
Set<Principal> |
getMembers()
Get the members of this membership.
|
int |
hashCode()
Return a hash code value for the object.
|
void |
setMembers(Set<Principal> members)
Set the members of this membership.
|
String |
toString()
Return a string representation of the object.
|
getContext, getRevision, setContext, setRevision
public Membership()
public Membership(ObjectIdentity context)
context
- The context for which to create a MembershipDescriptor.public Membership(ObjectIdentity context, Principal... members)
context
- The context for which to create a MembershipDescriptor.members
- The comma-delimited list of Principals to include in this membership.public Membership(ObjectIdentity context, Set<Principal> members)
context
- The context for which to create a MembershipDescriptor.members
- The set of Principals to include in this membership.public Set<Principal> getMembers()
public void setMembers(Set<Principal> members)
members
- the set of principals that are the members of this membershippublic int hashCode()
hashCode
in class MembershipDescriptor
Object.hashCode()
public boolean equals(Object obj)
equals
in class MembershipDescriptor
Object.equals(java.lang.Object)
public String toString()
toString
in class MembershipDescriptor
Object.toString()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA