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


Method Summary
 Token add(Token token)
           
 Token findByID(long ID)
           
 Token findByIdentifierHash(java.lang.String identifierHash)
           
 Token findByRandomHash(java.lang.String randomHash)
           
 void remove(long directoryId, java.lang.String name)
           
 void remove(Token token)
           
 void removeAccessedBefore(java.util.Date expiryTime)
           
 void removeAll()
           
 void removeAll(long directoryId)
           
 java.util.List<Token> search(EntityQuery query)
           
 Token update(Token token)
           
 
Methods inherited from interface com.atlassian.crowd.util.persistence.hibernate.ObjectDao
getPersistentClass, load, remove, save, update
 

Method Detail

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.