Class UserManagementPermission

java.lang.Object
com.polarion.platform.security.Permission
com.polarion.platform.security.UserManagementPermission
All Implemented Interfaces:
IPermission

public class UserManagementPermission extends Permission
User management permission class.

Available permissions:

Administration permission AdministrationPermission.ACTION_MODIFY implies management of users and roles.

Policy class is IUserManagementPolicy.

Version:
$Revision$ $Date$
Author:
Stepan Roh, Polarion Software
See Also:
  • Field Details

    • ACTION_MANAGE_USER

      @NotNull public static final String ACTION_MANAGE_USER
      See Also:
    • ACTION_MANAGE_ROLE

      @NotNull public static final String ACTION_MANAGE_ROLE
      See Also:
    • ACTION_MANAGE_ROLE_ASSIGNMENT

      @Deprecated(since="3.24.10", forRemoval=true) @NotNull public static final String ACTION_MANAGE_ROLE_ASSIGNMENT
      Deprecated, for removal: This API element is subject to removal in a future version.
      The 'com.polarion.security.role.manage.assignments' permission was already removed. This constant will be removed in the future.
      See Also:
  • Constructor Details

    • UserManagementPermission

      public UserManagementPermission(@NotNull String name)
      Parameters:
      name -
    • UserManagementPermission

      public UserManagementPermission(boolean dummy, @NotNull String action)
      Parameters:
      dummy - is unused, but has to stay because of the other constructor
  • Method Details

    • forAction

      @NotNull public static UserManagementPermission forAction(@NotNull String action)
      Since:
      3.24.10
    • getAction

      @NotNull public String getAction()
      Returns:
      the action
    • getParentPermissions

      @NotNull public IPermission[] getParentPermissions()
      Description copied from interface: IPermission
      The collection of permissions, to which the decision about this permission is granted, if there is no record for exactly this permission.

      For permission to be granted, none of it's parents can be denied and at least one of them must be granted. The rest can be either undefined or granted.

      Specified by:
      getParentPermissions in interface IPermission
      Overrides:
      getParentPermissions in class Permission
      Returns:
      array of IPermissions (not null)