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()
          Zero-arg constructor.
MembershipDescriptor(MembershipContext context)
          MembershipDescriptor constructor given a MembershipContext.
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 MembershipContext 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(MembershipContext 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()
Zero-arg constructor.


MembershipDescriptor

public MembershipDescriptor(MembershipContext 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(MembershipContext context)
Set the context that this MembershipDescriptor represents.

Parameters:
context - the context that this membership represents.

getContext

public MembershipContext 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) 2012, SAS Institute Inc., Cary, NC, USA