com.sas.hls.security.group
Class GroupDescriptor

java.lang.Object
  extended by com.sas.hls.security.group.GroupDescriptor
All Implemented Interfaces:
Identifiable, AclPrincipal, 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 principalId, String principalName, String description)
          Constructor
GroupDescriptor(ObjectIdentity groupContext, String name, String identifier, String principalId, String principalName, String description, long revision)
          Constructor
 
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()
          Returns the principal id of the aclPrincipal
 String getPrincipalName()
          Returns the principal name of the aclPrincipal
 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 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 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 principalId,
                       String principalName,
                       String description,
                       long revision)
Constructor

Parameters:
groupContext - the context of this group
name - the name of this group
identifier - the unique identifier for this group
principalId - the principal identifier for this group
principalName - the principal name for this group
description - the description of this group
revision - the internal revision number for this group

GroupDescriptor

public GroupDescriptor(ObjectIdentity groupContext,
                       String name,
                       String identifier,
                       String principalId,
                       String principalName,
                       String description)
Constructor

Parameters:
groupContext - the context of this group
name - the name of this group
identifier - the unique identifier for this group
principalId - the principal identifier for this group
principalName - the principal name for this group
description - the description of this group
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()
Description copied from interface: AclPrincipal
Returns the principal id of the aclPrincipal

Specified by:
getPrincipalId in interface AclPrincipal
Returns:
the principalId

getPrincipalName

public String getPrincipalName()
Description copied from interface: AclPrincipal
Returns the principal name of the aclPrincipal

Specified by:
getPrincipalName in interface AclPrincipal
Returns:
the principalName

getGroupContext

public ObjectIdentity getGroupContext()
Get the context of this group

Returns:
the groupContext

hashCode

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

Specified by:
hashCode in interface AclPrincipal
Overrides:
hashCode in class Object
Returns:
a hash code representation of this object
See Also:
Object.hashCode()

equals

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

Specified by:
equals in interface AclPrincipal
Overrides:
equals in class Object
Parameters:
obj - to be compared
Returns:
true if the objects are equal, false otherwise
See Also:
Object.equals(java.lang.Object)


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