com.acsinet_solutions.cetia4.controller.meta
Enum CombinationPolicy

java.lang.Object
  extended by java.lang.Enum<CombinationPolicy>
      extended by com.acsinet_solutions.cetia4.controller.meta.CombinationPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CombinationPolicy>

public enum CombinationPolicy
extends java.lang.Enum<CombinationPolicy>

A combination policy for security restrictions in Security annotation.

Author:
Santiago Arriaga
See Also:
Security

Enum Constant Summary
REQUIRE_ALL
          Requires that all security conditions that were explicitly set must be fulfilled ( roles, condition and configurator )
REQUIRE_CONDITION
          Requires condition to be met, can be combined with REQUIRE_TWO
REQUIRE_CONFIGURATOR
          Requires configurator to be met, can be combined with REQUIRE_TWO
REQUIRE_ONE
          With just any one security condition passed, it is ok.
REQUIRE_ROLES
          Requires roles to be met, can be combined with REQUIRE_TWO
REQUIRE_TWO
          If any two security conditions are met, its accepted.
 
Method Summary
static CombinationPolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CombinationPolicy[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REQUIRE_ALL

public static final CombinationPolicy REQUIRE_ALL
Requires that all security conditions that were explicitly set must be fulfilled ( roles, condition and configurator )


REQUIRE_ONE

public static final CombinationPolicy REQUIRE_ONE
With just any one security condition passed, it is ok.


REQUIRE_TWO

public static final CombinationPolicy REQUIRE_TWO
If any two security conditions are met, its accepted. May be combined with some other more specific value to fix one of the conditions.


REQUIRE_ROLES

public static final CombinationPolicy REQUIRE_ROLES
Requires roles to be met, can be combined with REQUIRE_TWO


REQUIRE_CONDITION

public static final CombinationPolicy REQUIRE_CONDITION
Requires condition to be met, can be combined with REQUIRE_TWO


REQUIRE_CONFIGURATOR

public static final CombinationPolicy REQUIRE_CONFIGURATOR
Requires configurator to be met, can be combined with REQUIRE_TWO

Method Detail

values

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

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

valueOf

public static CombinationPolicy valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name