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
FieldsModifier and TypeFieldDescriptionprotected final AuditConfDAOprotected final AuditEventDAOprotected final AuditManagerprotected final AuditDataBinderprotected final EntityFactoryprotected final ImplementationLookupprotected final ExternalResourceDAOFields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG -
Constructor Summary
ConstructorsConstructorDescriptionAuditLogic(AuditConfDAO auditConfDAO, AuditEventDAO auditEventDAO, ExternalResourceDAO resourceDAO, EntityFactory entityFactory, ImplementationLookup implementationLookup, AuditDataBinder binder, AuditManager auditManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidaddForOutcomes(Set<OpEvent> events, OpEvent.CategoryType type, String category, String subcategory, String op) confs()voidcreate(AuditEventTO eventTO) voiddeleteConf(String key) events()protected AuditConfTOresolveReference(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) voidsetConf(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:
resolveReferencein classAbstractLogic<AuditConfTO>- Throws:
UnresolvedReferenceException
-