|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PersistentUser
The class representing a user in the persistent storage. This class needs to be mapped to a table in a relational database.
In OJB, the mapping is based on the extent class name e.g. "org.norther.tammi.core.realm.SimplePersistentUser" and the fields need to match to the attributes of this class i.e. "Name", "Password", "Locale" and "Roles". One of the fields need to be a primary key.
| Method Summary | |
|---|---|
Object |
getId()
Gets the unique id of the persistent user. |
String |
getLocale()
Gets the locale of the persistent user. |
String |
getPassword()
Gets the password of the persistent user. |
Collection |
getRoles()
Gets the roles of the persistent user. |
String |
getUsername()
Gets the unique name for login of the persistent user. |
void |
setId(Object id)
Sets the unique id of the persistent user. |
void |
setLocale(String loc)
Sets the locale of the persistent user. |
void |
setPassword(String pswd)
Sets the password of the persistent user. |
void |
setRoles(Collection roles)
Sets the roles of the persistent user. |
void |
setUsername(String name)
Sets the unique name for login of the persistent user. |
| Method Detail |
|---|
Object getId()
void setId(Object id)
id - the user id.String getUsername()
void setUsername(String name)
name - the username.String getPassword()
void setPassword(String pswd)
pswd - the password.String getLocale()
void setLocale(String loc)
loc - the locale.Collection getRoles()
PersistentRole objects.void setRoles(Collection roles)
roles - the roles as a collection of PersistentRole
objects.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||