public interface AuditLogService
Modifier and Type | Method and Description |
---|---|
long |
entryCount()
Returns the number of audit log entries maintained in persistence.
|
List<AuditLogEntry> |
find(AuditLogFilter filter,
SortSpecification<AuditLogSortAttribute> sortSpec)
Returns a list of all AuditLogEntry objects present in the system,
based on the criteria exposed by the supplied filter, and sorted based
on the supplied sort specification.
|
Page<AuditLogEntry> |
find(AuditLogFilter filter,
SortSpecification<AuditLogSortAttribute> sortSpec,
PageRequest pageRequest)
Returns a page of
AuditLogEntry objects present in the system, based on the page specification,
based on the criteria exposed by the supplied filter,
and sorted based on the supplied sort specification |
void |
importAuditLogEntry(AuditLogEntry entry)
Add an audit log entry to this system.
|
AuditLogEntry |
post(String user,
String origin,
String activity,
String description)
Creates a new AuditLogEntry based on the supplied parameters.
|
String |
requestCSV(AuditLogFilter filter)
Request asynchronous production of an audit log csv file.
|
File |
retrieveCSVFile(String ticket)
Retrieve the zip file containing the audit log csv data, based on the
given ticket.
|
AuditLogEntry post(String user, String origin, String activity, String description)
user
- User associated with this AuditLogorigin
- the originating entity for this alertactivity
- The activity associated with this AuditLogdescription
- a description of the AuditLog activityvoid importAuditLogEntry(AuditLogEntry entry)
entry
- the audit log entry to addlong entryCount()
List<AuditLogEntry> find(AuditLogFilter filter, SortSpecification<AuditLogSortAttribute> sortSpec)
filter
- object expressing the desired filtering criteria to
consider for restricting the resulting list of AuditLog
objectssortSpec
- defines how the data should be sorted for return. The
SortSpecification must be typed with an
AuditLogSortAttribute
representation.Page<AuditLogEntry> find(AuditLogFilter filter, SortSpecification<AuditLogSortAttribute> sortSpec, PageRequest pageRequest)
AuditLogEntry
objects present in the system, based on the page specification,
based on the criteria exposed by the supplied filter,
and sorted based on the supplied sort specificationfilter
- object expressing the desired filtering criteria to
consider for restricting the resulting list of AuditLog
objectssortSpec
- defines how the data should be sorted for return. The
SortSpecification must be typed with an
AuditLogSortAttribute
representation.pageRequest
- definition of the desired pageString requestCSV(AuditLogFilter filter) throws IOException
retrieveCSVFile(java.lang.String)
method with the issued
ticket to obtain the support log data.filter
- object expressing the desired filtering criteria to
consider for restricting the resulting list of AuditLog
objectsIOException
- im error occurs writing dataFile retrieveCSVFile(String ticket)
IllegalArgumentException
is thrown.ticket
- the ticket issued when the request was madeCopyright © 2015. All Rights Reserved.