com.atlassian.jira.rest.v2.admin.auditing
Class AuditingResource

java.lang.Object
  extended by com.atlassian.jira.rest.v2.admin.auditing.AuditingResource

public class AuditingResource
extends Object

Resource representing the auditing records

Since:
6.3

Constructor Summary
AuditingResource(I18nHelper i18nHelper, AuditingService auditingService, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
 javax.ws.rs.core.Response addRecord(AuditRecordBean bean)
          Store a record in Audit Log
 javax.ws.rs.core.Response getRecords(Integer offset, Integer limit, String filter, org.joda.time.DateTime from, org.joda.time.DateTime to)
          Returns auditing records filtered using provided parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditingResource

public AuditingResource(I18nHelper i18nHelper,
                        AuditingService auditingService,
                        JiraAuthenticationContext authenticationContext)
Method Detail

getRecords

public javax.ws.rs.core.Response getRecords(Integer offset,
                                            Integer limit,
                                            String filter,
                                            org.joda.time.DateTime from,
                                            org.joda.time.DateTime to)
Returns auditing records filtered using provided parameters

Parameters:
offset - - the number of record from which search starts
limit - - maximum number of returned results (if is limit is <= 0 or > 1000, it will be set do default value: 1000)
filter - - text query; each record that will be returned must contain the provided text in one of its fields
from - - timestamp in past; 'from' must be less or equal 'to', otherwise the result set will be empty only records that where created in the same moment or after the 'from' timestamp will be provided in response
to - - timestamp in past; 'from' must be less or equal 'to', otherwise the result set will be empty only records that where created in the same moment or earlier than the 'to' timestamp will be provided in response
Returns:
auditing records with all associated objects
Since:
6.3

addRecord

public javax.ws.rs.core.Response addRecord(AuditRecordBean bean)
Store a record in Audit Log

Since:
6.3


Copyright © 2002-2014 Atlassian. All Rights Reserved.