Class AuditEvent

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

@Entity public class AuditEvent extends AbstractIdentifiable
An event in the life of an object.
  • Field Details

  • Constructor Details

    • AuditEvent

      public AuditEvent()
  • Method Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class AbstractIdentifiable
    • getAction

      public AuditAction getAction()
    • getDate

      public Date getDate()
    • getDetail

      @Nullable public String getDetail()
    • getEventType

      @Nullable public AuditEventType getEventType()
    • getNote

      @Nullable public String getNote()
    • getPerformer

      @Nullable public User getPerformer()
    • getPayload

      @Nullable public String getPayload()
      Returns:
      the raw JSON serialisation of the originating AuditEventPayload, or null for legacy / payload-less events.
    • getOnBehalfOf

      @Nullable public String getOnBehalfOf()
      Returns:
      the curator this action was taken for, or null when the performer was acting for themselves — which is the ordinary case and most rows.