Class AuditResource


  • @Deprecated
    public class AuditResource
    extends Object
    Deprecated.
    since 7.5.0. Use AuditRestResource from atlassian-audit-plugin
    Since:
    5.10
    • 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 periods
        units - the units to use for the time periods eg. 'days', 'months' etc
        start - where to start within results set
        limit - the maximum results to fetch
        uriInfo - (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 store
        uriInfo - (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 for
        endDate - latest date to fetch records for
        start - where to start within results set
        limit - the maximum results to fetch
        uriInfo - (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.