Enum ResourceTestOptions.ResourceCompletionMode
- java.lang.Object
-
- java.lang.Enum<ResourceTestOptions.ResourceCompletionMode>
-
- com.evolveum.midpoint.provisioning.api.ResourceTestOptions.ResourceCompletionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ResourceTestOptions.ResourceCompletionMode>
- Enclosing class:
- ResourceTestOptions
public static enum ResourceTestOptions.ResourceCompletionMode extends Enum<ResourceTestOptions.ResourceCompletionMode>
Whether capabilities and schema should be written back to the resource (into repository or in-memory version).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Always updates capabilities and schema.IF_NOT_COMPLETE
Complete the resource if it's not complete.NEVER
Never do the completion.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResourceTestOptions.ResourceCompletionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResourceTestOptions.ResourceCompletionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final ResourceTestOptions.ResourceCompletionMode NEVER
Never do the completion.
-
IF_NOT_COMPLETE
public static final ResourceTestOptions.ResourceCompletionMode IF_NOT_COMPLETE
Complete the resource if it's not complete. This updates both capabilities and schema if either one of them is missing. This is the legacy (pre-4.6) behavior, and is currently the default when repository update is carried out. TODO determine for in-memory updates only.
-
ALWAYS
public static final ResourceTestOptions.ResourceCompletionMode ALWAYS
Always updates capabilities and schema.
-
-
Method Detail
-
values
public static ResourceTestOptions.ResourceCompletionMode[] 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 (ResourceTestOptions.ResourceCompletionMode c : ResourceTestOptions.ResourceCompletionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceTestOptions.ResourceCompletionMode 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
-
-