public class EncryptingDirectoryDAO extends Object implements DirectoryDao, DataReEncryptor
| Constructor and Description |
|---|
EncryptingDirectoryDAO() |
| Modifier and Type | Method and Description |
|---|---|
Directory |
add(Directory directory)
Store a new directory in the data store.
|
List<Directory> |
findAll()
Returns the list of all directories in the data store, or empty list if there are no directories.
|
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 |
reEncrypt()
Encrypts or re-encrypts existing data.
|
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.
|
void |
setDelegate(DirectoryDao delegate) |
void |
setDirectoryPasswordsEncryptor(DirectoryPasswordsEncryptor directoryPasswordsEncryptor) |
Directory |
update(Directory directory)
Persists any changes made to the provided directory.
|
public void setDelegate(DirectoryDao delegate)
public void setDirectoryPasswordsEncryptor(DirectoryPasswordsEncryptor directoryPasswordsEncryptor)
public Directory findById(long directoryId) throws DirectoryNotFoundException
DirectoryDaoDirectoryNotFoundException if it cannot be found.findById in interface DirectoryDaodirectoryId - the ID of the directory to findDirectoryNotFoundException - if there is no directory with the specified IDpublic Directory findByName(String name) throws DirectoryNotFoundException
DirectoryDaoDirectoryNotFoundException if it cannot be found.findByName in interface DirectoryDaoname - the name of the directory to findDirectoryNotFoundException - if there is no directory with the specified namepublic List<Directory> findAll()
DirectoryDaofindAll in interface DirectoryDaopublic Directory add(Directory directory)
DirectoryDaoadd in interface DirectoryDaodirectory - the directory to persistpublic Directory update(Directory directory) throws DirectoryNotFoundException
DirectoryDaoupdate in interface DirectoryDaodirectory - the directory which has changes to persistDirectoryNotFoundException - if the directory is not found in the data storepublic void remove(Directory directory) throws DirectoryNotFoundException
DirectoryDaoremove in interface DirectoryDaodirectory - the directory to removeDirectoryNotFoundException - if the directory does not existpublic List<Directory> search(EntityQuery<Directory> entityQuery)
DirectoryDaosearch in interface DirectoryDaoentityQuery - the search query to run against the directory data storeQueryBuilder.queryFor(java.lang.Class<T>, com.atlassian.crowd.search.EntityDescriptor)public void reEncrypt()
DataReEncryptorreEncrypt in interface DataReEncryptorCopyright © 2023 Atlassian. All rights reserved.