@Component public class LoggerLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
LoggerLogic() |
@PreAuthorize(value="hasRole(\'LOG_LIST\') and authentication.details.domain == T(org.apache.syncope.common.lib.SyncopeConstants).MASTER_DOMAIN") @Transactional(readOnly=true) public List<LogAppender> memoryAppenders()
@PreAuthorize(value="hasRole(\'LOG_READ\') and authentication.details.domain == T(org.apache.syncope.common.lib.SyncopeConstants).MASTER_DOMAIN") @Transactional(readOnly=true) public List<LogStatement> getLastLogStatements(String memoryAppender)
@PreAuthorize(value="hasRole(\'LOG_LIST\') and authentication.details.domain == T(org.apache.syncope.common.lib.SyncopeConstants).MASTER_DOMAIN") @Transactional(readOnly=true) public List<LoggerTO> listLogs()
@PreAuthorize(value="hasRole(\'AUDIT_LIST\')") @Transactional(readOnly=true) public List<AuditLoggerName> listAudits()
@PreAuthorize(value="hasRole(\'LOG_READ\') and authentication.details.domain == T(org.apache.syncope.common.lib.SyncopeConstants).MASTER_DOMAIN") @Transactional(readOnly=true) public LoggerTO readLog(String name)
@PreAuthorize(value="hasRole(\'AUDIT_READ\')") @Transactional(readOnly=true) public LoggerTO readAudit(String name)
@PreAuthorize(value="hasRole(\'LOG_SET_LEVEL\') and authentication.details.domain == T(org.apache.syncope.common.lib.SyncopeConstants).MASTER_DOMAIN") public LoggerTO setLogLevel(String name, org.apache.logging.log4j.Level level)
@PreAuthorize(value="hasRole(\'AUDIT_ENABLE\')") public void enableAudit(AuditLoggerName auditLoggerName)
@PreAuthorize(value="hasRole(\'LOG_DELETE\') and authentication.details.domain == T(org.apache.syncope.common.lib.SyncopeConstants).MASTER_DOMAIN") public LoggerTO deleteLog(String name)
@PreAuthorize(value="hasRole(\'AUDIT_DISABLE\')") public void disableAudit(AuditLoggerName auditLoggerName)
@PreAuthorize(value="hasRole(\'AUDIT_LIST\') or hasRole(\'NOTIFICATION_LIST\')") public List<EventCategory> listAuditEvents()
@PreAuthorize(value="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, Date before, Date after, List<OrderByClause> orderByClauses)
protected EntityTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
UnresolvedReferenceException
public T resolveBeanReference(Method method, Object... args) throws UnresolvedReferenceException
method
- method.args
- method arguments.UnresolvedReferenceException
- in case of failures, read-only methods and unresolved bean.Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.