Class DefaultAuditManager
java.lang.Object
org.apache.syncope.core.provisioning.java.DefaultAuditManager
- All Implemented Interfaces:
AuditManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AuditConfDAO
protected final AuditEventDAO
protected final List
<AuditEventProcessor> protected final EntityFactory
protected static final Logger
protected static final String
protected final AsyncTaskExecutor
-
Constructor Summary
ConstructorDescriptionDefaultAuditManager
(AuditConfDAO auditConfDAO, AuditEventDAO auditEventDAO, EntityFactory entityFactory, List<AuditEventProcessor> auditEventProcessors, AsyncTaskExecutor taskExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
audit
(String domain, String who, OpEvent.CategoryType type, String category, String subcategory, String op, OpEvent.Outcome outcome, Object before, Object output, Object... input) Create audit entries for each audit matching provided conditions.void
audit
(AfterHandlingEvent event) Create audit entries according to the provided event.boolean
auditRequested
(String domain, String who, OpEvent.CategoryType type, String category, String subcategory, String op) Checks if audit is requested matching the provided conditions.protected static Object
maskSensitive
(Object object)
-
Field Details
-
LOG
-
MASKED_VALUE
- See Also:
-
auditConfDAO
-
auditEventDAO
-
entityFactory
-
auditEventProcessors
-
taskExecutor
-
-
Constructor Details
-
DefaultAuditManager
public DefaultAuditManager(AuditConfDAO auditConfDAO, AuditEventDAO auditEventDAO, EntityFactory entityFactory, List<AuditEventProcessor> auditEventProcessors, AsyncTaskExecutor taskExecutor)
-
-
Method Details
-
maskSensitive
-
auditRequested
public boolean auditRequested(String domain, String who, OpEvent.CategoryType type, String category, String subcategory, String op) Description copied from interface:AuditManager
Checks if audit is requested matching the provided conditions.- Specified by:
auditRequested
in interfaceAuditManager
- Parameters:
domain
- domainwho
- user triggering the eventtype
- event category typecategory
- event categorysubcategory
- event subcategoryop
- operation- Returns:
- created notification tasks
-
audit
Description copied from interface:AuditManager
Create audit entries according to the provided event.- Specified by:
audit
in interfaceAuditManager
- Parameters:
event
- Spring event raised during Logic processing
-
audit
public void audit(String domain, String who, OpEvent.CategoryType type, String category, String subcategory, String op, OpEvent.Outcome outcome, Object before, Object output, Object... input) Description copied from interface:AuditManager
Create audit entries for each audit matching provided conditions.- Specified by:
audit
in interfaceAuditManager
- Parameters:
domain
- domainwho
- user triggering the eventtype
- event category typecategory
- event categorysubcategory
- event subcategoryop
- operationoutcome
- result value condition.before
- object(s) available before the eventoutput
- object(s) produced by the eventinput
- object(s) provided to the event
-