public class AuditingResource extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JIRA_REST_PLUGIN_KEY |
Constructor and Description |
---|
AuditingResource(I18nHelper i18nHelper,
AuditingService auditingService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addRecord(AuditRecordBean bean,
javax.servlet.http.HttpServletRequest request)
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,
String projectIds,
String userIds)
Returns auditing records filtered using provided parameters
|
public static final String JIRA_REST_PLUGIN_KEY
public AuditingResource(I18nHelper i18nHelper, AuditingService auditingService)
public javax.ws.rs.core.Response getRecords(Integer offset, Integer limit, String filter, org.joda.time.DateTime from, org.joda.time.DateTime to, String projectIds, String userIds)
offset
- - the number of record from which search startslimit
- - 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 fieldsfrom
- - 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 responseto
- - 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 responseprojectIds
- - list of project ids to look foruserIds
- - list of user ids to look forpublic javax.ws.rs.core.Response addRecord(AuditRecordBean bean, @Context javax.servlet.http.HttpServletRequest request)
Copyright © 2002-2019 Atlassian. All Rights Reserved.