TorqueUser(Persistent obj) This Constructor is used when the UserPeerManager
has retrieved a list of Database Objects from the peer and
must 'wrap' them into TorqueRole Objects.
Method Summary
public int
getAccessCounter() Gets the access counter for a user from perm storage.
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.
This Constructor is used when the UserPeerManager
has retrieved a list of Database Objects from the peer and
must 'wrap' them into TorqueRole Objects. You should not use it directly!
Parameters: obj - An Object from the peer
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.
Returns the value of the objectdata for this user.
Objectdata is a VARBINARY column in the table used
to store the permanent storage table from the User
object.
The bytes in the objectdata for this 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.
Stores the object in the database. If the object is new,
it inserts it; otherwise an update is performed.
Parameters: torqueName - The name under which the object should be stored. exception: Exception - This method might throw an exceptions
Stores the object in the database. If the object is new,
it inserts it; otherwise an update is performed. This method
is meant to be used as part of a transaction, otherwise use
the save() method and the connection details will be handled
internally
Parameters: con - A Connection object to save the object exception: Exception - This method might throw an exceptions
Put an object into permanent storage. If the value is null,
it will convert that to a "" because the underlying storage
mechanism within TorqueUser 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 TorqueUser is currently a Hashtable and
null is not a valid value.
Parameters: name - The object's name. Parameters: value - The object.
Implement this method if you wish to be notified when the User
has been Unbound from the session.
Parameters: event - Indication of value/session unbinding.
Fields inherited from org.apache.turbine.services.security.torque.TorqueObject