|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrincipalDAO
Persistance methods necessary to modify an InternalDirectory
principal
.
Method Summary | |
---|---|
RemotePrincipal |
add(RemotePrincipal principal)
Adds the RemotePrincipal to the datastore. |
BatchResult<RemotePrincipal> |
addAll(java.util.Set<RemotePrincipal> principals)
Adds a collection of RemotePrincipal to the datastore. |
RemotePrincipal |
findByName(long directoryID,
java.lang.String name)
Finds the RemotePrincipal based on the passed in principal name. |
java.util.Collection<RemotePrincipal> |
findByNames(long directoryID,
java.util.Collection<java.lang.String> names)
Finds a collection of RemotePrincipal by
searching the directoryID and name primary keys. |
void |
remove(RemotePrincipal principal)
Removes a RemotePrincipal from the datastore. |
java.util.List<RemotePrincipal> |
search(SearchContext searchContext)
Performs a search for RemotePrincipal s based on a given SearchContext . |
RemotePrincipal |
update(RemotePrincipal principal)
Updates an RemotePrincipal in the datastore. |
Methods inherited from interface com.atlassian.crowd.util.persistence.hibernate.ObjectDao |
---|
getPersistentClass, load, remove, save, update |
Method Detail |
---|
RemotePrincipal add(RemotePrincipal principal) throws org.springframework.dao.DataAccessException
RemotePrincipal
to the datastore.
principal
- The principal to persist.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if adding the principal fails.BatchResult<RemotePrincipal> addAll(java.util.Set<RemotePrincipal> principals) throws org.springframework.dao.DataAccessException
RemotePrincipal
to the datastore.
This will attempt to batch process as much of the set as possible. If some principals fail,
it will still commit the principals that are successfully added.
If a principal exists, it will be updated with the new principal data (ie. overwrite).
principals
- The principals to persist.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if adding the principal fails.RemotePrincipal findByName(long directoryID, java.lang.String name) throws org.springframework.dao.DataAccessException, ObjectNotFoundException
RemotePrincipal
based on the passed in principal name.
name
- The name of the principal to find.directoryID
- the id of the Directory
you are searching
RemotePrincipal
from the datastore.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if finding the principal fails.
ObjectNotFoundException
- If the RemotePrincipal
based on the passed in name is not found.
RemotePrincipal update(RemotePrincipal principal) throws org.springframework.dao.DataAccessException
RemotePrincipal
in the datastore.
principal
- The principal to update.
RemotePrincipal
.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if updating the principal failsjava.util.List<RemotePrincipal> search(SearchContext searchContext) throws org.springframework.dao.DataAccessException, InvalidSearchTermException
RemotePrincipal
s based on a given SearchContext
.
searchContext
- The search context to find a given list of principal.
List
of RemotePrincipal
s found from the SearchContext.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if searching for the principal fails.
InvalidSearchTermException
- if not all required attributes for a search are present in the Contextvoid remove(RemotePrincipal principal) throws org.springframework.dao.DataAccessException
RemotePrincipal
from the datastore.
principal
- The principal to remove.
org.springframework.dao.DataAccessException
- Generic persistance exception thrown if removing the principal fails.java.util.Collection<RemotePrincipal> findByNames(long directoryID, java.util.Collection<java.lang.String> names) throws org.springframework.dao.DataAccessException
RemotePrincipal
by
searching the directoryID and name primary keys.
directoryID
- directory ID to restrict search to.names
- names to find.
org.springframework.dao.DataAccessException
- generic persistence exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |