com.sas.hls.security.membership
Class MembershipDescriptor

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

public class MembershipDescriptor
extends Object
implements Serializable

A light-weight representation of the membership of some membership context.

See Also:
Serialized Form

Constructor Summary
MembershipDescriptor()
          Default constructor.
MembershipDescriptor(ObjectIdentity context)
          MembershipDescriptor constructor given a MembershipContext.
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 ObjectIdentity getContext()
          Get the context that this MembershipDescriptor represents.
 long getRevision()
          Get the internal revision number of this object.
 int hashCode()
          Return a hash code value for the object.
 void setContext(ObjectIdentity context)
          Set the context that this MembershipDescriptor represents.
 void setRevision(long revision)
          Set the internal revision number of this object.
 String toString()
          Return a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MembershipDescriptor

public MembershipDescriptor()
Default constructor.


MembershipDescriptor

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

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

getRevision

public long getRevision()
Get the internal revision number of this object.

Returns:
the revision the internal revision number of this object

setRevision

public void setRevision(long revision)
Set the internal revision number of this object.

Parameters:
revision - the revision to set

setContext

public void setContext(ObjectIdentity context)
Set the context that this MembershipDescriptor represents.

Parameters:
context - the context that this membership represents.

getContext

public ObjectIdentity getContext()
Get the context that this MembershipDescriptor represents.

Returns:
the context that this membership represents.

hashCode

public int hashCode()
Return a hash code value for the object.

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

equals

public boolean equals(Object obj)
Indicate whether some other object is "equal to" this one.

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

toString

public String toString()
Return a string representation of the object.

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


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