@Transactional(readOnly=true) public class DefaultAuditManager extends Object implements AuditManager
Constructor and Description |
---|
DefaultAuditManager() |
Modifier and Type | Method and Description |
---|---|
void |
audit(AfterHandlingEvent event)
Create audit entries according to the provided event.
|
void |
audit(String who,
AuditElements.EventCategoryType type,
String category,
String subcategory,
String event,
AuditElements.Result condition,
Object before,
Object output,
Object... input)
Create audit entries for each audit matching provided conditions.
|
boolean |
auditRequested(String who,
AuditElements.EventCategoryType type,
String category,
String subcategory,
String event)
Checks if audit is requested matching the provided conditions.
|
public boolean auditRequested(String who, AuditElements.EventCategoryType type, String category, String subcategory, String event)
AuditManager
auditRequested
in interface AuditManager
who
- user triggering the eventtype
- event category typecategory
- event categorysubcategory
- event subcategoryevent
- event@Transactional(propagation=NOT_SUPPORTED) public void audit(AfterHandlingEvent event)
AuditManager
audit
in interface AuditManager
event
- Spring event raised during Logic processing@Transactional(propagation=NOT_SUPPORTED) public void audit(String who, AuditElements.EventCategoryType type, String category, String subcategory, String event, AuditElements.Result condition, Object before, Object output, Object... input)
AuditManager
audit
in interface AuditManager
who
- user triggering the eventtype
- event category typecategory
- event categorysubcategory
- event subcategoryevent
- eventcondition
- result value condition.before
- object(s) available before the eventoutput
- object(s) produced by the eventinput
- object(s) provided to the eventCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.