org.eclipse.emf.emfstore.internal.server.accesscontrol
Enum PAPrivileges

java.lang.Object
  extended by java.lang.Enum<PAPrivileges>
      extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.PAPrivileges
All Implemented Interfaces:
Serializable, Comparable<PAPrivileges>

public enum PAPrivileges
extends Enum<PAPrivileges>

Determines what actions the ProjectAdminRole is allowed to perform.

Author:
emueller

Enum Constant Summary
AssignRoleToOrgUnit
          Whether the project admin is allowed to assign a role.
ChangeAssignmentsOfOrgUnits
          Whether the project admin role is allowed to change the assignments of organizational units to groups.
ChangeUserPassword
          Whether the project admin role is allowed to change the password of a user.
CreateGroup
          Whether the project admin role is allowed to create a new group.
CreateUser
          Whether the project admin role is allowed to create a new user.
DeleteOrgUnit
          Whether the project admin role is allowed to delete organizational units.
ShareProject
          Whether the project admin role is allowed to create a new project.
 
Method Summary
static PAPrivileges valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PAPrivileges[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AssignRoleToOrgUnit

public static final PAPrivileges AssignRoleToOrgUnit
Whether the project admin is allowed to assign a role.


ShareProject

public static final PAPrivileges ShareProject
Whether the project admin role is allowed to create a new project.


CreateUser

public static final PAPrivileges CreateUser
Whether the project admin role is allowed to create a new user.


CreateGroup

public static final PAPrivileges CreateGroup
Whether the project admin role is allowed to create a new group.


DeleteOrgUnit

public static final PAPrivileges DeleteOrgUnit
Whether the project admin role is allowed to delete organizational units.


ChangeUserPassword

public static final PAPrivileges ChangeUserPassword
Whether the project admin role is allowed to change the password of a user.


ChangeAssignmentsOfOrgUnits

public static final PAPrivileges ChangeAssignmentsOfOrgUnits
Whether the project admin role is allowed to change the assignments of organizational units to groups.

Method Detail

values

public static PAPrivileges[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PAPrivileges c : PAPrivileges.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PAPrivileges valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2015. All Rights Reserved.