Class TicketEventValueObject

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

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

The actorId / actorName pair is the minimum we surface about the Contact so we don't accidentally leak the full Contact payload.

Author:
paul
See Also:
  • Constructor Details

    • TicketEventValueObject

      public TicketEventValueObject()
  • Method Details

    • from

      public static TicketEventValueObject from(TicketEvent e)
    • getId

      public Long getId()
    • getType

      public TicketEventType getType()
    • getOccurredAt

      public Date getOccurredAt()
    • getActorId

      @Nullable public Long getActorId()
    • getActorName

      @Nullable public String getActorName()
    • getPayload

      @Nullable public String getPayload()
    • setId

      public void setId(Long id)
    • setType

      public void setType(TicketEventType type)
    • setOccurredAt

      public void setOccurredAt(Date occurredAt)
    • setActorId

      public void setActorId(@Nullable Long actorId)
    • setActorName

      public void setActorName(@Nullable String actorName)
    • setPayload

      public void setPayload(@Nullable String payload)
    • 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