Class DefaultAuditManager
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.DefaultAuditManager
-
- All Implemented Interfaces:
AuditManager
@Transactional(readOnly=true) public class DefaultAuditManager extends Object implements AuditManager
-
-
Field Summary
Fields Modifier and Type Field Description protected AuditConfDAO
auditConfDAO
protected static String
MASKED_VALUE
-
Constructor Summary
Constructors Constructor Description DefaultAuditManager(AuditConfDAO auditConfDAO)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
audit(AfterHandlingEvent event)
Create audit entries according to the provided event.boolean
auditRequested(String who, AuditElements.EventCategoryType type, String category, String subcategory, String event)
Checks if audit is requested matching the provided conditions.protected static Object
maskSensitive(Object object)
-
-
-
Field Detail
-
MASKED_VALUE
protected static final String MASKED_VALUE
- See Also:
- Constant Field Values
-
auditConfDAO
protected final AuditConfDAO auditConfDAO
-
-
Constructor Detail
-
DefaultAuditManager
public DefaultAuditManager(AuditConfDAO auditConfDAO)
-
-
Method Detail
-
auditRequested
public boolean auditRequested(String who, AuditElements.EventCategoryType type, String category, String subcategory, String event)
Description copied from interface:AuditManager
Checks if audit is requested matching the provided conditions.- Specified by:
auditRequested
in interfaceAuditManager
- Parameters:
who
- user triggering the eventtype
- event category typecategory
- event categorysubcategory
- event subcategoryevent
- event- Returns:
- created notification tasks
-
audit
@Transactional(propagation=NOT_SUPPORTED) public void audit(AfterHandlingEvent event)
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
@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)
Description copied from interface:AuditManager
Create audit entries for each audit matching provided conditions.- Specified by:
audit
in interfaceAuditManager
- Parameters:
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 event
-
-