Enum Class SynchronizationTaskFlavor

java.lang.Object
java.lang.Enum<SynchronizationTaskFlavor>
com.evolveum.midpoint.web.page.admin.resources.SynchronizationTaskFlavor
All Implemented Interfaces:
ResourceTaskFlavor<Void>, Serializable, Comparable<SynchronizationTaskFlavor>, Constable

public enum SynchronizationTaskFlavor extends Enum<SynchronizationTaskFlavor> implements ResourceTaskFlavor<Void>
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).
  • Enum Constant Details

  • Method Details

    • values

      public static SynchronizationTaskFlavor[] 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

      public static SynchronizationTaskFlavor valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getArchetypeOid

      @NotNull public @NotNull String getArchetypeOid()
    • createWorkDefinitions

      @NotNull public @NotNull WorkDefinitionsType createWorkDefinitions(@Nullable @Nullable ResourceObjectSetType resourceObjectSet, @Nullable @Nullable Void config)
      Description copied from interface: ResourceTaskFlavor
      Create particular work definition which relies on defined set of resource objects. What type of work definition will be created is decided by the interface implementations.
      Specified by:
      createWorkDefinitions in interface ResourceTaskFlavor<Void>
      Parameters:
      resourceObjectSet - The set of resource objects, which should be processed by the activity.
      config - The optional configuration to be used to customize work definition.
      Returns:
      The new work definition configured in work definitions type.
    • flavorName

      public String flavorName()
      Specified by:
      flavorName in interface ResourceTaskFlavor<Void>
      Returns:
      The name of the task flavor.