Package org.openiam.common.beans.audit
Class AuditLogHelper
- java.lang.Object
-
- org.openiam.common.beans.audit.AuditLogHelper
-
- All Implemented Interfaces:
AuditLogSupplier
@Component public class AuditLogHelper extends Object implements AuditLogSupplier
Created by alexander on 29/08/16.
-
-
Constructor Summary
Constructors Constructor Description AuditLogHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enqueue(AuditLogBuilder event)
Puts an AuditLogBuilder on the queue for saving.AuditLogBuilder
newInstance()
Creates a newAuditLogBuilder
instance.AuditLogBuilder
newInstanceNotChild()
-
-
-
Method Detail
-
enqueue
public void enqueue(AuditLogBuilder event)
Puts an AuditLogBuilder on the queue for saving. This should be called in a finally {} block by the thread that both sets the Security Context, and sets the ThreadLocalAuditLogHolder
- Specified by:
enqueue
in interfaceAuditLogSupplier
- Parameters:
event
-
-
newInstance
public AuditLogBuilder newInstance()
Creates a newAuditLogBuilder
instance. If one already exists within the current, a child is automatically created and added to the parent- Specified by:
newInstance
in interfaceAuditLogSupplier
- Returns:
-
newInstanceNotChild
public AuditLogBuilder newInstanceNotChild()
-
-