|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DirectoryDao
Stores and retrieves directories. Directories are used for identifying a collection of users, groups and memberships.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 find
com.atlassian.crowd.exception.DirectoryNotFoundException - if there is no directory with the specified ID
com.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 find
com.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 persist
com.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 persist
com.atlassian.crowd.exception.DirectoryNotFoundException - if the directory is not found in the data store
void remove(com.atlassian.crowd.embedded.api.Directory directory)
throws com.atlassian.crowd.exception.DirectoryNotFoundException
directory - the directory to remove
com.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 store
QueryBuilder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||