Class AuditResource
- java.lang.Object
-
- com.atlassian.confluence.plugins.restapi.resources.AuditResource
-
@Deprecated public class AuditResource extends Object
Deprecated.since 7.5.0. Use AuditRestResource from atlassian-audit-plugin- Since:
- 5.10
-
-
Constructor Summary
Constructors Constructor Description AuditResource(AuditService auditService)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.ws.rs.core.Responseexport(JodaDate startDate, JodaDate endDate, String searchString, String format, javax.ws.rs.core.UriInfo uriInfo)Deprecated.List<AuditRecord>getAuditRecords(long number, ChronoUnitCaseInsensitive units, int start, int limit, String searchString, javax.ws.rs.core.UriInfo uriInfo)Deprecated.Fetch a paginated list of AuditRecord instances dating back to a certain timeList<AuditRecord>getAuditRecords(JodaDate startDate, JodaDate endDate, int start, int limit, String searchString, javax.ws.rs.core.UriInfo uriInfo)Deprecated.Fetch a paginated list of AuditRecord instances based on a date range.RetentionPeriodgetRetentionPeriod(javax.ws.rs.core.UriInfo uriInfo)Deprecated.Fetches the current retention periodRetentionPeriodsetRetentionPeriod(RetentionPeriod retentionPeriod, javax.ws.rs.core.UriInfo uriInfo)Deprecated.Set the retention period to a new value.AuditRecordstoreRecord(AuditRecord record, javax.ws.rs.core.UriInfo uriInfo)Deprecated.
-
-
-
Constructor Detail
-
AuditResource
public AuditResource(AuditService auditService)
Deprecated.
-
-
Method Detail
-
getAuditRecords
public List<AuditRecord> getAuditRecords(long number, ChronoUnitCaseInsensitive units, int start, int limit, String searchString, @Context javax.ws.rs.core.UriInfo uriInfo)
Deprecated.Fetch a paginated list of AuditRecord instances dating back to a certain time- Parameters:
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 request- Returns:
- A paginated list of records
-
getRetentionPeriod
public RetentionPeriod getRetentionPeriod(@Context javax.ws.rs.core.UriInfo uriInfo)
Deprecated.Fetches the current retention period- Parameters:
uriInfo- (injected) information about the request- Returns:
- A paginated list of records
-
setRetentionPeriod
public RetentionPeriod setRetentionPeriod(RetentionPeriod retentionPeriod, @Context javax.ws.rs.core.UriInfo uriInfo)
Deprecated.Set the retention period to a new value. Can throw ServiceException if the retention period is too long- Parameters:
retentionPeriod- The new retention period to storeuriInfo- (injected) information about the request- Returns:
- A paginated list of records
-
getAuditRecords
public List<AuditRecord> getAuditRecords(JodaDate startDate, JodaDate endDate, int start, int limit, String searchString, @Context javax.ws.rs.core.UriInfo uriInfo)
Deprecated.Fetch a paginated list of AuditRecord instances based on a date range.- Parameters:
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 request- Returns:
- A paginated list of records
-
export
public javax.ws.rs.core.Response export(JodaDate startDate, JodaDate endDate, String searchString, String format, @Context javax.ws.rs.core.UriInfo uriInfo)
Deprecated.
-
storeRecord
public AuditRecord storeRecord(AuditRecord record, @Context javax.ws.rs.core.UriInfo uriInfo)
Deprecated.
-
-