Enum SkipWhenFocusDeleted
- java.lang.Object
-
- java.lang.Enum<SkipWhenFocusDeleted>
-
- com.evolveum.midpoint.model.impl.lens.projector.util.SkipWhenFocusDeleted
-
- All Implemented Interfaces:
Serializable
,Comparable<SkipWhenFocusDeleted>
public enum SkipWhenFocusDeleted extends Enum<SkipWhenFocusDeleted>
Should we skip the processing if the focus is going to be deleted?
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
No.PRIMARY
Yes.PRIMARY_OR_SECONDARY
Yes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SkipWhenFocusDeleted
valueOf(String name)
Returns the enum constant of this type with the specified name.static SkipWhenFocusDeleted[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SkipWhenFocusDeleted NONE
No. Processor should be always executed.
-
PRIMARY
public static final SkipWhenFocusDeleted PRIMARY
Yes. Processor should be skipped if the primary delta is DELETE. TODO Do we really need this? It was created by inspecting existing code. Maybe NONE + PRIMARY_OR_SECONDARY (i.e. simple false/true flag) is sufficient.
-
PRIMARY_OR_SECONDARY
public static final SkipWhenFocusDeleted PRIMARY_OR_SECONDARY
Yes. Processor should be skipped if the primary or secondary delta is DELETE.
-
-
Method Detail
-
values
public static SkipWhenFocusDeleted[] 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 (SkipWhenFocusDeleted c : SkipWhenFocusDeleted.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SkipWhenFocusDeleted 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
-
-