public class Privilege extends Object implements Serializable, Comparable<Privilege>
Constructor and Description |
---|
Privilege()
Zero-arg constructor.
|
Privilege(String identifier,
String name)
Constructor specifying the name and identifier of this privilege.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Privilege p)
Compares this object with the specified object for order.
|
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.
|
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>
p
- the privilege to be compared.ClassCastException
- if the specified object's type prevents it from being compared to this object.Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA