Class AuditEvent
- java.lang.Object
-
- ubic.gemma.model.common.AbstractIdentifiable
-
- ubic.gemma.model.common.auditAndSecurity.AuditEvent
-
- All Implemented Interfaces:
Identifiable
public class AuditEvent extends AbstractIdentifiable
An event in the life of an object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuditEvent.Factory
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_DETAIL_LENGTH
static int
MAX_NOTE_LENGTH
-
Constructor Summary
Constructors Constructor Description AuditEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Important note: Two objects with the same class and non-null ID must be considered equal.AuditAction
getAction()
Date
getDate()
String
getDetail()
AuditEventType
getEventType()
String
getNote()
User
getPerformer()
int
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.String
toString()
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
getId, setId
-
-
-
-
Field Detail
-
MAX_NOTE_LENGTH
public static final int MAX_NOTE_LENGTH
- See Also:
- Constant Field Values
-
MAX_DETAIL_LENGTH
public static final int MAX_DETAIL_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 classAbstractIdentifiable
-
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 classAbstractIdentifiable
-
toString
public String toString()
- Overrides:
toString
in classAbstractIdentifiable
-
getAction
public AuditAction getAction()
-
getDate
public Date getDate()
-
getEventType
@Nullable public AuditEventType getEventType()
-
-