|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DirectoryDAO
Persistance methods necessary to modify integrated directories
with the Crowd security server.
Method Summary | |
---|---|
Directory |
add(Directory directory)
Adds the Directory to the datastore. |
Directory |
findByID(long ID)
Finds a given Directory based on the passed in ID . |
Directory |
findByName(java.lang.String name)
Finds the Directory based on the passed in directory name. |
void |
remove(Directory directory)
Removes a Directory from the datastore. |
java.util.List<Directory> |
search(SearchContext searchContext)
Performs a search for Directory s based on a given SearchContext |
Directory |
update(Directory directory)
Updates an Directory in the datastore. |
Methods inherited from interface com.atlassian.crowd.util.persistence.hibernate.ObjectDao |
---|
getPersistentClass, load, remove, save, update |
Method Detail |
---|
Directory add(Directory directory) throws org.springframework.dao.DataAccessException
Directory
to the datastore.
directory
- The directory to persist.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if adding the application fails.Directory findByID(long ID) throws ObjectNotFoundException, org.springframework.dao.DataAccessException
Directory
based on the passed in ID
.
ID
- the id of the Directory you are trying to find.
Directory
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if finding the directory fails.
ObjectNotFoundException
- If the Directory
based on the passed in ID is not found
java.util.List<Directory> search(SearchContext searchContext) throws org.springframework.dao.DataAccessException
Directory
s based on a given SearchContext
searchContext
- The search context to find a given list of directories.
List
of Directory
s found from the SearchContext.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if searching for the directory fails.Directory findByName(java.lang.String name) throws ObjectNotFoundException, org.springframework.dao.DataAccessException
Directory
based on the passed in directory name.
name
- The name of the directory to find.
Directory
from the datastore.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if finding the directory fails.
ObjectNotFoundException
- If the Directory
based on the passed in name is not found.
Directory update(Directory directory) throws ObjectNotFoundException, org.springframework.dao.DataAccessException
Directory
in the datastore.
directory
- The directory to update.
Directory
.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if updating the directory fails.
ObjectNotFoundException
- if the given Directory cannot be foundvoid remove(Directory directory) throws org.springframework.dao.DataAccessException
Directory
from the datastore.
directory
- The directory to remove.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if removing the directory fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |