Class TicketEvent

java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.common.auditAndSecurity.curation.TicketEvent
All Implemented Interfaces:
Identifiable

@Entity public class TicketEvent extends AbstractIdentifiable
An append-only entry in a Ticket's workflow event log. Mirrors the Jackson payload shape used by AuditEvent.getPayload() so a single AuditEventPayload record can populate either stream.

Phase B-1 is append-only (Decision 4 of AUDIT_AS_WORKFLOW_RECCE.md); edits aren't supported yet.

Author:
paul
  • Constructor Details

    • TicketEvent

      public TicketEvent()
  • Method Details

    • getTicket

      public Ticket getTicket()
    • setTicket

      public void setTicket(Ticket ticket)
    • getActor

      public Contact getActor()
    • setActor

      public void setActor(Contact actor)
    • getOccurredAt

      public Date getOccurredAt()
    • setOccurredAt

      public void setOccurredAt(Date occurredAt)
    • getType

      public TicketEventType getType()
    • setType

      public void setType(TicketEventType type)
    • getPayload

      @Nullable public String getPayload()
    • setPayload

      public void setPayload(@Nullable String payload)
    • hashCode

      public int hashCode()
      Description copied from class: AbstractIdentifiable
      Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.
      Specified by:
      hashCode in class AbstractIdentifiable
    • equals

      public boolean equals(Object object)
      Description copied from class: AbstractIdentifiable
      Important note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.
      Specified by:
      equals in class AbstractIdentifiable