Enum Class ProcessingStatus

java.lang.Object
java.lang.Enum<ProcessingStatus>
com.jalios.jcms.fileprocessor.processingmanagement.ProcessingStatus
All Implemented Interfaces:
Serializable, Comparable<ProcessingStatus>, Constable

public enum ProcessingStatus extends Enum<ProcessingStatus>
Processing and Indexing status
  • Enum Constant Details

  • Method Details

    • values

      public static ProcessingStatus[] 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 ProcessingStatus 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
    • get

      public static ProcessingStatus get(int code)
      Retrieve the ProcessingStatus corresponding to the specified ProcessingStatus's code
      Parameters:
      code - the interger value as returned by getCode()
      Returns:
      the corresponding ProcessingStatus instance of ProcessingStatus.IGNORED if none could be found for the specified code.
    • getCode

      public final int getCode()
      Retrieve an internal and unique integer for this ProcessingStatus, suitable for serialization
      Returns:
      an unique integer describing this status
      See Also:
    • getText

      public final String getText(String lang)
      Retrieve an I18Ned string describing this ProcessingStatus
      Parameters:
      lang - the ISO-639 language code in which to retrieve the ProcessingStatus description
      Returns:
      a description of this ProcessingStatus
    • isBlacklisted

      public final boolean isBlacklisted()
      Check if this status a blacklisting status (either globally or partially)
      Returns:
      true if this is status is a blacklisting status, false otherwise
    • mergeStatuses

      public static ProcessingStatus mergeStatuses(EnumSet<ProcessingStatus> statuses)
      Retrieve the worst status from the specified ones
      Parameters:
      statuses - an set of ProcessingStatus
      Returns:
      return the worst ProcessingStatus, or ProcessingStatus.IGNORED if the specified set was empty