Class RecoveryModeAwareUserPermissionService
java.lang.Object
com.atlassian.crowd.manager.permission.UserPermissionServiceImpl
com.atlassian.crowd.manager.permission.RecoveryModeAwareUserPermissionService
- All Implemented Interfaces:
UserPermissionService
-
Constructor Summary
ConstructorDescriptionRecoveryModeAwareUserPermissionService
(InternalUserPermissionDAO userPermissionDAO, DirectoryManager directoryManager, RecoveryModeService recoveryModeService, AuthenticatedUserProvider userProvider, GroupAdministrationPermissionService groupAdministrationPermissionService, ApplicationService applicationService, CrowdApplicationFactory crowdApplicationFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasPermissionOutsideOfGroups
(String username, UserPermission permission, Collection<DirectoryGroup> excludedGroups) Does the provided user have the provided permission when not considering the provided groups.Methods inherited from class com.atlassian.crowd.manager.permission.UserPermissionServiceImpl
currentUserHasPermission, getGroupLevelAdmins, getUsersWithPermission, hasPermission, isGroupLevelAdmin
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.crowd.manager.permission.UserPermissionService
getSysAdmins
-
Constructor Details
-
RecoveryModeAwareUserPermissionService
public RecoveryModeAwareUserPermissionService(InternalUserPermissionDAO userPermissionDAO, DirectoryManager directoryManager, RecoveryModeService recoveryModeService, AuthenticatedUserProvider userProvider, GroupAdministrationPermissionService groupAdministrationPermissionService, ApplicationService applicationService, CrowdApplicationFactory crowdApplicationFactory)
-
-
Method Details
-
hasPermissionOutsideOfGroups
public boolean hasPermissionOutsideOfGroups(@Nullable String username, UserPermission permission, Collection<DirectoryGroup> excludedGroups) Description copied from interface:UserPermissionService
Does the provided user have the provided permission when not considering the provided groups.This method is intended to be used to determine if a group is exclusively providing a given permission.
- Specified by:
hasPermissionOutsideOfGroups
in interfaceUserPermissionService
- Overrides:
hasPermissionOutsideOfGroups
in classUserPermissionServiceImpl
- Parameters:
username
- user to check, null for the anonymous userpermission
- permission requiredexcludedGroups
- groups to exclude in permission check, or an empty list otherwise- Returns:
- true if the user has permission outside of the provided groups
-