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 AuditLogiclogic-
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 voidcreate(AuditEntry auditEntry)Create an audit entry.voiddelete(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.AuditConfTOread(String key)Returns audit with matching key.PagedResult<AuditEntry>search(AuditQuery auditQuery)Returns a paged list of audit entries matching the given query.voidset(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:AuditServiceReturns a list of all audits.- Specified by:
listin interfaceAuditService- Returns:
- list of all audits.
-
read
public AuditConfTO read(String key)
Description copied from interface:AuditServiceReturns audit with matching key.- Specified by:
readin interfaceAuditService- Parameters:
key- audit key to be read- Returns:
- audit with matching key
-
set
public void set(AuditConfTO auditTO)
Description copied from interface:AuditServiceSet an audit setting.- Specified by:
setin interfaceAuditService- Parameters:
auditTO- audit to be stored
-
delete
public void delete(String key)
Description copied from interface:AuditServiceDeletes the audit matching the provided key.- Specified by:
deletein interfaceAuditService- Parameters:
key- audit key to be deleted
-
create
public void create(AuditEntry auditEntry)
Description copied from interface:AuditServiceCreate an audit entry.- Specified by:
createin interfaceAuditService- Parameters:
auditEntry- audit entry to persist.
-
events
public List<EventCategory> events()
Description copied from interface:AuditServiceReturns the list of all managed events in audit.- Specified by:
eventsin interfaceAuditService- Returns:
- list of all managed events in audit
-
search
public PagedResult<AuditEntry> search(AuditQuery auditQuery)
Description copied from interface:AuditServiceReturns a paged list of audit entries matching the given query.- Specified by:
searchin interfaceAuditService- Parameters:
auditQuery- query conditions- Returns:
- paged list of audit entries matching the given query
-
-