com.atlassian.crowd.dao.token
Interface TokenDAO
- All Superinterfaces:
- SearchableTokenStorage, SessionTokenStorage
- All Known Implementing Classes:
- TokenDAOHibernate, TokenDAOMemory
public interface TokenDAO
- extends SessionTokenStorage, SearchableTokenStorage
Manages persistence of Token
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 of all active tokens.
- Throws:
org.springframework.dao.DataAccessException
- If the tokens could not be retrieved.
saveAll
void saveAll(Collection<Token> tokens)
- 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.
- Throws:
org.springframework.dao.DataAccessException
Copyright © 2013 Atlassian. All Rights Reserved.