Class DefaultAuditManager
java.lang.Object
org.apache.syncope.core.provisioning.java.DefaultAuditManager
- All Implemented Interfaces:
AuditManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AuditConfDAOprotected final AuditEventDAOprotected final List<AuditEventProcessor> protected final EntityFactoryprotected static final Loggerprotected static final Stringprotected final AsyncTaskExecutor -
Constructor Summary
ConstructorsConstructorDescriptionDefaultAuditManager(AuditConfDAO auditConfDAO, AuditEventDAO auditEventDAO, EntityFactory entityFactory, List<AuditEventProcessor> auditEventProcessors, AsyncTaskExecutor taskExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaudit(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.voidaudit(AfterHandlingEvent event) Create audit entries according to the provided event.booleanauditRequested(String domain, String who, OpEvent.CategoryType type, String category, String subcategory, String op) Checks if audit is requested matching the provided conditions.protected static ObjectmaskSensitive(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:AuditManagerChecks if audit is requested matching the provided conditions.- Specified by:
auditRequestedin 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:AuditManagerCreate audit entries according to the provided event.- Specified by:
auditin 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:AuditManagerCreate audit entries for each audit matching provided conditions.- Specified by:
auditin 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
-