Enum Class SynchronizationTaskFlavor
java.lang.Object
java.lang.Enum<SynchronizationTaskFlavor>
com.evolveum.midpoint.web.page.admin.resources.SynchronizationTaskFlavor
- All Implemented Interfaces:
Serializable
,Comparable<SynchronizationTaskFlavor>
,Constable
We recognize several flavors of synchronization tasks: import, reconciliation, live sync, and async update; later maybe others.
This enum is used to distinguish them. We do not use archetype OID for this, as that is quite technical and too broad a term.
Moreover, here we can attach some common functionality to avoid excessive use of branching ("if" commands).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull WorkDefinitionsType
createWorkDefinitions
(@Nullable ResourceObjectSetType resourceObjectSet) @NotNull String
static SynchronizationTaskFlavor
Returns the enum constant of this class with the specified name.static SynchronizationTaskFlavor[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMPORT
-
RECONCILIATION
-
LIVE_SYNC
-
ASYNC_UPDATE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getArchetypeOid
-
createWorkDefinitions
@NotNull public @NotNull WorkDefinitionsType createWorkDefinitions(@Nullable @Nullable ResourceObjectSetType resourceObjectSet)
-