Class CompactAuditEventValueObject

java.lang.Object
ubic.gemma.rest.CompactAuditEventValueObject

public class CompactAuditEventValueObject extends Object
Wire payload for GET /datasets/{id}/auditEvents?compact=true.

Wraps an AuditEventValueObject (unwrapped at the JSON level so the shape stays a flat superset of the legacy entry) and adds two run-collapsing fields:

  • collapsedCount — number of consecutive audit events sharing the same (eventType, performer) pair that this entry represents. 1 for a solo event.
  • lastOccurrence — timestamp of the LAST event in the run; equals the entry's date for a solo event.
Compression happens within the response page only; runs are never merged across cursor boundaries.
  • Constructor Details

    • CompactAuditEventValueObject

      public CompactAuditEventValueObject(AuditEventValueObject event, int collapsedCount, Date lastOccurrence)
  • Method Details

    • getEvent

      public AuditEventValueObject getEvent()
    • getCollapsedCount

      public int getCollapsedCount()
    • getLastOccurrence

      public Date getLastOccurrence()
    • setCollapsedCount

      public void setCollapsedCount(int collapsedCount)
    • setLastOccurrence

      public void setLastOccurrence(Date lastOccurrence)