public class OfBizDirectoryDao extends Object implements com.atlassian.crowd.embedded.spi.DirectoryDao
Constructor and Description |
---|
OfBizDirectoryDao(OfBizDelegator ofBizDelegator,
com.atlassian.cache.CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.crowd.embedded.api.Directory |
add(com.atlassian.crowd.embedded.api.Directory directory) |
List<com.atlassian.crowd.embedded.api.Directory> |
findAll() |
com.atlassian.crowd.embedded.api.Directory |
findById(long id) |
com.atlassian.crowd.embedded.api.Directory |
findByName(String name) |
void |
flushCache()
Invoked by
OfBizCacheFlushingManager to ensure caches are being flushed in the right order on
XMLRestoreFinishedEvent |
void |
remove(com.atlassian.crowd.embedded.api.Directory directory) |
List<com.atlassian.crowd.embedded.api.Directory> |
search(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.embedded.api.Directory> query) |
com.atlassian.crowd.embedded.api.Directory |
update(com.atlassian.crowd.embedded.api.Directory directory) |
void |
updateDirectoryPosition(long directoryId,
int position) |
public OfBizDirectoryDao(OfBizDelegator ofBizDelegator, com.atlassian.cache.CacheManager cacheManager)
public com.atlassian.crowd.embedded.api.Directory findById(long id) throws com.atlassian.crowd.exception.DirectoryNotFoundException
findById
in interface com.atlassian.crowd.embedded.spi.DirectoryDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public com.atlassian.crowd.embedded.api.Directory findByName(String name) throws com.atlassian.crowd.exception.DirectoryNotFoundException
findByName
in interface com.atlassian.crowd.embedded.spi.DirectoryDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public List<com.atlassian.crowd.embedded.api.Directory> findAll()
findAll
in interface com.atlassian.crowd.embedded.spi.DirectoryDao
public com.atlassian.crowd.embedded.api.Directory add(com.atlassian.crowd.embedded.api.Directory directory)
add
in interface com.atlassian.crowd.embedded.spi.DirectoryDao
public com.atlassian.crowd.embedded.api.Directory update(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryNotFoundException
update
in interface com.atlassian.crowd.embedded.spi.DirectoryDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public void remove(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryNotFoundException
remove
in interface com.atlassian.crowd.embedded.spi.DirectoryDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public List<com.atlassian.crowd.embedded.api.Directory> search(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.embedded.api.Directory> query)
search
in interface com.atlassian.crowd.embedded.spi.DirectoryDao
public void flushCache()
OfBizCacheFlushingManager
to ensure caches are being flushed in the right order on
XMLRestoreFinishedEvent
public void updateDirectoryPosition(long directoryId, int position) throws com.atlassian.crowd.exception.DirectoryNotFoundException
com.atlassian.crowd.exception.DirectoryNotFoundException
Copyright © 2002-2015 Atlassian. All Rights Reserved.