|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistentRole
The interface to a class representing a role associated to a user in the persistent storage.
The class implementing this interface needs to be mapped to for instance a table in a relational database.
In OJB, the mapping is based on the extent class name e.g. "org.norther.tammi.core.realm.SimplePersistentRole" and the fields need to match to the attributes of this class i.e. "Name". One of the fields need to be a primary key.
| Method Summary | |
|---|---|
String |
getDescription()
Gets the description of the role. |
Object |
getId()
Gets the unique id of the persistent role. |
String |
getName()
Gets the role to be used in authorization i.e. |
void |
setDescription(String descr)
Sets the description of the role. |
void |
setId(Object id)
Sets the unique id of the persistent role. |
void |
setName(String name)
Sets the role to be used in authorization i.e. |
| Method Detail |
|---|
Object getId()
void setId(Object id)
id - the user id.String getName()
void setName(String name)
name - the role name.String getDescription()
void setDescription(String descr)
descr - the description.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||