public class AuditResource extends Object
Constructor and Description |
---|
AuditResource(AuditService auditService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
export(JodaDate startDate,
JodaDate endDate,
String searchString,
String format,
javax.ws.rs.core.UriInfo uriInfo) |
List<AuditRecord> |
getAuditRecords(JodaDate startDate,
JodaDate endDate,
int start,
int limit,
String searchString,
javax.ws.rs.core.UriInfo uriInfo)
Fetch a paginated list of AuditRecord instances based on a date range.
|
List<AuditRecord> |
getAuditRecords(long number,
ChronoUnitCaseInsensitive units,
int start,
int limit,
String searchString,
javax.ws.rs.core.UriInfo uriInfo)
Fetch a paginated list of AuditRecord instances dating back to a certain time
|
RetentionPeriod |
getRetentionPeriod(javax.ws.rs.core.UriInfo uriInfo)
Fetches the current retention period
|
RetentionPeriod |
setRetentionPeriod(RetentionPeriod retentionPeriod,
javax.ws.rs.core.UriInfo uriInfo)
Set the retention period to a new value.
|
AuditRecord |
storeRecord(AuditRecord record,
javax.ws.rs.core.UriInfo uriInfo) |
public AuditResource(AuditService auditService)
public List<AuditRecord> getAuditRecords(long number, ChronoUnitCaseInsensitive units, int start, int limit, String searchString, @Context javax.ws.rs.core.UriInfo uriInfo)
number
- the amount of time periodsunits
- the units to use for the time periods eg. 'days', 'months' etcstart
- where to start within results setlimit
- the maximum results to fetchuriInfo
- (injected) information about the requestpublic RetentionPeriod getRetentionPeriod(@Context javax.ws.rs.core.UriInfo uriInfo)
uriInfo
- (injected) information about the requestpublic RetentionPeriod setRetentionPeriod(RetentionPeriod retentionPeriod, @Context javax.ws.rs.core.UriInfo uriInfo)
retentionPeriod
- The new retention period to storeuriInfo
- (injected) information about the requestpublic List<AuditRecord> getAuditRecords(JodaDate startDate, JodaDate endDate, int start, int limit, String searchString, @Context javax.ws.rs.core.UriInfo uriInfo)
startDate
- earlier date to fetch records forendDate
- latest date to fetch records forstart
- where to start within results setlimit
- the maximum results to fetchuriInfo
- (injected) information about the requestpublic javax.ws.rs.core.Response export(JodaDate startDate, JodaDate endDate, String searchString, String format, @Context javax.ws.rs.core.UriInfo uriInfo)
public AuditRecord storeRecord(AuditRecord record, @Context javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2003–2016 Atlassian. All rights reserved.