Package com.atlassian.crowd.dao.token
Interface TokenDAO
- All Superinterfaces:
SearchableTokenStorage,SessionTokenStorage
- All Known Implementing Classes:
TokenDAOMemory
Manages persistence of
Token-
Method Summary
Modifier and TypeMethodDescriptionloadAll()Used when switching implementations.voidsaveAll(Collection<Token> tokens) Used when switching implementations.Methods inherited from interface com.atlassian.crowd.dao.token.SearchableTokenStorage
searchMethods inherited from interface com.atlassian.crowd.dao.token.SessionTokenStorage
add, findByIdentifierHash, findByRandomHash, remove, remove, removeAll, removeAll, removeExcept, removeExpiredTokens, update
-
Method Details
-
loadAll
Collection<Token> loadAll()Used when switching implementations. Synchronisation is the caller's responsibility; don't allow calls to other methods while this is in progress if you need to guarantee that the data are complete.- Returns:
- Collection<Token> of all active tokens.
- Throws:
org.springframework.dao.DataAccessException- If the tokens could not be retrieved.
-
saveAll
Used when switching implementations. Synchronization is the caller's reponsibility; don't allow calls to other methods while this is in progress if you need to guarantee that the data are complete.- Parameters:
tokens- all tokens to add.
-