Enum AuthorizationEnforcementStrategyType
- java.lang.Object
-
- java.lang.Enum<AuthorizationEnforcementStrategyType>
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationEnforcementStrategyType
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthorizationEnforcementStrategyType>
public enum AuthorizationEnforcementStrategyType extends Enum<AuthorizationEnforcementStrategyType>
Java class for AuthorizationEnforcementStrategyType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AuthorizationEnforcementStrategyType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="alwaysEnforce"/> <enumeration value="maySkipOnSearch"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS_ENFORCE
The authorization will always be enforced for all applicable operations.MAY_SKIP_ON_SEARCH
If this setting is applied then midPoint may skip this authorization during evaluation of search operation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthorizationEnforcementStrategyType
fromValue(String v)
String
value()
static AuthorizationEnforcementStrategyType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuthorizationEnforcementStrategyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALWAYS_ENFORCE
public static final AuthorizationEnforcementStrategyType ALWAYS_ENFORCE
The authorization will always be enforced for all applicable operations. Even at the cost of running inefficient operation. If the authorization cannot be enforced then the operation results in an error. We would rather stop the operation entirely than risking data exposure.
-
MAY_SKIP_ON_SEARCH
public static final AuthorizationEnforcementStrategyType MAY_SKIP_ON_SEARCH
If this setting is applied then midPoint may skip this authorization during evaluation of search operation. This is used for authorization that may be inefficient to evaluate for search operations, especially when used in situations where there is another broader authorization which is good enough to limit the search results. Setting this strategy may cause that broader search results are returned. Use with care. This setting influences search operations only. It does not influence other operations, such as read, modify or assign.
-
-
Method Detail
-
values
public static AuthorizationEnforcementStrategyType[] 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 (AuthorizationEnforcementStrategyType c : AuthorizationEnforcementStrategyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorizationEnforcementStrategyType 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 nameNullPointerException
- if the argument is null
-
value
public String value()
-
fromValue
public static AuthorizationEnforcementStrategyType fromValue(String v)
-
-