public interface DirectoryDao
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.crowd.embedded.api.Directory |
add(com.atlassian.crowd.embedded.api.Directory directory)
Store a new directory in the data store.
|
List<com.atlassian.crowd.embedded.api.Directory> |
findAll()
Returns the list of all directories in the data store, or empty list if there are no directories.
|
com.atlassian.crowd.embedded.api.Directory |
findById(long directoryId)
Returns the directory with the specified ID, throwing
DirectoryNotFoundException if it cannot be found. |
com.atlassian.crowd.embedded.api.Directory |
findByName(String name)
Returns the directory with the specified name, throwing
DirectoryNotFoundException if it cannot be found. |
void |
remove(com.atlassian.crowd.embedded.api.Directory directory)
Removes the specified directory from the data store.
|
List<com.atlassian.crowd.embedded.api.Directory> |
search(EntityQuery<com.atlassian.crowd.embedded.api.Directory> entityQuery)
Search for directories matching the specified query.
|
com.atlassian.crowd.embedded.api.Directory |
update(com.atlassian.crowd.embedded.api.Directory directory)
Persists any changes made to the provided directory.
|
com.atlassian.crowd.embedded.api.Directory findById(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException
DirectoryNotFoundException if it cannot be found.directoryId - the ID of the directory to findcom.atlassian.crowd.exception.DirectoryNotFoundException - if there is no directory with the specified IDcom.atlassian.crowd.embedded.api.Directory findByName(String name) throws com.atlassian.crowd.exception.DirectoryNotFoundException
DirectoryNotFoundException if it cannot be found.name - the name of the directory to findcom.atlassian.crowd.exception.DirectoryNotFoundException - if there is no directory with the specified nameList<com.atlassian.crowd.embedded.api.Directory> findAll()
com.atlassian.crowd.embedded.api.Directory add(com.atlassian.crowd.embedded.api.Directory directory)
directory - the directory to persistcom.atlassian.crowd.embedded.api.Directory update(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryNotFoundException
directory - the directory which has changes to persistcom.atlassian.crowd.exception.DirectoryNotFoundException - if the directory is not found in the data storevoid remove(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryNotFoundException
directory - the directory to removecom.atlassian.crowd.exception.DirectoryNotFoundException - if the directory does not existList<com.atlassian.crowd.embedded.api.Directory> search(EntityQuery<com.atlassian.crowd.embedded.api.Directory> entityQuery)
entityQuery - the search query to run against the directory data storeQueryBuilder.queryFor(java.lang.Class<T>, com.atlassian.crowd.search.EntityDescriptor)Copyright © 2018 Atlassian. All rights reserved.