sk.seges.acris.security.shared.user_management.domain
Enum Permission

java.lang.Object
  extended by java.lang.Enum<Permission>
      extended by sk.seges.acris.security.shared.user_management.domain.Permission
All Implemented Interfaces:
Serializable, Comparable<Permission>, IPermission

public enum Permission
extends Enum<Permission>
implements IPermission

 Permission is the base stone in security. Each user authority is composed
 from an assigned Permission and a grant. For example: ROLE_USER_MAINTENANCE_VIEW consists of the VIEW
 permission.
 
 Each permission has a mask representation which is hand-by-hand with ACL domain level security.
 

Author:
fat

Enum Constant Summary
CREATE
           
DELETE
           
EDIT
           
EMPTY
           
VIEW
           
 
Field Summary
static String CREATE_PERMISSION
          Deprecated. Use CREATE_SUFFIX instead and be aware of leading underscore.
static String CREATE_SUFFIX
           
static String DELETE_PERMISSION
          Deprecated. Use DELETE_SUFFIX instead and be aware of leading underscore.
static String DELETE_SUFFIX
           
static String EDIT_PERMISSION
          Deprecated. Use EDIT_SUFFIX instead and be aware of leading underscore.
static String EDIT_SUFFIX
           
static String VIEW_PERMISSION
          Deprecated. Use VIEW_SUFFIX instead and be aware of leading underscore.
static String VIEW_SUFFIX
           
 
Method Summary
 int getMask()
           
static Permission valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Permission[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface sk.seges.acris.security.shared.user_management.domain.IPermission
name
 

Enum Constant Detail

EMPTY

public static final Permission EMPTY

VIEW

public static final Permission VIEW

EDIT

public static final Permission EDIT

CREATE

public static final Permission CREATE

DELETE

public static final Permission DELETE
Field Detail

VIEW_PERMISSION

@Deprecated
public static final String VIEW_PERMISSION
Deprecated. Use VIEW_SUFFIX instead and be aware of leading underscore.
See Also:
Constant Field Values

EDIT_PERMISSION

@Deprecated
public static final String EDIT_PERMISSION
Deprecated. Use EDIT_SUFFIX instead and be aware of leading underscore.
See Also:
Constant Field Values

CREATE_PERMISSION

@Deprecated
public static final String CREATE_PERMISSION
Deprecated. Use CREATE_SUFFIX instead and be aware of leading underscore.
See Also:
Constant Field Values

DELETE_PERMISSION

@Deprecated
public static final String DELETE_PERMISSION
Deprecated. Use DELETE_SUFFIX instead and be aware of leading underscore.
See Also:
Constant Field Values

VIEW_SUFFIX

public static final String VIEW_SUFFIX
See Also:
Constant Field Values

EDIT_SUFFIX

public static final String EDIT_SUFFIX
See Also:
Constant Field Values

CREATE_SUFFIX

public static final String CREATE_SUFFIX
See Also:
Constant Field Values

DELETE_SUFFIX

public static final String DELETE_SUFFIX
See Also:
Constant Field Values
Method Detail

values

public static Permission[] 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 (Permission c : Permission.values())
    System.out.println(c);

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

valueOf

public static Permission 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

getMask

public int getMask()
Specified by:
getMask in interface IPermission


Copyright © 2014 Seges s.r.o.. All Rights Reserved.