Enum Class TransactionValidationMode

java.lang.Object
java.lang.Enum<TransactionValidationMode>
fr.gouv.vitam.collect.common.enums.TransactionValidationMode
All Implemented Interfaces:
Serializable, Comparable<TransactionValidationMode>, Constable

public enum TransactionValidationMode extends Enum<TransactionValidationMode>
Validation modes used when closing a transaction.
  • Enum Constant Details

    • VALIDATE

      public static final TransactionValidationMode VALIDATE
      Standard validation mode.

      The transaction is validated and closed following the normal validation rules.

    • VALIDATE_IGNORE

      public static final TransactionValidationMode VALIDATE_IGNORE
      Validation mode that ignores failed batches.

      The transaction is validated and closed even if some batches are in KO status.

    • VALIDATE_FORCE

      public static final TransactionValidationMode VALIDATE_FORCE
      Forced validation mode (not yet implemented).

      Forces the transaction to close under specific conditions.

  • Method Details

    • values

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