|
||||||||||
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 |
java.util.List<Application> |
findAuthorisedApplications(RemotePrincipal principal)
Returns a list of applications the principal is authorised to authenticate with. |
Application |
findByID(long ID)
Find an application by its ID. |
Application |
findByName(java.lang.String name)
Find an application by its name. |
void |
remove(Application application)
|
void |
removeAllGroupMappings(long directoryID,
java.lang.String groupName)
Will remove all Group mappings from the Applications that are associated to the given directoryId with the given groupName |
void |
removeDirectoryFromAllApplications(Directory directory)
Will remove a given directory and its associated mapped objects, such as: ApplicationDirectoryPermission 's
GroupMapping 's and it's
DirectoryMapping
From all applications |
void |
removeDirectoryFromApplication(Directory directory,
Application application)
Will remove a directory from an application. |
java.util.List |
search(SearchContext searchContext)
Search applications. |
Application |
update(Application application)
Updates an application's details. |
Application |
updateCredentials(Application application)
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 ApplicationManagerException, InvalidCredentialException
application
- the Application to add.
InvalidCredentialException
- if there was an error encrypting the Applications password
ApplicationManagerException
Application findByID(long ID) throws ObjectNotFoundException
ID
- database ID.
ObjectNotFoundException
- application with requested ID does not exist.Application findByName(java.lang.String name) throws ObjectNotFoundException
name
- name of application.
ObjectNotFoundException
- application with requested name does not exist.void remove(Application application) throws ApplicationManagerException
ApplicationManagerException
void removeAllGroupMappings(long directoryID, java.lang.String groupName) throws ObjectNotFoundException
directoryID
- the directory associated to Application'sgroupName
- the name of the group to remove
ObjectNotFoundException
- if the given Directory cannot be found.void removeDirectoryFromApplication(Directory directory, Application application) throws ApplicationManagerException
ApplicationDirectoryPermission
's
GroupMapping
's and it's
DirectoryMapping
directory
- the directory you wish to disociateapplication
- the application you wish to apply this dissociation too
ApplicationManagerException
- thrown if anything goes bad, updating the applicationvoid removeDirectoryFromAllApplications(Directory directory) throws ApplicationManagerException
ApplicationDirectoryPermission
's
GroupMapping
's and it's
DirectoryMapping
From all applications
directory
- the directory to remove from all applications
ApplicationManagerException
- thrown if anything goes bad updating an applicationApplication update(Application application) throws ApplicationManagerException
application
- modified application.
ApplicationManagerException
- error updating application.Application updateCredentials(Application application) throws ApplicationManagerException, InvalidCredentialException
application
- an application with unencrypted password credentials
ApplicationManagerException
InvalidCredentialException
java.util.List search(SearchContext searchContext)
searchContext
- search criteria.
java.util.List<Application> findAuthorisedApplications(RemotePrincipal principal)
principal
- principal to search for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |