org.norther.tammi.root.realm
Class IdBasedPersistentUser

java.lang.Object
  extended by org.norther.tammi.root.realm.SimplePersistentUser
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.norther.tammi.root.realm.PersistentUser
PersistentUser.AccountState
 
Constructor Summary
IdBasedPersistentUser()
          The default constructor.
IdBasedPersistentUser(String name, String pswd)
          Constructs a new user.
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdBasedPersistentUser

public IdBasedPersistentUser()
The default constructor.


IdBasedPersistentUser

public IdBasedPersistentUser(String name,
                             String pswd)
Constructs a new user.

Parameters:
name - the username.
pswd - the password.
Method Detail

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.