Package org.apache.syncope.core.logic
Class AuditLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<AuditConfTO>
-
- org.apache.syncope.core.logic.AuditLogic
-
public class AuditLogic extends AbstractTransactionalLogic<AuditConfTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AuditAppender>
auditAppenders
protected AuditConfDAO
auditConfDAO
protected AuditManager
auditManager
protected AuditDataBinder
binder
protected EntityFactory
entityFactory
protected static List<EventCategory>
EVENTS
protected ImplementationLookup
implementationLookup
protected LoggingSystem
loggingSystem
protected ExternalResourceDAO
resourceDAO
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description AuditLogic(AuditConfDAO auditConfDAO, ExternalResourceDAO resourceDAO, EntityFactory entityFactory, ImplementationLookup implementationLookup, AuditDataBinder binder, AuditManager auditManager, List<AuditAppender> auditAppenders, LoggingSystem loggingSystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(AuditEntry auditEntry)
void
delete(String key)
List<EventCategory>
events()
List<AuditConfTO>
list()
AuditConfTO
read(String key)
protected AuditConfTO
resolveReference(Method method, Object... args)
Pair<Integer,List<AuditEntry>>
search(String entityKey, int page, int size, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, OffsetDateTime before, OffsetDateTime after, List<OrderByClause> orderBy)
void
set(AuditConfTO auditTO)
protected void
setLevel(String key, LogLevel level)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
EVENTS
protected static final List<EventCategory> EVENTS
-
auditConfDAO
protected final AuditConfDAO auditConfDAO
-
resourceDAO
protected final ExternalResourceDAO resourceDAO
-
entityFactory
protected final EntityFactory entityFactory
-
implementationLookup
protected final ImplementationLookup implementationLookup
-
binder
protected final AuditDataBinder binder
-
auditManager
protected final AuditManager auditManager
-
auditAppenders
protected final List<AuditAppender> auditAppenders
-
loggingSystem
protected final LoggingSystem loggingSystem
-
-
Constructor Detail
-
AuditLogic
public AuditLogic(AuditConfDAO auditConfDAO, ExternalResourceDAO resourceDAO, EntityFactory entityFactory, ImplementationLookup implementationLookup, AuditDataBinder binder, AuditManager auditManager, List<AuditAppender> auditAppenders, LoggingSystem loggingSystem)
-
-
Method Detail
-
list
@PreAuthorize("hasRole(\'AUDIT_LIST\')") @Transactional(readOnly=true) public List<AuditConfTO> list()
-
read
@PreAuthorize("hasRole(\'AUDIT_READ\')") @Transactional(readOnly=true) public AuditConfTO read(String key)
-
set
@PreAuthorize("hasRole(\'AUDIT_SET\')") public void set(AuditConfTO auditTO)
-
delete
@PreAuthorize("hasRole(\'AUDIT_DELETE\')") public void delete(String key)
-
events
@PreAuthorize("hasRole(\'AUDIT_LIST\') or hasRole(\'NOTIFICATION_LIST\')") public List<EventCategory> events()
-
search
@PreAuthorize("hasRole(\'AUDIT_SEARCH\')") @Transactional(readOnly=true) public Pair<Integer,List<AuditEntry>> search(String entityKey, int page, int size, AuditElements.EventCategoryType type, String category, String subcategory, List<String> events, AuditElements.Result result, OffsetDateTime before, OffsetDateTime after, List<OrderByClause> orderBy)
-
create
@PreAuthorize("isAuthenticated()") public void create(AuditEntry auditEntry)
-
resolveReference
protected AuditConfTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReference
in classAbstractLogic<AuditConfTO>
- Throws:
UnresolvedReferenceException
-
-