Class CompactAuditEventValueObject
java.lang.Object
ubic.gemma.rest.CompactAuditEventValueObject
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.1for a solo event.lastOccurrence— timestamp of the LAST event in the run; equals the entry'sdatefor a solo event.
-
Constructor Summary
ConstructorsConstructorDescriptionCompactAuditEventValueObject(AuditEventValueObject event, int collapsedCount, Date lastOccurrence) -
Method Summary
Modifier and TypeMethodDescriptionintgetEvent()voidsetCollapsedCount(int collapsedCount) voidsetLastOccurrence(Date lastOccurrence)
-
Constructor Details
-
CompactAuditEventValueObject
public CompactAuditEventValueObject(AuditEventValueObject event, int collapsedCount, Date lastOccurrence)
-
-
Method Details
-
getEvent
-
getCollapsedCount
public int getCollapsedCount() -
getLastOccurrence
-
setCollapsedCount
public void setCollapsedCount(int collapsedCount) -
setLastOccurrence
-