Enum Class Workflow

java.lang.Object
java.lang.Enum<Workflow>
nl.vpro.domain.media.support.Workflow
All Implemented Interfaces:
Serializable, Comparable<Workflow>, java.lang.constant.Constable, XmlValued, Displayable

public enum Workflow extends Enum<Workflow> implements Displayable, XmlValued

The workflow status for publishable items.

Author:
arne, roekoe
  • Enum Constant Details

    • IGNORE

      public static final Workflow IGNORE
      Will be completely ignored by publishers. Will not be published, will not be revoked. Handy for debugging, to mute all objects besides the one you're interested in.
    • PUBLISHED

      public static final Workflow PUBLISHED
    • FOR_PUBLICATION

      public static final Workflow FOR_PUBLICATION
      The object is not yet published, but should be considered for publication. This probably is a new object.
    • FOR_REPUBLICATION

      public static final Workflow FOR_REPUBLICATION
      The object is already published, but something has been changed, and it needs to be published again.
    • MERGED

      public static final Workflow MERGED
      The object is merged with another object. An object will get this status when it is published for the last time.

      Used only on MediaObjects.

      Normal users should not see these objects, but should be directed to the object MediaObject.getMergedTo() Objects are published though to ES, so the redirect list can be dynamically built.

    • PARENT_REVOKED

      public static final Workflow PARENT_REVOKED
      Set when a publishStop date has expired on a parent. For example: a Segment obtains this workflow when its parent Program is revoked.
    • REVOKED

      public static final Workflow REVOKED
      Set when a publishStop date has expired and an entity is revoked. This state is not set by the end-user. Setting this state directly without an expired publishStop is useless, because an entity will be republished anyhow.
    • DELETED

      public static final Workflow DELETED
      If someone explicitly deleted an entity then it becomes 'deleted'. This implies revocation from publication. Normal users should not see these entities.
    • FOR_DELETION

      public static final Workflow FOR_DELETION
      The entity is scheduled for deletion.
  • Field Details

    • WITH_MEDIA_ACTIVATION

      public static final List<Workflow> WITH_MEDIA_ACTIVATION
    • PUBLICATIONS

      public static final List<Workflow> PUBLICATIONS
    • DELETES

      public static final List<Workflow> DELETES
    • PUBLISHED_AS_DELETED

      public static final List<Workflow> PUBLISHED_AS_DELETED
    • API

      public static final Set<Workflow> API
    • AS_DELETED_IN_API

      public static final List<Workflow> AS_DELETED_IN_API
    • REVOKES

      public static final List<Workflow> REVOKES
    • REVOKES_OR_IGNORE

      public static final List<Workflow> REVOKES_OR_IGNORE
    • NEEDWORK

      public static final List<Workflow> NEEDWORK
  • Method Details

    • values

      public static Workflow[] 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 Workflow 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
    • getPublishedAs

      public @NonNull Workflow getPublishedAs()
      Some workflows are 'temporary' (see isPublishable() and only used for administration purposes. This returns the workflow as it would appear when all administrative work is done.
    • getDescription

      public String getDescription()
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Displayable
    • isPublishable

      public boolean isPublishable()
      Whether this workflow can appear in the frontend api.
      See Also: