|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExpirableUserTokenDao
DAO for ExpirableUserToken
| Method Summary | |
|---|---|
ExpirableUserToken |
add(ExpirableUserToken token)
Persist the given token |
com.atlassian.fugue.Option<ExpirableUserToken> |
findByToken(String token)
Find the token with the given random hash |
boolean |
removeByDirectoryAndUsername(long directoryId,
String username)
Remove all the tokens matching the username and directory id |
boolean |
removeByToken(String token)
Removes the token with the given random hash |
boolean |
removeExpiredTokens(Date expiryDate)
Remove all the tokens whose expiry date is older than the given cutoff date |
| Method Detail |
|---|
com.atlassian.fugue.Option<ExpirableUserToken> findByToken(String token)
token - a random hash
ExpirableUserToken add(ExpirableUserToken token)
throws ObjectAlreadyExistsException
token - a token
ObjectAlreadyExistsException - if a token with the same random hash already existsboolean removeByToken(String token)
token - a random hash
boolean removeExpiredTokens(Date expiryDate)
expiryDate - a date
boolean removeByDirectoryAndUsername(long directoryId,
String username)
directoryId - directory where the user livesusername - username to remove tokens for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||