org.broadleafcommerce.openadmin.server.security.domain
Class ForgotPasswordSecurityTokenImpl

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.security.domain.ForgotPasswordSecurityTokenImpl
All Implemented Interfaces:
Serializable, ForgotPasswordSecurityToken

@Entity
public class ForgotPasswordSecurityTokenImpl
extends Object
implements ForgotPasswordSecurityToken

Created by bpolster.

See Also:
Serialized Form

Field Summary
protected  Long adminUserId
           
protected  Date createDate
           
protected  String token
           
protected  Date tokenUsedDate
           
protected  boolean tokenUsedFlag
           
 
Constructor Summary
ForgotPasswordSecurityTokenImpl()
           
 
Method Summary
 boolean equals(Object o)
           
 Long getAdminUserId()
          Return the userId that this token was created for.
 Date getCreateDate()
          Date the token was created
 String getToken()
          Returns the security token.
 Date getTokenUsedDate()
          Date the token was used to reset the password.
 int hashCode()
           
 boolean isTokenUsedFlag()
          Returns true if the token has already been used.
 void setAdminUserId(Long adminUserId)
          Store the userId that this token is associated with.
 void setCreateDate(Date createDate)
          Set the generation date for the token.
 void setToken(String token)
          Sets the security token.
 void setTokenUsedDate(Date tokenUsedDate)
          Set the date the token was used to reset the password.
 void setTokenUsedFlag(boolean tokenUsedFlag)
          Sets the token used flag.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token

protected String token

createDate

protected Date createDate

tokenUsedDate

protected Date tokenUsedDate

adminUserId

protected Long adminUserId

tokenUsedFlag

protected boolean tokenUsedFlag
Constructor Detail

ForgotPasswordSecurityTokenImpl

public ForgotPasswordSecurityTokenImpl()
Method Detail

getToken

public String getToken()
Description copied from interface: ForgotPasswordSecurityToken
Returns the security token.

Specified by:
getToken in interface ForgotPasswordSecurityToken
Returns:

setToken

public void setToken(String token)
Description copied from interface: ForgotPasswordSecurityToken
Sets the security token.

Specified by:
setToken in interface ForgotPasswordSecurityToken

getCreateDate

public Date getCreateDate()
Description copied from interface: ForgotPasswordSecurityToken
Date the token was created

Specified by:
getCreateDate in interface ForgotPasswordSecurityToken
Returns:

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: ForgotPasswordSecurityToken
Set the generation date for the token.

Specified by:
setCreateDate in interface ForgotPasswordSecurityToken

getTokenUsedDate

public Date getTokenUsedDate()
Description copied from interface: ForgotPasswordSecurityToken
Date the token was used to reset the password.

Specified by:
getTokenUsedDate in interface ForgotPasswordSecurityToken
Returns:

setTokenUsedDate

public void setTokenUsedDate(Date tokenUsedDate)
Description copied from interface: ForgotPasswordSecurityToken
Set the date the token was used to reset the password.

Specified by:
setTokenUsedDate in interface ForgotPasswordSecurityToken

getAdminUserId

public Long getAdminUserId()
Description copied from interface: ForgotPasswordSecurityToken
Return the userId that this token was created for.

Specified by:
getAdminUserId in interface ForgotPasswordSecurityToken
Returns:

setAdminUserId

public void setAdminUserId(Long adminUserId)
Description copied from interface: ForgotPasswordSecurityToken
Store the userId that this token is associated with.

Specified by:
setAdminUserId in interface ForgotPasswordSecurityToken

isTokenUsedFlag

public boolean isTokenUsedFlag()
Description copied from interface: ForgotPasswordSecurityToken
Returns true if the token has already been used.

Specified by:
isTokenUsedFlag in interface ForgotPasswordSecurityToken

setTokenUsedFlag

public void setTokenUsedFlag(boolean tokenUsedFlag)
Description copied from interface: ForgotPasswordSecurityToken
Sets the token used flag.

Specified by:
setTokenUsedFlag in interface ForgotPasswordSecurityToken

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.