Package org.apache.syncope.core.logic
Class AuditLogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<AuditConfTO>
org.apache.syncope.core.logic.AbstractTransactionalLogic<AuditConfTO>
org.apache.syncope.core.logic.AuditLogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AuditConfDAO
protected final AuditEventDAO
protected final AuditManager
protected final AuditDataBinder
protected final EntityFactory
protected final ImplementationLookup
protected final ExternalResourceDAO
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionAuditLogic
(AuditConfDAO auditConfDAO, AuditEventDAO auditEventDAO, ExternalResourceDAO resourceDAO, EntityFactory entityFactory, ImplementationLookup implementationLookup, AuditDataBinder binder, AuditManager auditManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addForOutcomes
(Set<OpEvent> events, OpEvent.CategoryType type, String category, String subcategory, String op) confs()
void
create
(AuditEventTO eventTO) void
deleteConf
(String key) events()
protected AuditConfTO
resolveReference
(Method method, Object... args) org.springframework.data.domain.Page
<AuditEventTO> search
(String entityKey, OpEvent.CategoryType type, String category, String subcategory, String op, OpEvent.Outcome result, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) void
setConf
(AuditConfTO auditTO) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
EVENTS
-
auditConfDAO
-
auditEventDAO
-
resourceDAO
-
entityFactory
-
implementationLookup
-
binder
-
auditManager
-
-
Constructor Details
-
AuditLogic
public AuditLogic(AuditConfDAO auditConfDAO, AuditEventDAO auditEventDAO, ExternalResourceDAO resourceDAO, EntityFactory entityFactory, ImplementationLookup implementationLookup, AuditDataBinder binder, AuditManager auditManager)
-
-
Method Details
-
addForOutcomes
-
confs
@PreAuthorize("hasRole(\'AUDIT_LIST\')") @Transactional(readOnly=true) public List<AuditConfTO> confs() -
getConf
@PreAuthorize("hasRole(\'AUDIT_READ\')") @Transactional(readOnly=true) public AuditConfTO getConf(String key) -
setConf
-
deleteConf
-
events
@PreAuthorize("hasRole(\'AUDIT_LIST\') or hasRole(\'NOTIFICATION_LIST\')") public List<OpEvent> events() -
search
@PreAuthorize("hasRole(\'AUDIT_SEARCH\')") @Transactional(readOnly=true) public org.springframework.data.domain.Page<AuditEventTO> search(String entityKey, OpEvent.CategoryType type, String category, String subcategory, String op, OpEvent.Outcome result, OffsetDateTime before, OffsetDateTime after, org.springframework.data.domain.Pageable pageable) -
create
-
resolveReference
protected AuditConfTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<AuditConfTO>
- Throws:
UnresolvedReferenceException
-