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 class
AuditTrail.Factory
-
Constructor Summary
Constructors Constructor Description AuditTrail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
AuditEvent
getCreationEvent()
List<AuditEvent>
getEvents()
Long
getId()
AuditEvent
getLast()
int
hashCode()
void
setEvents(List<AuditEvent> events)
void
setId(Long id)
-
-
-
Method Detail
-
getEvents
public List<AuditEvent> getEvents()
-
setEvents
public void setEvents(List<AuditEvent> events)
-
getId
public Long getId()
- Specified by:
getId
in 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.
-
-