public class NoopUserPermissionService extends Object implements com.atlassian.crowd.manager.permission.UserPermissionService
Constructor and Description |
---|
NoopUserPermissionService() |
Modifier and Type | Method and Description |
---|---|
boolean |
currentUserHasPermission(com.atlassian.crowd.model.permission.UserPermission userPermission) |
Set<com.atlassian.crowd.model.user.User> |
getGroupLevelAdmins(boolean considerOnlyTargetGroupsWithApplications) |
Set<com.atlassian.crowd.model.user.User> |
getUsersWithPermission(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.model.permission.UserPermission userPermission,
boolean includeLocallyCachedOnly) |
boolean |
hasPermission(String username,
com.atlassian.crowd.model.permission.UserPermission permission) |
boolean |
hasPermissionOutsideOfGroups(String username,
com.atlassian.crowd.model.permission.UserPermission permission,
Collection<com.atlassian.crowd.manager.permission.DirectoryGroup> excludedGroups) |
boolean |
isGroupLevelAdmin(String username) |
public boolean currentUserHasPermission(com.atlassian.crowd.model.permission.UserPermission userPermission)
currentUserHasPermission
in interface com.atlassian.crowd.manager.permission.UserPermissionService
public boolean hasPermission(@Nullable String username, com.atlassian.crowd.model.permission.UserPermission permission)
hasPermission
in interface com.atlassian.crowd.manager.permission.UserPermissionService
public boolean hasPermissionOutsideOfGroups(@Nullable String username, com.atlassian.crowd.model.permission.UserPermission permission, Collection<com.atlassian.crowd.manager.permission.DirectoryGroup> excludedGroups)
hasPermissionOutsideOfGroups
in interface com.atlassian.crowd.manager.permission.UserPermissionService
public boolean isGroupLevelAdmin(@Nullable String username)
isGroupLevelAdmin
in interface com.atlassian.crowd.manager.permission.UserPermissionService
public Set<com.atlassian.crowd.model.user.User> getUsersWithPermission(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.model.permission.UserPermission userPermission, boolean includeLocallyCachedOnly) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException
getUsersWithPermission
in interface com.atlassian.crowd.manager.permission.UserPermissionService
com.atlassian.crowd.exception.DirectoryNotFoundException
com.atlassian.crowd.exception.OperationFailedException
public Set<com.atlassian.crowd.model.user.User> getGroupLevelAdmins(boolean considerOnlyTargetGroupsWithApplications) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException
getGroupLevelAdmins
in interface com.atlassian.crowd.manager.permission.UserPermissionService
com.atlassian.crowd.exception.DirectoryNotFoundException
com.atlassian.crowd.exception.OperationFailedException
Copyright © 2002-2023 Atlassian. All Rights Reserved.