|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TokenDAO
Manages persistence of Token
| Method Summary | |
|---|---|
Token |
add(Token token)
Persists a new token. |
Token |
findByID(long ID)
Finds token by its id. |
Token |
findByIdentifierHash(java.lang.String identifierHash)
Finds token by identifier hash. |
Token |
findByRandomHash(java.lang.String randomHash)
Finds token by random hash. |
java.util.Collection<Token> |
loadAll()
Used when switching implementations. |
void |
remove(long directoryId,
java.lang.String name)
Remove token. |
void |
remove(Token token)
Removes a token. |
void |
removeAccessedBefore(java.util.Date expiryTime)
Remove all tokens by expiryTime. |
void |
removeAll()
Wipes all tokens from the store. |
void |
removeAll(long directoryId)
Remove all tokens associated with the given directory id. |
void |
saveAll(java.util.Collection<Token> tokens)
Used when switching implementations. |
java.util.List<Token> |
search(EntityQuery query)
Searches for token based on criteria. |
Token |
update(Token token)
|
| Method Detail |
|---|
Token findByRandomHash(java.lang.String randomHash)
throws ObjectNotFoundException
randomHash - Random hash.
ObjectNotFoundException - if the token identified by the random hash cannot be found.
Token findByIdentifierHash(java.lang.String identifierHash)
throws ObjectNotFoundException
identifierHash - Identifier hash.
ObjectNotFoundException - if the token identified by the identifier hash cannot be found.Token add(Token token)
token - Token.
Token update(Token token)
throws ObjectNotFoundException
token - token to update.
ObjectNotFoundExceptionvoid remove(Token token)
token - Token.java.util.List<Token> search(EntityQuery query)
query - Query.
Token findByID(long ID)
throws ObjectNotFoundException
ID - id.
ObjectNotFoundException - if the Token cannot be found.
void remove(long directoryId,
java.lang.String name)
directoryId - Directory id.name - User or application name.void removeAll(long directoryId)
directoryId - Directory id.void removeAccessedBefore(java.util.Date expiryTime)
expiryTime - Expiry time.void removeAll()
org.springframework.dao.DataAccessExceptionjava.util.Collection<Token> loadAll()
org.springframework.dao.DataAccessException - If the tokens could not be retrieved.void saveAll(java.util.Collection<Token> tokens)
tokens - all tokens to add.
org.springframework.dao.DataAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||