Class AuditServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.AuditServiceImpl
-
- All Implemented Interfaces:
AuditService
,JAXRSService
@Service public class AuditServiceImpl extends AbstractService implements AuditService
-
-
Field Summary
Fields Modifier and Type Field Description protected AuditLogic
logic
-
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
-
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
-
Constructor Summary
Constructors Constructor Description AuditServiceImpl(AuditLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(AuditEntry auditEntry)
Create an audit entry.void
delete(String key)
Deletes the audit matching the provided key.List<EventCategory>
events()
Returns the list of all managed events in audit.List<AuditConfTO>
list()
Returns a list of all audits.AuditConfTO
read(String key)
Returns audit with matching key.PagedResult<AuditEntry>
search(AuditQuery auditQuery)
Returns a paged list of audit entries matching the given query.void
set(AuditConfTO auditTO)
Set an audit setting.-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
-
-
-
Field Detail
-
logic
protected final AuditLogic logic
-
-
Constructor Detail
-
AuditServiceImpl
public AuditServiceImpl(AuditLogic logic)
-
-
Method Detail
-
list
public List<AuditConfTO> list()
Description copied from interface:AuditService
Returns a list of all audits.- Specified by:
list
in interfaceAuditService
- Returns:
- list of all audits.
-
read
public AuditConfTO read(String key)
Description copied from interface:AuditService
Returns audit with matching key.- Specified by:
read
in interfaceAuditService
- Parameters:
key
- audit key to be read- Returns:
- audit with matching key
-
set
public void set(AuditConfTO auditTO)
Description copied from interface:AuditService
Set an audit setting.- Specified by:
set
in interfaceAuditService
- Parameters:
auditTO
- audit to be stored
-
delete
public void delete(String key)
Description copied from interface:AuditService
Deletes the audit matching the provided key.- Specified by:
delete
in interfaceAuditService
- Parameters:
key
- audit key to be deleted
-
create
public void create(AuditEntry auditEntry)
Description copied from interface:AuditService
Create an audit entry.- Specified by:
create
in interfaceAuditService
- Parameters:
auditEntry
- audit entry to persist.
-
events
public List<EventCategory> events()
Description copied from interface:AuditService
Returns the list of all managed events in audit.- Specified by:
events
in interfaceAuditService
- Returns:
- list of all managed events in audit
-
search
public PagedResult<AuditEntry> search(AuditQuery auditQuery)
Description copied from interface:AuditService
Returns a paged list of audit entries matching the given query.- Specified by:
search
in interfaceAuditService
- Parameters:
auditQuery
- query conditions- Returns:
- paged list of audit entries matching the given query
-
-