com.sas.hls.security.group
Class GroupDescriptor

java.lang.Object
  extended by com.sas.hls.security.group.GroupDescriptor
All Implemented Interfaces:
Identifiable, Principal, Serializable
Direct Known Subclasses:
Group

public class GroupDescriptor
extends Object
implements Principal

A light-weight client representation of a group. See Groupfor details.

See Also:
Serialized Form

Constructor Summary
GroupDescriptor(ObjectIdentity groupContext, String name, String identifier, String description)
           
GroupDescriptor(ObjectIdentity groupContext, String name, String identifier, String description, long revision)
           
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 String getDescription()
          Get the description of this object
 ObjectIdentity getGroupContext()
          Get the context of this group
 String getIdentifier()
          Get the identifier of this object
 String getName()
          Get the name of this object
 String getObjectType()
          Get the objectType of this object.
 String getPrincipalId()
           
 String getPrincipalName()
           
 long getRevision()
          Get the internal revision number of this object.
 int hashCode()
          Return a hash code value for the object.
 void setDescription(String description)
          Set the description of this object
 void setGroupContext(ObjectIdentity groupContext)
          Set the context of this group
 void setIdentifier(String identifier)
          Set the identifier of this object
 void setName(String name)
          Set the name of this object
 void setObjectType(String objectType)
          Set the objectType of this object.
 void setPrincipalId(String principalId)
           
 void setPrincipalName(String principalName)
           
 void setRevision(long revision)
          Set the internal revision number of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupDescriptor

public GroupDescriptor(ObjectIdentity groupContext,
                       String name,
                       String identifier,
                       String description,
                       long revision)
Parameters:
groupContext -
name -
identifier -
description -
revision -

GroupDescriptor

public GroupDescriptor(ObjectIdentity groupContext,
                       String name,
                       String identifier,
                       String description)
Parameters:
groupContext -
name -
identifier -
description -
Method Detail

getRevision

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

Returns:
the internal revision number of this object.

setRevision

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

Parameters:
revision - The new internal revision number of this object.

getObjectType

public String getObjectType()
Get the objectType of this object.

Specified by:
getObjectType in interface Identifiable
Returns:
the objectType

setObjectType

public void setObjectType(String objectType)
Set the objectType of this object.

Parameters:
objectType - the objectType to set

getIdentifier

public String getIdentifier()
Get the identifier of this object

Specified by:
getIdentifier in interface Identifiable
Returns:
the identifier

setIdentifier

public void setIdentifier(String identifier)
Set the identifier of this object

Parameters:
identifier - the identifier to set

getName

public String getName()
Get the name of this object

Returns:
the name

setName

public void setName(String name)
Set the name of this object

Parameters:
name - the name to set

getDescription

public String getDescription()
Get the description of this object

Returns:
the description

setDescription

public void setDescription(String description)
Set the description of this object

Parameters:
description - the description to set

getPrincipalId

public String getPrincipalId()
Returns:
the principalId

setPrincipalId

public void setPrincipalId(String principalId)
Parameters:
principalId - the principalId to set

getPrincipalName

public String getPrincipalName()
Returns:
the principalName

setPrincipalName

public void setPrincipalName(String principalName)
Parameters:
principalName - the principalName to set

getGroupContext

public ObjectIdentity getGroupContext()
Get the context of this group

Returns:
the groupContext

setGroupContext

public void setGroupContext(ObjectIdentity groupContext)
Set the context of this group

Parameters:
groupContext - the groupContext to set

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)


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