Class UserPermissionServiceImpl

java.lang.Object
com.atlassian.crowd.manager.permission.UserPermissionServiceImpl
All Implemented Interfaces:
UserPermissionService

public class UserPermissionServiceImpl extends Object implements UserPermissionService
  • Constructor Details

  • Method Details

    • currentUserHasPermission

      public boolean currentUserHasPermission(com.atlassian.crowd.model.permission.UserPermission permission)
      Specified by:
      currentUserHasPermission in interface UserPermissionService
    • hasPermission

      public boolean hasPermission(@Nullable String username, com.atlassian.crowd.model.permission.UserPermission permission)
      Specified by:
      hasPermission in interface UserPermissionService
    • hasPermissionOutsideOfGroups

      public boolean hasPermissionOutsideOfGroups(@Nullable String username, com.atlassian.crowd.model.permission.UserPermission permission, Collection<DirectoryGroup> excludedGroups)
      Specified by:
      hasPermissionOutsideOfGroups in interface UserPermissionService
    • isGroupLevelAdmin

      public boolean isGroupLevelAdmin(@Nullable String username)
      Specified by:
      isGroupLevelAdmin in interface UserPermissionService
    • getUsersWithPermission

      public Set<User> getUsersWithPermission(com.atlassian.crowd.model.application.Application application, com.atlassian.crowd.model.permission.UserPermission permission, boolean includeLocallyCachedOnly) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException
      Specified by:
      getUsersWithPermission in interface UserPermissionService
      Throws:
      com.atlassian.crowd.exception.DirectoryNotFoundException
      com.atlassian.crowd.exception.OperationFailedException
    • getGroupLevelAdmins

      public Set<User> getGroupLevelAdmins(boolean considerOnlyTargetGroupsWithApplications) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.OperationFailedException
      Specified by:
      getGroupLevelAdmins in interface UserPermissionService
      Throws:
      com.atlassian.crowd.exception.DirectoryNotFoundException
      com.atlassian.crowd.exception.OperationFailedException