|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sas.hls.security.role.RoleDescriptor
public class RoleDescriptor
A light-weight representation of a Role defined in the system.See Role
Field Summary | |
---|---|
static String |
OBJECT_TYPE
Represents the type name of a Role object. |
Constructor Summary | |
---|---|
RoleDescriptor(ObjectIdentity roleContext,
String name,
String identifier,
String description)
Constructor |
|
RoleDescriptor(ObjectIdentity roleContext,
String name,
String identifier,
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 role. |
String |
getIdentifier()
Get the identifier of this object. |
String |
getName()
Get the name of this role. |
String |
getObjectType()
Get the object type of this item. |
long |
getRevision()
Get the internal revision number of this object. |
ObjectIdentity |
getRoleContext()
Get the context in which this role is defined. |
int |
hashCode()
Return a hash code value for the object. |
void |
setDescription(String description)
Set the description of this role. |
protected void |
setIdentifier(String identifier)
Get the identifier of this object. |
void |
setName(String name)
Set the name of this role. |
protected void |
setObjectType(String objectType)
Set the objectType of this object. |
protected void |
setRevision(long revision)
Set the internal revision number of this object. |
protected void |
setRoleContext(ObjectIdentity roleContext)
Set the context in which this role is defined. |
String |
toString()
Return a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String OBJECT_TYPE
Constructor Detail |
---|
public RoleDescriptor(ObjectIdentity roleContext, String name, String identifier, String description)
roleContext
- The context in which this role is being definedname
- The name of the role being createdidentifier
- The identifier value to use for this roledescription
- A description of this rolepublic RoleDescriptor(ObjectIdentity roleContext, String name, String identifier, String description, long revision)
roleContext
- The context in which this role is being definedname
- The name of the role being createdidentifier
- The identifier value to use for this roledescription
- A description of this rolerevision
- The internal revision number of this roleMethod Detail |
---|
public long getRevision()
protected void setRevision(long revision)
revision
- the revision to setprotected void setIdentifier(String identifier)
identifier
- the identifier to setpublic String getIdentifier()
Identifiable
getIdentifier
in interface Identifiable
public String getObjectType()
Identifiable
getObjectType
in interface Identifiable
public ObjectIdentity getRoleContext()
protected void setRoleContext(ObjectIdentity roleContext)
roleContext
- the roleContext to setprotected void setObjectType(String objectType)
objectType
- the objectType to setpublic void setName(String name)
name
- the name to give this rolepublic String getName()
public void setDescription(String description)
description
- the descriptionpublic String getDescription()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |