|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sas.hls.security.privilege.Privilege
public class Privilege
A privilege represents a capability to perform some function or action in the system. A principal can be granted a privilege directly, or privileges can be combined into roles which are then associated with principals who are granted all the privileges in that role.
Constructor Summary | |
---|---|
Privilege()
Zero-arg constructor. |
|
Privilege(String identifier,
String name)
Constructor specifying the name and identifier of this privilege. |
Method Summary | |
---|---|
int |
compareTo(Privilege p)
|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one. |
String |
getIdentifier()
Get the identifier value of this privilege. |
String |
getName()
Get the name of this privilege. |
String |
getObjectType()
Get the objectType of this privilege object. |
int |
hashCode()
Return a hash code value for the object. |
void |
setIdentifier(String identifier)
Set the identifier value of this privilege. |
void |
setName(String name)
Set the name of this privilege. |
void |
setObjectType(String objectType)
Set the objectType of this privilege 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 |
---|
public Privilege()
public Privilege(String identifier, String name)
identifier
- the identifier to user for this privilegename
- the name to use for this privilegeMethod Detail |
---|
public String getIdentifier()
public void setIdentifier(String identifier)
identifier
- the identifier value of this privilege.public String getName()
public void setName(String name)
name
- the name to assign to this privilege.public String getObjectType()
public void setObjectType(String objectType)
objectType
- the objectType to setpublic 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()
public int compareTo(Privilege p)
compareTo
in interface Comparable<Privilege>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |