org.norther.tammi.root.realm
Class IdBasedPersistentUser
java.lang.Object
org.norther.tammi.root.realm.SimplePersistentUser
org.norther.tammi.root.realm.IdBasedPersistentUser
- All Implemented Interfaces:
- Serializable, Cloneable, PersistentUser
public class IdBasedPersistentUser
- extends SimplePersistentUser
The implementation of the PersistentUser
to support ids.
- Version:
- $Id: IdBasedPersistentUser.java,v 1.6 2009/09/28 15:08:35 cvsimp Exp $
- Author:
- Marketta Priha
- See Also:
- Serialized Form
Method Summary |
Object |
getId()
Gets the unique id of the persistent user. |
void |
setId(Object id)
Sets the unique id of the persistent user. |
Methods inherited from class org.norther.tammi.root.realm.SimplePersistentUser |
clone, equals, getAccountState, getLastVisit, getLocale, getMsisdn, getName, getPassword, getRoles, getUsername, hashCode, setAccountState, setLastVisit, setLocale, setMsisdn, setPassword, setRoles, setUsername, toString |
IdBasedPersistentUser
public IdBasedPersistentUser()
- The default constructor.
IdBasedPersistentUser
public IdBasedPersistentUser(String name,
String pswd)
- Constructs a new user.
- Parameters:
name
- the username.pswd
- the password.
getId
public Object getId()
- Gets the unique id of the persistent user.
- Specified by:
getId
in interface PersistentUser
- Overrides:
getId
in class SimplePersistentUser
- Returns:
- the user id.
setId
public void setId(Object id)
- Sets the unique id of the persistent user.
- Specified by:
setId
in interface PersistentUser
- Overrides:
setId
in class SimplePersistentUser
- Parameters:
id
- the user id.
Copyright © 2004 The Norther Organization. All rights reserved.