org.broadleafcommerce.profile.core.domain
Class CustomerForgotPasswordSecurityTokenImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.core.domain.CustomerForgotPasswordSecurityTokenImpl
All Implemented Interfaces:
Serializable, CustomerForgotPasswordSecurityToken

@Entity
public class CustomerForgotPasswordSecurityTokenImpl
extends Object
implements CustomerForgotPasswordSecurityToken

Created by bpolster.

See Also:
Serialized Form

Field Summary
protected  Date createDate
           
protected  Long customerId
           
protected  String token
           
protected  Date tokenUsedDate
           
protected  boolean tokenUsedFlag
           
 
Constructor Summary
CustomerForgotPasswordSecurityTokenImpl()
           
 
Method Summary
 boolean equals(Object o)
           
 Date getCreateDate()
          Date the token was created
 Long getCustomerId()
          Id associated with this forgot password token.
 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 setCreateDate(Date createDate)
          Set the generation date for the token.
 void setCustomerId(Long customerId)
          Id associated with this forgot password 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

customerId

protected Long customerId

tokenUsedFlag

protected boolean tokenUsedFlag
Constructor Detail

CustomerForgotPasswordSecurityTokenImpl

public CustomerForgotPasswordSecurityTokenImpl()
Method Detail

getToken

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

Specified by:
getToken in interface CustomerForgotPasswordSecurityToken
Returns:

setToken

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

Specified by:
setToken in interface CustomerForgotPasswordSecurityToken

getCreateDate

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

Specified by:
getCreateDate in interface CustomerForgotPasswordSecurityToken
Returns:

setCreateDate

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

Specified by:
setCreateDate in interface CustomerForgotPasswordSecurityToken

getTokenUsedDate

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

Specified by:
getTokenUsedDate in interface CustomerForgotPasswordSecurityToken
Returns:

setTokenUsedDate

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

Specified by:
setTokenUsedDate in interface CustomerForgotPasswordSecurityToken

getCustomerId

public Long getCustomerId()
Description copied from interface: CustomerForgotPasswordSecurityToken
Id associated with this forgot password token.

Specified by:
getCustomerId in interface CustomerForgotPasswordSecurityToken
Returns:

setCustomerId

public void setCustomerId(Long customerId)
Description copied from interface: CustomerForgotPasswordSecurityToken
Id associated with this forgot password token.

Specified by:
setCustomerId in interface CustomerForgotPasswordSecurityToken

isTokenUsedFlag

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

Specified by:
isTokenUsedFlag in interface CustomerForgotPasswordSecurityToken

setTokenUsedFlag

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

Specified by:
setTokenUsedFlag in interface CustomerForgotPasswordSecurityToken

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.