|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.root.realm.SimplePersistentRole
public class SimplePersistentRole
The default implementation of PersistentRole
.
Constructor Summary | |
---|---|
SimplePersistentRole()
The default constructor. |
|
SimplePersistentRole(String name)
Constructs a new role. |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object other)
|
String |
getDescription()
Gets the description of the role. |
Object |
getId()
Gets the unique id of the role. |
String |
getName()
Gets the role to be used in authorization i.e. |
String |
getUsername()
Gets the username of this role when applying user specific roles. |
int |
hashCode()
|
void |
setDescription(String descr)
Sets the description of the role. |
void |
setId(Object id)
Sets the unique id of the role. |
void |
setName(String name)
Sets the role to be used in authorization i.e. |
void |
setUsername(String name)
Sets the username of this role when applying user specific roles. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimplePersistentRole()
public SimplePersistentRole(String name)
name
- the role name.Method Detail |
---|
public Object clone()
clone
in class Object
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Object getId()
PersistentRole
getId
in interface PersistentRole
public void setId(Object id)
PersistentRole
setId
in interface PersistentRole
id
- the user id.public String getName()
PersistentRole
getName
in interface PersistentRole
public void setName(String name)
PersistentRole
setName
in interface PersistentRole
name
- the role name.public String getDescription()
PersistentRole
getDescription
in interface PersistentRole
public void setDescription(String descr)
PersistentRole
setDescription
in interface PersistentRole
descr
- the description.public String getUsername()
public void setUsername(String name)
name
- the username.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |