com.sas.hls.security.membership
Class Membership

java.lang.Object
  extended by com.sas.hls.security.membership.MembershipDescriptor
      extended by com.sas.hls.security.membership.Membership
All Implemented Interfaces:
Serializable

public class Membership
extends MembershipDescriptor

A client representation of the membership of some membership context.

See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class com.sas.hls.security.membership.MembershipDescriptor
getContext, getRevision, setContext, setRevision
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Membership

public Membership()
Zero-arg constructor.


Membership

public Membership(ObjectIdentity context)
MembershipDescriptor constructor given a MembershipContext.

Parameters:
context - The context for which to create a MembershipDescriptor.

Membership

public Membership(ObjectIdentity context,
                  Principal... members)
Membership constructor given the context it is for and the list of Principals to be in the membership.

Parameters:
context - The context for which to create a MembershipDescriptor.
members - The comma-delimited list of Principals to include in this membership.

Membership

public Membership(ObjectIdentity context,
                  Set<Principal> members)
Membership constructor given the context it is for and the list of Principals to be in the membership.

Parameters:
context - The context for which to create a MembershipDescriptor.
members - The set of Principals to include in this membership.
Method Detail

getMembers

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

Returns:
the set of principals that are the members of this membership

setMembers

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

Parameters:
members - the set of principals that are the members of this membership

hashCode

public int hashCode()
Description copied from class: MembershipDescriptor
Return a hash code value for the object.

Overrides:
hashCode in class MembershipDescriptor
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Description copied from class: MembershipDescriptor
Indicate whether some other object is "equal to" this one.

Overrides:
equals in class MembershipDescriptor
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Description copied from class: MembershipDescriptor
Return a string representation of the object.

Overrides:
toString in class MembershipDescriptor
See Also:
Object.toString()


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