|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.root.realm.SimplePersistentUser
public class SimplePersistentUser
The default implementation of PersistentUser.
| Constructor Summary | |
|---|---|
SimplePersistentUser()
The default constructor. |
|
SimplePersistentUser(String name,
String pswd)
Constructs a new user. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
boolean |
equals(Object other)
|
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. |
int |
hashCode()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimplePersistentUser()
public SimplePersistentUser(String name,
String pswd)
name - the username.pswd - the password.| Method Detail |
|---|
public Object clone()
clone in class Objectpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Object getId()
PersistentUser
getId in interface PersistentUserpublic void setId(Object id)
PersistentUser
setId in interface PersistentUserid - the user id.public String getUsername()
PersistentUser
getUsername in interface PersistentUserpublic void setUsername(String name)
PersistentUser
setUsername in interface PersistentUsername - the username.public String getPassword()
PersistentUser
getPassword in interface PersistentUserpublic void setPassword(String pswd)
PersistentUser
setPassword in interface PersistentUserpswd - the password.public String getLocale()
PersistentUser
getLocale in interface PersistentUserpublic void setLocale(String loc)
PersistentUser
setLocale in interface PersistentUserloc - the locale.public Collection getRoles()
PersistentUser
getRoles in interface PersistentUserPersistentRole objects.public void setRoles(Collection roles)
PersistentUser
setRoles in interface PersistentUserroles - the roles as a collection of PersistentRole
objects.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||