Enum ShadowLivenessState
- java.lang.Object
-
- java.lang.Enum<ShadowLivenessState>
-
- com.evolveum.midpoint.provisioning.api.ShadowLivenessState
-
- All Implemented Interfaces:
Serializable
,Comparable<ShadowLivenessState>
public enum ShadowLivenessState extends Enum<ShadowLivenessState>
Describes shadow liveness (or death) state.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShadowLivenessState
forShadow(PrismObject<ShadowType> shadow)
static ShadowLivenessState
forShadowWithState(PrismObject<ShadowType> shadow)
static ShadowLivenessState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ShadowLivenessState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LIVE
public static final ShadowLivenessState LIVE
Shadow is live, i.e. it exists in repo and its dead property is not true.
-
DEAD
public static final ShadowLivenessState DEAD
Shadow is dead, i.e. it exists in repo and its dead property is true.
-
DELETED
public static final ShadowLivenessState DELETED
Shadow does not exist in repo.
-
-
Method Detail
-
values
public static ShadowLivenessState[] 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 (ShadowLivenessState c : ShadowLivenessState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShadowLivenessState 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
-
forShadow
public static ShadowLivenessState forShadow(PrismObject<ShadowType> shadow)
-
forShadowWithState
public static ShadowLivenessState forShadowWithState(PrismObject<ShadowType> shadow)
-
-