use of org.apereo.cas.audit.spi.DefaultAuditTrailExecutionPlan in project cas by apereo.
the class CasCoreAuditConfiguration method auditTrailExecutionPlan.
@Autowired
@ConditionalOnMissingBean(name = "auditTrailExecutionPlan")
@Bean
public AuditTrailExecutionPlan auditTrailExecutionPlan(final List<AuditTrailExecutionPlanConfigurer> configurers) {
final DefaultAuditTrailExecutionPlan plan = new DefaultAuditTrailExecutionPlan();
configurers.forEach(c -> {
final String name = StringUtils.removePattern(c.getClass().getSimpleName(), "\\$.+");
LOGGER.debug("Registering audit trail manager [{}]", name);
c.configureAuditTrailExecutionPlan(plan);
});
return plan;
}
Aggregations