Class AuditTrail
- java.lang.Object
-
- ubic.gemma.model.common.auditAndSecurity.AuditTrail
-
- All Implemented Interfaces:
Serializable,Identifiable
public class AuditTrail extends Object implements Identifiable, Serializable
The trail of events (create or update) that occurred in an objects lifetime. The first event added must be a "Create" event, or an exception will be thrown.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuditTrail.Factory
-
Constructor Summary
Constructors Constructor Description AuditTrail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)AuditEventgetCreationEvent()List<AuditEvent>getEvents()LonggetId()AuditEventgetLast()inthashCode()voidsetEvents(List<AuditEvent> events)voidsetId(Long id)
-
-
-
Method Detail
-
getEvents
public List<AuditEvent> getEvents()
-
setEvents
public void setEvents(List<AuditEvent> events)
-
getId
public Long getId()
- Specified by:
getIdin interfaceIdentifiable
-
setId
public void setId(Long id)
-
getCreationEvent
public AuditEvent getCreationEvent()
- Returns:
- the first event in the audit trail.
-
getLast
public AuditEvent getLast()
- Returns:
- the last (most recent) event in the AuditTrail.
-
-