Class OfBizDirectoryDao
java.lang.Object
com.atlassian.jira.crowd.embedded.ofbiz.OfBizDirectoryDao
- All Implemented Interfaces:
com.atlassian.crowd.embedded.spi.DirectoryDao
public class OfBizDirectoryDao
extends Object
implements com.atlassian.crowd.embedded.spi.DirectoryDao
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOfBizDirectoryDao
(OfBizDelegator ofBizDelegator, OfBizTransactionManager ofBizTransactionManager, com.atlassian.cache.CacheManager cacheManager, QueryDslAccessor queryDslAccessor) -
Method Summary
Modifier and TypeMethodDescriptioncom.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
Invoked byOfBizCacheFlushingManager
to ensure caches are being flushed in the right order onXMLRestoreFinishedEvent
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)
-
Field Details
-
DIRECTORY_SECRET_PREFIX
- See Also:
-
-
Constructor Details
-
OfBizDirectoryDao
public OfBizDirectoryDao(OfBizDelegator ofBizDelegator, OfBizTransactionManager ofBizTransactionManager, com.atlassian.cache.CacheManager cacheManager, QueryDslAccessor queryDslAccessor)
-
-
Method Details
-
findById
public com.atlassian.crowd.embedded.api.Directory findById(long id) throws com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
findById
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
findByName
public com.atlassian.crowd.embedded.api.Directory findByName(String name) throws com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
findByName
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
findAll
- Specified by:
findAll
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
-
add
public com.atlassian.crowd.embedded.api.Directory add(com.atlassian.crowd.embedded.api.Directory directory) - Specified by:
add
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
-
update
public com.atlassian.crowd.embedded.api.Directory update(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
update
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
remove
public void remove(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
remove
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
search
public List<com.atlassian.crowd.embedded.api.Directory> search(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.embedded.api.Directory> query) - Specified by:
search
in interfacecom.atlassian.crowd.embedded.spi.DirectoryDao
-
flushCache
public void flushCache()Invoked byOfBizCacheFlushingManager
to ensure caches are being flushed in the right order onXMLRestoreFinishedEvent
-
updateDirectoryPosition
public void updateDirectoryPosition(long directoryId, int position) throws com.atlassian.crowd.exception.DirectoryNotFoundException - Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-