public interface DirectoryDao
Modifier and Type | Method and Description |
---|---|
Directory |
add(Directory directory)
Store a new directory in the data store.
|
List<Directory> |
findAll()
Deprecated.
Use
search(EntityQuery) instead. Since v3.2.0 |
Directory |
findById(long directoryId)
Returns the directory with the specified ID, throwing
DirectoryNotFoundException if it cannot be found. |
Directory |
findByName(String name)
Returns the directory with the specified name, throwing
DirectoryNotFoundException if it cannot be found. |
void |
remove(Directory directory)
Removes the specified directory from the data store.
|
List<Directory> |
search(EntityQuery<Directory> entityQuery)
Search for directories matching the specified query.
|
Directory |
update(Directory directory)
Persists any changes made to the provided directory.
|
Directory findById(long directoryId) throws DirectoryNotFoundException
DirectoryNotFoundException
if it cannot be found.directoryId
- the ID of the directory to findDirectoryNotFoundException
- if there is no directory with the specified IDDirectory findByName(String name) throws DirectoryNotFoundException
DirectoryNotFoundException
if it cannot be found.name
- the name of the directory to findDirectoryNotFoundException
- if there is no directory with the specified name@Deprecated List<Directory> findAll()
search(EntityQuery)
instead. Since v3.2.0Directory add(Directory directory)
directory
- the directory to persistDirectory update(Directory directory) throws DirectoryNotFoundException
directory
- the directory which has changes to persistDirectoryNotFoundException
- if the directory is not found in the data storevoid remove(Directory directory) throws DirectoryNotFoundException
directory
- the directory to removeDirectoryNotFoundException
- if the directory does not existList<Directory> search(EntityQuery<Directory> entityQuery)
entityQuery
- the search query to run against the directory data storeQueryBuilder.queryFor(java.lang.Class<T>, com.atlassian.crowd.search.EntityDescriptor)
Copyright © 2021 Atlassian. All rights reserved.