pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.accesscontrol
Class ChangePasswordRequest

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.accesscontrol.ChangePasswordRequest
All Implemented Interfaces:
java.io.Serializable, JDOMable

@Entity
public class ChangePasswordRequest
extends AbstractBasicEntity
implements JDOMable

intermediate token-storage-object which is being used during a pending password-change of a User.

Version:
$Revision: 1377 $
Author:
Daniel Dietz
See Also:
Serialized Form

Constructor Summary
protected ChangePasswordRequest()
          Deprecated. 
  ChangePasswordRequest(User u)
          creates a new ChangeEmailRequest from a given email and a given User.
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          returns a JDOM-representation of the ChangeEmailRequest.
 java.util.Date getCreationTime()
          return the creation-time of the ChangeEmailRequest.
 java.lang.String getToken()
          the token of the ChangeEmailRequest.
 User getUser()
           
 void setToken(java.lang.String tok)
          sets a new token for the change-password-request.
 void setUser(User u)
          sets the User for the ChangeEmailRequest.
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangePasswordRequest

@Deprecated
protected ChangePasswordRequest()
Deprecated. 

used for HibernateTM.


ChangePasswordRequest

public ChangePasswordRequest(User u)
creates a new ChangeEmailRequest from a given email and a given User.

Parameters:
u - the User
Method Detail

getCreationTime

public final java.util.Date getCreationTime()
return the creation-time of the ChangeEmailRequest.

Returns:
the creation-time

getToken

public final java.lang.String getToken()
the token of the ChangeEmailRequest.

Returns:
the token

setToken

public final void setToken(java.lang.String tok)
sets a new token for the change-password-request.

Parameters:
tok - the new token for the change-password-request

getUser

public final User getUser()
Returns:
the user

setUser

public final void setUser(User u)
sets the User for the ChangeEmailRequest.

Parameters:
u - the user to set

deserializeToJDOM

public org.jdom.Element deserializeToJDOM()
returns a JDOM-representation of the ChangeEmailRequest.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
a JDOM-representation of the ChangeEmailRequest