Enum Class CurationCommitConflictException.Reason

java.lang.Object
java.lang.Enum<CurationCommitConflictException.Reason>
ubic.gemma.rest.util.CurationCommitConflictException.Reason
All Implemented Interfaces:
Serializable, Comparable<CurationCommitConflictException.Reason>, Constable
Enclosing class:
CurationCommitConflictException

public static enum CurationCommitConflictException.Reason extends Enum<CurationCommitConflictException.Reason>
What the client should do about it. The names are the wire contract: they appear verbatim as errors[0].reason.
Author:
gemma
  • Enum Constant Details

    • STALE_BASELINE

      public static final CurationCommitConflictException.Reason STALE_BASELINE
      The dataset moved since the draft's baseline. Re-read it, rebuild the diff, commit again.
    • REQUIRES_FORCE

      public static final CurationCommitConflictException.Reason REQUIRES_FORCE
      The change would delete differential-expression analyses or strand a subset. Route it through POST /datasets/{id}/curation/sign, which is where a change with consequences belongs, or — for a caller that is not signing — consent with ?force=true (admin).
    • LOCK_REQUIRED

      public static final CurationCommitConflictException.Reason LOCK_REQUIRED
      A write was attempted while someone else holds the curation lock.

      Two strengths share this code. Sign-off requires the caller to HOLD the lock, so it is refused when nobody holds it too. Every other write — commit, restore — is refused only when a DIFFERENT identity holds it; an unheld dataset writes as it always did. The message names the holder either way.

    • PUBLICATION_REJECTED

      public static final CurationCommitConflictException.Reason PUBLICATION_REJECTED
      A paper the commit attaches stands rejected for this dataset by a source the commit does not outrank.
    • UNSPECIFIED

      public static final CurationCommitConflictException.Reason UNSPECIFIED
      The write refused this as a conflict without saying which kind — e.g. a short name already in use.
  • Method Details

    • values

      public static CurationCommitConflictException.Reason[] 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 CurationCommitConflictException.Reason 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