com.atlassian.crowd.dao.token
Class ResetPasswordTokenDaoMemory

java.lang.Object
  extended by com.atlassian.crowd.dao.token.ResetPasswordTokenDaoMemory
All Implemented Interfaces:
ResetPasswordTokenDao

public class ResetPasswordTokenDaoMemory
extends Object
implements ResetPasswordTokenDao

Stores ResetPasswordToken in memory.


Field Summary
static String CACHE_NAME
           
 
Constructor Summary
ResetPasswordTokenDaoMemory(CacheManager cacheManager)
           
 
Method Summary
 ResetPasswordToken addToken(ResetPasswordToken token)
          Adds the reset token to the DAO.
 ResetPasswordToken findTokenByUsername(String username)
          Finds the reset token by username.
 void removeTokenByUsername(String username)
          Removes the reset token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_NAME

public static final String CACHE_NAME
Constructor Detail

ResetPasswordTokenDaoMemory

public ResetPasswordTokenDaoMemory(CacheManager cacheManager)
Method Detail

addToken

public ResetPasswordToken addToken(ResetPasswordToken token)
Description copied from interface: ResetPasswordTokenDao
Adds the reset token to the DAO.

Specified by:
addToken in interface ResetPasswordTokenDao
Parameters:
token - reset token to add.
Returns:
reset token just added.

findTokenByUsername

public ResetPasswordToken findTokenByUsername(String username)
                                       throws ObjectNotFoundException
Description copied from interface: ResetPasswordTokenDao
Finds the reset token by username.

Specified by:
findTokenByUsername in interface ResetPasswordTokenDao
Parameters:
username - username used to search for the reset token
Returns:
reset password token
Throws:
ObjectNotFoundException - if no reset tokens for username could be found

removeTokenByUsername

public void removeTokenByUsername(String username)
Description copied from interface: ResetPasswordTokenDao
Removes the reset token.

Specified by:
removeTokenByUsername in interface ResetPasswordTokenDao
Parameters:
username - username used to remove reset token from the DAO.


Copyright © 2012 Atlassian. All Rights Reserved.