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 classAuditEvent.Factory
-
Field Summary
Fields Modifier and Type Field Description static intMAX_DETAIL_LENGTHstatic intMAX_NOTE_LENGTH
-
Constructor Summary
Constructors Constructor Description AuditEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Important note: Two objects with the same class and non-null ID must be considered equal.AuditActiongetAction()DategetDate()StringgetDetail()AuditEventTypegetEventType()StringgetNote()UsergetPerformer()inthashCode()Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.StringtoString()-
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:AbstractIdentifiableImportant note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Specified by:
hashCodein classAbstractIdentifiable
-
equals
public boolean equals(Object object)
Description copied from class:AbstractIdentifiableImportant 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:
equalsin classAbstractIdentifiable
-
toString
public String toString()
- Overrides:
toStringin classAbstractIdentifiable
-
getAction
public AuditAction getAction()
-
getDate
public Date getDate()
-
getEventType
@Nullable public AuditEventType getEventType()
-
-