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. |
AuditLogEntry post(String user, String origin, String activity, String description)
AuditLogEntry based on the supplied parameters.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)
AuditLogEntry objects present in the system, based on the criteria
exposed by the supplied filter, and sorted based on the supplied sort
specification.filter - AuditLogFilter
object expressing the desired filtering criteria to consider for
restricting the resulting list of AuditLog objectssortSpec - SortSpecification
defining how the data should be sorted for return. The
SortSpecification must be typed with a
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 - AuditLogFilter
object expressing the desired filtering criteria to consider for
restricting the resulting list of AuditLog objectssortSpec - SortSpecification
defining how the auditLog data should be sorted for return.The
SortSpecification must be typed with a
AuditLogSortAttribute representation.pageRequest - PageRequest the
definition of the desired pagePage of AuditLogEntry dataCopyright © 2014. All Rights Reserved.