Enum Class PublicationAssociationStatus

java.lang.Object
java.lang.Enum<PublicationAssociationStatus>
ubic.gemma.model.common.description.PublicationAssociationStatus
All Implemented Interfaces:
Serializable, Comparable<PublicationAssociationStatus>, Constable

public enum PublicationAssociationStatus extends Enum<PublicationAssociationStatus>
Whether a PublicationAssociation affirms or denies the link between an experiment and a publication.

REJECTED is the addition that matters. Before this table Gemma could say "the publication for this experiment is X" but had no way to say "Y was considered and ruled out, on this evidence, by this authority" — so every rejection had to live outside Gemma in a hand-maintained exclusion file, and every re-run of a publication finder re-proposed the paper a curator had already thrown out.

  • Enum Constant Details

    • ACCEPTED

      public static final PublicationAssociationStatus ACCEPTED
      This publication belongs to this experiment. Mirrored into the primary / other-relevant link the rest of Gemma (and Gemma 1.x) reads, according to the row's role.
    • REJECTED

      public static final PublicationAssociationStatus REJECTED
      This publication was considered for this experiment and ruled out. There is deliberately no corresponding link on the experiment: a rejected row is a record of the decision, not a weaker kind of association, and it must stay invisible to anything that lists a dataset's publications.
  • Method Details

    • values

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