Class TicketTargetValueObject

java.lang.Object
ubic.gemma.model.common.auditAndSecurity.curation.TicketTargetValueObject
All Implemented Interfaces:
Serializable

public class TicketTargetValueObject extends Object implements Serializable
Value object projection of TicketTarget for the REST surface (Phase B-2 of AUDIT_AS_WORKFLOW_RECCE.md).

The displayLabel and displayName fields are optional server-resolved hints — populated by the resource layer via a side-join to the targeted entity (e.g. ExpressionExperiment.shortName + .name for TicketTargetType.EXPRESSION_EXPERIMENT). They let the dashboard render a meaningful card without a follow-up fetch. Producers that don't have a cheap join leave them null; the UI falls back to the bare targetId.

Author:
paul
See Also:
  • Constructor Details

    • TicketTargetValueObject

      public TicketTargetValueObject()
  • Method Details

    • from

      public static TicketTargetValueObject from(TicketTarget t)
    • getScreeningResult

      public ScreeningResult getScreeningResult()
    • setScreeningResult

      public void setScreeningResult(ScreeningResult screeningResult)
    • getScreeningResultReason

      public String getScreeningResultReason()
    • setScreeningResultReason

      public void setScreeningResultReason(String screeningResultReason)
    • getId

      public Long getId()
    • getTargetType

      public TicketTargetType getTargetType()
    • getTargetId

      public Long getTargetId()
    • getStatus

      public TicketTargetStatus getStatus()
    • getDisplayLabel

      @Nullable public String getDisplayLabel()
      Short display label for the target (e.g. an EE's shortName like GSE12345). null when no cheap join is available.
    • getDisplayName

      @Nullable public String getDisplayName()
      Human-readable name for the target (e.g. an EE's full name). null when no cheap join is available.
    • setId

      public void setId(Long id)
    • setTargetType

      public void setTargetType(TicketTargetType targetType)
    • setTargetId

      public void setTargetId(Long targetId)
    • setStatus

      public void setStatus(TicketTargetStatus status)
    • setDisplayLabel

      public void setDisplayLabel(@Nullable String displayLabel)
      Short display label for the target (e.g. an EE's shortName like GSE12345). null when no cheap join is available.
    • setDisplayName

      public void setDisplayName(@Nullable String displayName)
      Human-readable name for the target (e.g. an EE's full name). null when no cheap join is available.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object