Class AuditEvent.Factory
java.lang.Object
ubic.gemma.model.common.auditAndSecurity.AuditEvent.Factory
- Enclosing class:
AuditEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuditEventnewInstance(Date date, AuditAction action, String note, String detail, User performer, AuditEventType eventType) Create a new, immutable audit event.static AuditEventnewInstance(Date date, AuditAction action, String note, String detail, User performer, AuditEventType eventType, String payload) Create a new audit event with a serialised payload.static AuditEventnewInstance(Date date, AuditAction action, String note, String detail, User performer, AuditEventType eventType, String payload, String onBehalfOf) As above, naming the curator the action was taken for.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
newInstance
public static AuditEvent newInstance(Date date, AuditAction action, String note, String detail, User performer, AuditEventType eventType) Create a new, immutable audit event. -
newInstance
public static AuditEvent newInstance(Date date, AuditAction action, String note, String detail, User performer, AuditEventType eventType, @Nullable String payload) Create a new audit event with a serialised payload. Phase A ofAUDIT_SYSTEM_AUDIT.md: used byAuditedAspectwhen the annotated method declared anAuditEventPayloadparameter. -
newInstance
public static AuditEvent newInstance(Date date, AuditAction action, String note, String detail, User performer, AuditEventType eventType, @Nullable String payload, @Nullable String onBehalfOf) As above, naming the curator the action was taken for. SeeAuditEvent.getOnBehalfOf().
-