|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationManager
Application management API.
Method Summary | |
---|---|
Application |
add(Application application)
Will add the given Application to Crowd |
List<Application> |
findAll()
Retrieves all the applications in the Crowd system. |
Application |
findById(long id)
Find an application by its ID. |
Application |
findByName(String name)
Find an application by its name. |
void |
remove(Application application)
Remove an application. |
void |
removeDirectoryFromApplication(Directory directory,
Application application)
Will remove a directory from an application. |
List<Application> |
search(EntityQuery query)
Search applications. |
Application |
update(Application application)
Updates an application's details. |
Application |
updateCredential(Application application,
PasswordCredential passwordCredential)
Takes an application with a List of credentials that are unencrypted, encrypts them and then updates the application in the database with the encrypted credentials |
Method Detail |
---|
Application add(Application application) throws InvalidCredentialException
application
- the Application to add.
InvalidCredentialException
- if there was an error encrypting the Applications passwordApplication findById(long id) throws ObjectNotFoundException
id
- database ID.
ObjectNotFoundException
- application with requested ID does not exist.Application findByName(String name) throws ObjectNotFoundException
name
- name of application.
ObjectNotFoundException
- application with requested name does not exist.void remove(Application application) throws ApplicationManagerException
application
- application to remove.
ApplicationManagerException
- if the remove operation is not permitted on the given application.void removeDirectoryFromApplication(Directory directory, Application application) throws ApplicationManagerException
directory
- the directory you wish to disociateapplication
- the application you wish to apply this dissociation too
ApplicationManagerException
- thrown if anything goes bad, updating the applicationApplication update(Application application) throws ApplicationManagerException
application
- modified application.
ApplicationManagerException
- error updating application, ie. if you try to rename a permanent application or try to deactivate the CROWD application.Application updateCredential(Application application, PasswordCredential passwordCredential) throws ApplicationManagerException
application
- an application with unencrypted password credentialspasswordCredential
- unencrypted password.
ApplicationManagerException
- not allowed to update.List<Application> search(EntityQuery query)
query
- Application entity query.
List<Application> findAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |