Enum Class CurationDecisionScope

java.lang.Object
java.lang.Enum<CurationDecisionScope>
ubic.gemma.model.common.auditAndSecurity.curation.CurationDecisionScope
All Implemented Interfaces:
Serializable, Comparable<CurationDecisionScope>, Constable

public enum CurationDecisionScope extends Enum<CurationDecisionScope>
How wide a CurationDecision reaches — the difference between the refusal verbs the curation ledger actually uses.
  • Enum Constant Details

    • ITEM

      public static final CurationDecisionScope ITEM
      One thing: this tag, this value, this deletion. The narrowest ruling, and the one reject_add and reject_drop make.
    • KEY

      public static final CurationDecisionScope KEY
      Everything under one key, INCLUDING siblings that have not been proposed yet. What reject_factor means: the ruling gates the whole key, not the one factor that happened to be in front of the curator.
    • PROPOSAL

      public static final CurationDecisionScope PROPOSAL
      A whole proposal at once — reject_all. Names the annotation set it answered rather than a key.
  • Method Details

    • values

      public static CurationDecisionScope[] 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 CurationDecisionScope 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
    • getDbValue

      public String getDbValue()
      Returns:
      the lowercase external form for JSON / wire surfaces.
    • fromDbValue

      public static CurationDecisionScope fromDbValue(@Nullable String v)
      Parse the external form, accepting either case.
      Parameters:
      v - the external spelling
      Returns:
      the scope it names
      Throws:
      IllegalArgumentException - if v names no scope