@Transactional public class CachingApplicationService extends AbstractDelegatingApplicationService
ApplicationService.MembershipsIterable
Constructor and Description |
---|
CachingApplicationService(ApplicationService applicationService,
UserAuthorisationCache userAuthorisationCache,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
boolean |
isUserAuthorised(Application application,
String username)
Returns true if the user is permitted to attempt authentication with the application.
|
boolean |
isUserAuthorised(Application application,
User user)
Returns true if the user is permitted to attempt authentication with the application.
|
void |
onApplicationUpdated(ApplicationUpdatedEvent event) |
void |
onBackupRestored(XMLRestoreFinishedEvent event) |
void |
onDirectoryDeleted(DirectoryDeletedEvent event) |
void |
onDirectoryUpdated(DirectoryUpdatedEvent event) |
void |
registerListener() |
void |
unregisterListener() |
addAllUsers, addGroup, addGroupToGroup, addUser, addUser, addUserToGroup, authenticateUser, expireAllPasswords, findGroupByName, findGroupWithAttributesByName, findRemoteUserByName, findUserByKey, findUserByName, findUserWithAttributesByKey, findUserWithAttributesByName, findWebhookById, getApplicationService, getCapabilitiesForNewUsers, getCurrentEventToken, getMemberships, getNewEvents, getUserAvatar, getUserAvatarLink, isGroupDirectGroupMember, isGroupNestedGroupMember, isUserDirectGroupMember, isUserNestedGroupMember, registerWebhook, removeGroup, removeGroupAttributes, removeGroupFromGroup, removeUser, removeUserAttributes, removeUserFromGroup, renameUser, searchDirectGroupRelationships, searchGroups, searchNestedGroupRelationships, searchUsers, storeGroupAttributes, storeUserAttributes, unregisterWebhook, updateGroup, updateUser, updateUserCredential, userAuthenticated
public CachingApplicationService(ApplicationService applicationService, UserAuthorisationCache userAuthorisationCache, com.atlassian.event.api.EventPublisher eventPublisher)
@PostConstruct public void registerListener()
@PreDestroy public void unregisterListener()
public boolean isUserAuthorised(Application application, String username)
ApplicationService
For a user to have access to an application:
isUserAuthorised
in interface ApplicationService
isUserAuthorised
in class AbstractDelegatingApplicationService
application
- application user is authenticating againstusername
- usernamepublic boolean isUserAuthorised(Application application, User user)
ApplicationService
For a user to have access to an application:
application
- application user is authenticating againstuser
- the user that will be checked@EventListener public void onApplicationUpdated(ApplicationUpdatedEvent event)
@EventListener public void onDirectoryUpdated(DirectoryUpdatedEvent event)
@EventListener public void onDirectoryDeleted(DirectoryDeletedEvent event)
@EventListener public void onBackupRestored(XMLRestoreFinishedEvent event)
Copyright © 2021 Atlassian. All rights reserved.