Enum Class AgentCurationKind

java.lang.Object
java.lang.Enum<AgentCurationKind>
ubic.gemma.model.expression.experiment.AgentCurationKind
All Implemented Interfaces:
Serializable, Comparable<AgentCurationKind>, Constable

public enum AgentCurationKind extends Enum<AgentCurationKind>
Discriminator on AgentProposal rows: which kind of agent activity a row records — a forward-looking proposal (pre-curation suggestion), an audit (a post-hoc review of an existing dataset, reporting findings to act on), or an evaluation (a scored assessment of curation that already exists).

Forward-compat naming: the enum is AgentCurationKind even though the entity remains AgentProposal for now — the step-5 rename to AgentCuration will not need to re-touch this enum.

The Hibernate persistence (see AgentProposal.hbm.xml) stores the enum Enum.name() verbatim (uppercase) via EnumType useNamed=true, matching the repo's convention for VARCHAR-mapped enums (Ticket, etc.). The getDbValue() / fromDbValue(String) helpers expose a lowercase form for DTOs / external surfaces where lowercase "proposal" / "audit" is preferred.

  • Enum Constant Details

    • PROPOSAL

      public static final AgentCurationKind PROPOSAL
    • AUDIT

      public static final AgentCurationKind AUDIT
    • EVALUATION

      public static final AgentCurationKind EVALUATION
      A scored assessment of curation that already exists — an agent grading annotations against a reference, or comparing two runs, rather than suggesting a change (PROPOSAL) or reporting defects to act on (AUDIT).

      Distinct from AUDIT in what the payload is for: an audit names findings a curator dispositions one by one, and an evaluation reports a measurement over a run. An evaluation set carries no per-finding dispositions, which is why the two cannot share one value without the review panel having to guess which it is holding.

  • Method Details

    • values

      public static AgentCurationKind[] 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 AgentCurationKind 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 use in JSON DTOs / API surfaces.
    • fromDbValue

      public static AgentCurationKind fromDbValue(String v)
      Parse the lowercase external form back into the enum. Accepts either case (delegates to valueOf(String) after uppercasing).