public abstract class AbstractDelegatingApplicationService extends Object implements ApplicationService
ApplicationService.MembershipsIterable| Constructor and Description |
|---|
AbstractDelegatingApplicationService(ApplicationService applicationService) |
public AbstractDelegatingApplicationService(ApplicationService applicationService)
protected ApplicationService getApplicationService()
public User authenticateUser(Application application, String username, PasswordCredential passwordCredential) throws OperationFailedException, InactiveAccountException, InvalidAuthenticationException, ExpiredCredentialException, UserNotFoundException
authenticateUser in interface ApplicationServiceOperationFailedExceptionInactiveAccountExceptionInvalidAuthenticationExceptionExpiredCredentialExceptionUserNotFoundExceptionpublic boolean isUserAuthorised(Application application, String username)
isUserAuthorised in interface ApplicationServicepublic void addAllUsers(Application application, Collection<UserTemplateWithCredentialAndAttributes> users) throws ApplicationPermissionException, OperationFailedException, BulkAddFailedException
addAllUsers in interface ApplicationServiceApplicationPermissionExceptionOperationFailedExceptionBulkAddFailedExceptionpublic User findUserByName(Application application, String name) throws UserNotFoundException
findUserByName in interface ApplicationServiceUserNotFoundExceptionpublic User findRemoteUserByName(Application application, String username) throws UserNotFoundException
findRemoteUserByName in interface ApplicationServiceUserNotFoundExceptionpublic UserWithAttributes findUserWithAttributesByName(Application application, String name) throws UserNotFoundException
findUserWithAttributesByName in interface ApplicationServiceUserNotFoundExceptionpublic User findUserByKey(Application application, String key) throws UserNotFoundException
findUserByKey in interface ApplicationServiceUserNotFoundExceptionpublic UserWithAttributes findUserWithAttributesByKey(Application application, String key) throws UserNotFoundException
findUserWithAttributesByKey in interface ApplicationServiceUserNotFoundExceptionpublic User addUser(Application application, UserTemplate user, PasswordCredential credential) throws InvalidUserException, OperationFailedException, InvalidCredentialException, ApplicationPermissionException
addUser in interface ApplicationServiceInvalidUserExceptionOperationFailedExceptionInvalidCredentialExceptionApplicationPermissionExceptionpublic UserWithAttributes addUser(Application application, UserTemplateWithAttributes userWithAttributes, PasswordCredential credential) throws InvalidUserException, OperationFailedException, InvalidCredentialException, ApplicationPermissionException
addUser in interface ApplicationServiceInvalidUserExceptionOperationFailedExceptionInvalidCredentialExceptionApplicationPermissionExceptionpublic User updateUser(Application application, UserTemplate user) throws InvalidUserException, OperationFailedException, ApplicationPermissionException, UserNotFoundException
updateUser in interface ApplicationServiceInvalidUserExceptionOperationFailedExceptionApplicationPermissionExceptionUserNotFoundExceptionpublic User renameUser(Application application, String oldUserName, String newUsername) throws UserNotFoundException, OperationFailedException, ApplicationPermissionException, InvalidUserException
renameUser in interface ApplicationServiceUserNotFoundExceptionOperationFailedExceptionApplicationPermissionExceptionInvalidUserExceptionpublic void updateUserCredential(Application application, String username, PasswordCredential credential) throws OperationFailedException, UserNotFoundException, InvalidCredentialException, ApplicationPermissionException
updateUserCredential in interface ApplicationServiceOperationFailedExceptionUserNotFoundExceptionInvalidCredentialExceptionApplicationPermissionExceptionpublic void storeUserAttributes(Application application, String username, Map<String,Set<String>> attributes) throws OperationFailedException, ApplicationPermissionException, UserNotFoundException
storeUserAttributes in interface ApplicationServiceOperationFailedExceptionApplicationPermissionExceptionUserNotFoundExceptionpublic void removeUserAttributes(Application application, String username, String attributeName) throws OperationFailedException, ApplicationPermissionException, UserNotFoundException
removeUserAttributes in interface ApplicationServiceOperationFailedExceptionApplicationPermissionExceptionUserNotFoundExceptionpublic void removeUser(Application application, String user) throws OperationFailedException, UserNotFoundException, ApplicationPermissionException
removeUser in interface ApplicationServiceOperationFailedExceptionUserNotFoundExceptionApplicationPermissionExceptionpublic <T> List<T> searchUsers(Application application, EntityQuery<T> query)
searchUsers in interface ApplicationServicepublic Group findGroupByName(Application application, String name) throws GroupNotFoundException
findGroupByName in interface ApplicationServiceGroupNotFoundExceptionpublic GroupWithAttributes findGroupWithAttributesByName(Application application, String name) throws GroupNotFoundException
findGroupWithAttributesByName in interface ApplicationServiceGroupNotFoundExceptionpublic Group addGroup(Application application, GroupTemplate group) throws InvalidGroupException, OperationFailedException, ApplicationPermissionException
addGroup in interface ApplicationServiceInvalidGroupExceptionOperationFailedExceptionApplicationPermissionExceptionpublic Group updateGroup(Application application, GroupTemplate group) throws InvalidGroupException, OperationFailedException, ApplicationPermissionException, GroupNotFoundException
updateGroup in interface ApplicationServiceInvalidGroupExceptionOperationFailedExceptionApplicationPermissionExceptionGroupNotFoundExceptionpublic void storeGroupAttributes(Application application, String groupname, Map<String,Set<String>> attributes) throws OperationFailedException, ApplicationPermissionException, GroupNotFoundException
storeGroupAttributes in interface ApplicationServiceOperationFailedExceptionApplicationPermissionExceptionGroupNotFoundExceptionpublic void removeGroupAttributes(Application application, String groupname, String attributeName) throws OperationFailedException, ApplicationPermissionException, GroupNotFoundException
removeGroupAttributes in interface ApplicationServiceOperationFailedExceptionApplicationPermissionExceptionGroupNotFoundExceptionpublic void removeGroup(Application application, String group) throws OperationFailedException, GroupNotFoundException, ApplicationPermissionException
removeGroup in interface ApplicationServiceOperationFailedExceptionGroupNotFoundExceptionApplicationPermissionExceptionpublic <T> List<T> searchGroups(Application application, EntityQuery<T> query)
searchGroups in interface ApplicationServicepublic void addUserToGroup(Application application, String username, String groupName) throws OperationFailedException, UserNotFoundException, GroupNotFoundException, ApplicationPermissionException, MembershipAlreadyExistsException
addUserToGroup in interface ApplicationServiceOperationFailedExceptionUserNotFoundExceptionGroupNotFoundExceptionApplicationPermissionExceptionMembershipAlreadyExistsExceptionpublic void addGroupToGroup(Application application, String childGroupName, String parentGroupName) throws OperationFailedException, GroupNotFoundException, ApplicationPermissionException, InvalidMembershipException, MembershipAlreadyExistsException
public void removeUserFromGroup(Application application, String username, String groupName) throws OperationFailedException, GroupNotFoundException, UserNotFoundException, ApplicationPermissionException, MembershipNotFoundException
removeUserFromGroup in interface ApplicationServiceOperationFailedExceptionGroupNotFoundExceptionUserNotFoundExceptionApplicationPermissionExceptionMembershipNotFoundExceptionpublic void removeGroupFromGroup(Application application, String childGroup, String parentGroup) throws OperationFailedException, GroupNotFoundException, ApplicationPermissionException, MembershipNotFoundException
removeGroupFromGroup in interface ApplicationServiceOperationFailedExceptionGroupNotFoundExceptionApplicationPermissionExceptionMembershipNotFoundExceptionpublic boolean isUserDirectGroupMember(Application application, String username, String groupName)
isUserDirectGroupMember in interface ApplicationServicepublic boolean isGroupDirectGroupMember(Application application, String childGroup, String parentGroup)
isGroupDirectGroupMember in interface ApplicationServicepublic boolean isUserNestedGroupMember(Application application, String username, String groupName)
isUserNestedGroupMember in interface ApplicationServicepublic boolean isGroupNestedGroupMember(Application application, String childGroup, String parentGroup)
isGroupNestedGroupMember in interface ApplicationServicepublic <T> List<T> searchDirectGroupRelationships(Application application, MembershipQuery<T> query)
searchDirectGroupRelationships in interface ApplicationServicepublic <T> List<T> searchNestedGroupRelationships(Application application, MembershipQuery<T> query)
searchNestedGroupRelationships in interface ApplicationServicepublic String getCurrentEventToken(Application application) throws IncrementalSynchronisationNotAvailableException
getCurrentEventToken in interface ApplicationServiceIncrementalSynchronisationNotAvailableExceptionpublic Events getNewEvents(Application application, String eventToken) throws EventTokenExpiredException, OperationFailedException
getNewEvents in interface ApplicationServiceEventTokenExpiredExceptionOperationFailedExceptionpublic Webhook findWebhookById(Application application, long webhookId) throws WebhookNotFoundException, ApplicationPermissionException
findWebhookById in interface ApplicationServiceWebhookNotFoundExceptionApplicationPermissionExceptionpublic Webhook registerWebhook(Application application, String endpointUrl, @Nullable String token) throws InvalidWebhookEndpointException
registerWebhook in interface ApplicationServiceInvalidWebhookEndpointExceptionpublic void unregisterWebhook(Application application, long webhookId) throws ApplicationPermissionException, WebhookNotFoundException
unregisterWebhook in interface ApplicationServiceApplicationPermissionExceptionWebhookNotFoundExceptionpublic UserCapabilities getCapabilitiesForNewUsers(Application application)
getCapabilitiesForNewUsers in interface ApplicationService@Nullable public URI getUserAvatarLink(Application application, String username, int sizeHint) throws UserNotFoundException, DirectoryNotFoundException, OperationFailedException
getUserAvatarLink in interface ApplicationServiceUserNotFoundExceptionDirectoryNotFoundExceptionOperationFailedException@Nullable public AvatarReference getUserAvatar(Application application, String username, int sizeHint) throws UserNotFoundException, DirectoryNotFoundException, OperationFailedException
getUserAvatar in interface ApplicationServiceUserNotFoundExceptionDirectoryNotFoundExceptionOperationFailedExceptionpublic void expireAllPasswords(Application application) throws OperationFailedException
expireAllPasswords in interface ApplicationServiceOperationFailedExceptionpublic User userAuthenticated(Application application, String username) throws UserNotFoundException, OperationFailedException, InactiveAccountException
userAuthenticated in interface ApplicationServiceUserNotFoundExceptionOperationFailedExceptionInactiveAccountExceptionpublic ApplicationService.MembershipsIterable getMemberships(Application application)
getMemberships in interface ApplicationServicepublic boolean isUserAuthorised(Application application, User user)
isUserAuthorised in interface ApplicationServicepublic <T> PagedSearcher<T> createPagedUserSearcher(Application application, EntityQuery<T> query) throws PagingNotSupportedException
createPagedUserSearcher in interface ApplicationServicePagingNotSupportedExceptionpublic <T> PagedSearcher<T> createPagedGroupSearcher(Application application, EntityQuery<T> query) throws PagingNotSupportedException
createPagedGroupSearcher in interface ApplicationServicePagingNotSupportedExceptionCopyright © 2023 Atlassian. All rights reserved.