|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.manager.GenericManager
com.atlassian.crowd.manager.application.ApplicationManagerGeneric
public class ApplicationManagerGeneric
| Field Summary |
|---|
| Fields inherited from class com.atlassian.crowd.manager.GenericManager |
|---|
cacheManager, i18nHelper, logger, propertyManager, tokenDAO |
| Constructor Summary | |
|---|---|
ApplicationManagerGeneric()
|
|
| 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. |
boolean |
hasAccess(Application application,
RemotePrincipal principal)
Determine if a principal is authorised to authenticate with a given application. |
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. |
void |
setApplicationDAO(ApplicationDAO applicationDAO)
|
void |
setDirectoryDAO(DirectoryDAO directoryDAO)
|
void |
setPasswordEncoderFactory(PasswordEncoderFactory passwordEncoderFactory)
|
void |
setPermissionManager(PermissionManager permissionManager)
|
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 |
| Methods inherited from class com.atlassian.crowd.manager.GenericManager |
|---|
generateToken, genericValidateToken, getPropertyManager, getTokenDAO, hasAccess, hasAccess, setCacheManager, setI18nHelper, setPropertyManager, setTokenDAO |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationManagerGeneric()
| Method Detail |
|---|
public Application add(Application application)
throws InvalidCredentialException
ApplicationManager
add in interface ApplicationManagerapplication - the Application to add.
InvalidCredentialException - if there was an error encrypting the Applications password
public Application findByID(long ID)
throws ObjectNotFoundException
ApplicationManager
findByID in interface ApplicationManagerID - database ID.
ObjectNotFoundException - application with requested ID does not exist.
public Application findByName(java.lang.String name)
throws ObjectNotFoundException
ApplicationManager
findByName in interface ApplicationManagername - name of application.
ObjectNotFoundException - application with requested name does not exist.
public void remove(Application application)
throws ApplicationManagerException
remove in interface ApplicationManagerApplicationManagerException
public void removeAllGroupMappings(long directoryID,
java.lang.String groupName)
throws ObjectNotFoundException
ApplicationManager
removeAllGroupMappings in interface ApplicationManagerdirectoryID - the directory associated to Application'sgroupName - the name of the group to remove
ObjectNotFoundException - if the given Directory cannot be found.
public void removeDirectoryFromApplication(Directory directory,
Application application)
throws ApplicationManagerException
ApplicationManagerApplicationDirectoryPermission's
GroupMapping's and it's
DirectoryMapping
removeDirectoryFromApplication in interface ApplicationManagerdirectory - the directory you wish to disociateapplication - the application you wish to apply this dissociation too
ApplicationManagerException - thrown if anything goes bad, updating the application
public void removeDirectoryFromAllApplications(Directory directory)
throws ApplicationManagerException
ApplicationManagerApplicationDirectoryPermission's
GroupMapping's and it's
DirectoryMapping
From all applications
removeDirectoryFromAllApplications in interface ApplicationManagerdirectory - the directory to remove from all applications
ApplicationManagerException - thrown if anything goes bad updating an applicationpublic java.util.List search(SearchContext searchContext)
ApplicationManager
search in interface ApplicationManagersearchContext - search criteria.
public Application update(Application application)
throws ApplicationManagerException
ApplicationManager
update in interface ApplicationManagerapplication - modified application.
ApplicationManagerException - error updating application.
public Application updateCredentials(Application application)
throws ApplicationManagerException,
InvalidCredentialException
ApplicationManager
updateCredentials in interface ApplicationManagerapplication - an application with unencrypted password credentials
ApplicationManagerException
InvalidCredentialExceptionpublic java.util.List<Application> findAuthorisedApplications(RemotePrincipal principal)
findAuthorisedApplications in interface ApplicationManagerprincipal - principal to search for.
public boolean hasAccess(Application application,
RemotePrincipal principal)
application - application to check.principal - principal to check.
true iff the above conditions are met.public void setApplicationDAO(ApplicationDAO applicationDAO)
public void setDirectoryDAO(DirectoryDAO directoryDAO)
public void setPermissionManager(PermissionManager permissionManager)
public void setPasswordEncoderFactory(PasswordEncoderFactory passwordEncoderFactory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||