public class RecoveryModeAwareUserPermissionService extends UserPermissionServiceImpl
Constructor and Description |
---|
RecoveryModeAwareUserPermissionService(InternalUserPermissionDAO userPermissionDAO,
DirectoryManager directoryManager,
RecoveryModeService recoveryModeService,
AuthenticatedUserProvider userProvider,
GroupAdministrationPermissionService groupAdministrationPermissionService,
ApplicationService applicationService,
CrowdApplicationFactory crowdApplicationFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasPermissionOutsideOfGroups(String username,
UserPermission permission,
Collection<DirectoryGroup> excludedGroups)
Does the provided user have the provided permission when not considering the provided groups.
|
currentUserHasPermission, getGroupLevelAdmins, getUsersWithPermission, hasPermission, isGroupLevelAdmin
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSysAdmins
public RecoveryModeAwareUserPermissionService(InternalUserPermissionDAO userPermissionDAO, DirectoryManager directoryManager, RecoveryModeService recoveryModeService, AuthenticatedUserProvider userProvider, GroupAdministrationPermissionService groupAdministrationPermissionService, ApplicationService applicationService, CrowdApplicationFactory crowdApplicationFactory)
public boolean hasPermissionOutsideOfGroups(@Nullable String username, UserPermission permission, Collection<DirectoryGroup> excludedGroups)
UserPermissionService
This method is intended to be used to determine if a group is exclusively providing a given permission.
hasPermissionOutsideOfGroups
in interface UserPermissionService
hasPermissionOutsideOfGroups
in class UserPermissionServiceImpl
username
- user to check, null for the anonymous userpermission
- permission requiredexcludedGroups
- groups to exclude in permission check, or an empty list otherwiseCopyright © 2020 Atlassian. All rights reserved.