Enum Class AnnotationSetSource

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

public enum AnnotationSetSource extends Enum<AnnotationSetSource>
Source discriminator on AnnotationSet rows. Identifies who produced the payload, orthogonal to the row's role.
  • AGENT — emitted by a curation-agents run. Pairs with the agentVersion / model / ranAt provenance fields.
  • CURATOR — produced by a human curator (typically DRAFT rows or curator-blessed SNAPSHOTs).
  • GEMMA_INTAKE — produced by the Gemma intake pipeline (e.g. GEO scrape harvest, MINiML parse). Reserves a slot for the case where the platform itself emits a starting-point annotation set for an experiment.
  • EXTERNAL_IMPORT — imported from an external curation source (CRAFT, Rogic, partner-lab handoff, …).
  • Enum Constant Details

  • Method Details

    • values

      public static AnnotationSetSource[] 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 AnnotationSetSource 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 AnnotationSetSource fromDbValue(String v)
      Parse the lowercase external form back into the enum. Accepts either case (delegates to valueOf(String) after uppercasing).