A generic implementation of User interface.
This basic implementation contains the functionality that is
expected to be common among all User implementations.
You are welcome to extend this class if you wish to have
custom functionality in your user objects (like accessor methods
for custom attributes). Note that implementing a different scheme
of user data storage normally involves writing an implementation of
org.apache.turbine.services.security.UserManager interface.
author: Josh Lucas author: Jon S. Stevens author: John D. McNally author: Frank Y. Kim author: Craig D. Berry author: Eric Pugh author: Henning P. Schmiedehausen version: $Id: TurbineUser.java 278822 2005-09-05 19:53:05Z henning $
getPerm(String name, Object def) Get an object from permanent storage; return default if value
is null.
Parameters: name - The object's name. Parameters: def - A default value to return.
getTemp(String name, Object def) Get an object from temporary storage; return default if value
is null.
Parameters: name - The object's name. Parameters: def - A default value to return.
isConfirmed() This method reports whether or not the user has been confirmed
in the system by checking the User.CONFIRM_VALUE
column in the users record to see if it is equal to
User.CONFIRM_DATA.
Gets the last access date for this User. This is the last time
that the user object was referenced.
A Java Date with the last access date for the user.
Get an object from permanent storage; return default if value
is null.
Parameters: name - The object's name. Parameters: def - A default value to return. An Object with the given name.
Get an object from temporary storage; return default if value
is null.
Parameters: name - The object's name. Parameters: def - A default value to return. An Object with the given name.
This method reports whether or not the user has been confirmed
in the system by checking the User.CONFIRM_VALUE
column in the users record to see if it is equal to
User.CONFIRM_DATA.
True if the user has been confirmed.
Put an object into permanent storage. If the value is null,
it will convert that to a "" because the underlying storage
mechanism within TurbineUser is currently a Hashtable and
null is not a valid value.
Parameters: name - The object's name. Parameters: value - The object.
Put an object into temporary storage. If the value is null,
it will convert that to a "" because the underlying storage
mechanism within TurbineUser is currently a Hashtable and
null is not a valid value.
Parameters: name - The object's name. Parameters: value - The object.