public class RoleDescriptor extends Object implements Identifiable
Role
Modifier and Type | Field and Description |
---|---|
static String |
OBJECT_TYPE
Represents the type name of a Role object.
|
Constructor and Description |
---|
RoleDescriptor(ObjectIdentity roleContext,
String name,
String identifier,
String description)
Constructor
|
RoleDescriptor(ObjectIdentity roleContext,
String name,
String identifier,
String description,
long revision)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String OBJECT_TYPE
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 rolepublic 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()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA