com.atlassian.crowd.model.token
Interface TokenDAO
- All Superinterfaces:
- ObjectDao
- All Known Subinterfaces:
- TokenDAOPersistence
- All Known Implementing Classes:
- TokenDAOHibernate, TokenDAOMemory, TokenDAOProxy
public interface TokenDAO
- extends ObjectDao
findByRandomHash
Token findByRandomHash(java.lang.String randomHash)
throws ObjectNotFoundException
- Throws:
ObjectNotFoundException
findByIdentifierHash
Token findByIdentifierHash(java.lang.String identifierHash)
throws ObjectNotFoundException
- Throws:
ObjectNotFoundException
add
Token add(Token token)
update
Token update(Token token)
throws ObjectNotFoundException
- Parameters:
token - token to update.
- Returns:
- updates the last accessed date on the token (sets it to now).
- Throws:
ObjectNotFoundException
remove
void remove(Token token)
search
java.util.List<Token> search(EntityQuery query)
findByID
Token findByID(long ID)
throws ObjectNotFoundException
- Throws:
ObjectNotFoundException
remove
void remove(long directoryId,
java.lang.String name)
removeAll
void removeAll(long directoryId)
removeAccessedBefore
void removeAccessedBefore(java.util.Date expiryTime)
removeAll
void removeAll()
Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.