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 ChangeEmailRequest

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

@Entity
public class ChangeEmailRequest
extends AbstractBasicEntity
implements JDOMable

intermediate storage for a pending email-address-change of a User. TODO: this class could actually be derived form ChangePasswordRequest...

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

Constructor Summary
protected ChangeEmailRequest()
          Deprecated. 
  ChangeEmailRequest(User u, java.lang.String e)
          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 getEmail()
          returns the email of the ChangeEmailRequest.
 java.lang.String getToken()
          the token of the ChangeEmailRequest.
 User getUser()
           
 void setEmail(java.lang.String e)
          sets the email for the ChangeEmailRequest.
 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

ChangeEmailRequest

@Deprecated
protected ChangeEmailRequest()
Deprecated. 

used for HibernateTM.


ChangeEmailRequest

public ChangeEmailRequest(User u,
                          java.lang.String e)
creates a new ChangeEmailRequest from a given email and a given User.

Parameters:
e - the email
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

getEmail

public final java.lang.String getEmail()
returns the email of the ChangeEmailRequest.

Returns:
the email of the ChangeEmailRequest

setEmail

public final void setEmail(java.lang.String e)
sets the email for the ChangeEmailRequest.

Parameters:
e - the email to set

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