public class

AuditingManagerImpl

extends Object
implements AuditingManager Startable
java.lang.Object
   ↳ com.atlassian.jira.auditing.AuditingManagerImpl

Summary

Public Constructors
AuditingManagerImpl(AuditingStore auditingStore, ApplicationProperties applicationProperties, EventPublisher eventPublisher, FeatureManager featureManager, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, PermissionChangeHandler permissionChangeHandler, GroupEventHandler groupEventHandler, SchemeEventHandler schemeEventHandler, UserEventHandler userEventHandler, WorkflowEventHandler workflowEventHandler, NotificationChangeHandler notificationChangeHandler, FieldLayoutSchemeChangeHandler fieldLayoutSchemeChangeHandler, ProjectEventHandler projectEventHandler, BarrierFactory barrierFactory, ProjectComponentEventHandler projectComponentEventHandler, VersionEventHandler versionEventHandler, SystemAuditEventHandler systemAuditEventHandler)
Public Methods
long countRecords(Long maxId, Long sinceId)
long countRecordsWithoutSysAdmin(Long maxId, Long sinceId)
@Nonnull Records getRecords(Long maxId, Long sinceId, Integer maxResults, Integer offset, AuditingFilter filter)
Get records from the database.
@Nonnull Records getRecordsWithoutSysAdmin(Long maxId, Long sinceId, Integer maxResults, Integer offset, AuditingFilter filter)
Does the same as #getRecords(Long, Long, Long) but filters out all records authored by sysadmins (users who were sysadmins at the time of performing the action)
void start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
void store(RecordRequest record)
Protected Methods
long countRecords(Long maxId, Long sinceId, boolean includeSysAdminActions)
static I18nHelper getI18n()
ApplicationUser getLoggedInUser()
Records getRecords(Long maxId, Long sinceId, Integer maxResults, Integer offset, AuditingFilter filter, boolean includeSysAdminActions)
@Nullable String getRemoteAddress()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.auditing.AuditingManager
From interface com.atlassian.jira.extension.Startable

Public Constructors

public AuditingManagerImpl (AuditingStore auditingStore, ApplicationProperties applicationProperties, EventPublisher eventPublisher, FeatureManager featureManager, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, PermissionChangeHandler permissionChangeHandler, GroupEventHandler groupEventHandler, SchemeEventHandler schemeEventHandler, UserEventHandler userEventHandler, WorkflowEventHandler workflowEventHandler, NotificationChangeHandler notificationChangeHandler, FieldLayoutSchemeChangeHandler fieldLayoutSchemeChangeHandler, ProjectEventHandler projectEventHandler, BarrierFactory barrierFactory, ProjectComponentEventHandler projectComponentEventHandler, VersionEventHandler versionEventHandler, SystemAuditEventHandler systemAuditEventHandler)

Public Methods

public long countRecords (Long maxId, Long sinceId)

public long countRecordsWithoutSysAdmin (Long maxId, Long sinceId)

@Nonnull public Records getRecords (Long maxId, Long sinceId, Integer maxResults, Integer offset, AuditingFilter filter)

Get records from the database.

Parameters
maxId max record id to return (including), doesn't have to represent a real record in the database
sinceId smallest record id to return (including), doesn't have to represent a real record in the database
maxResults number of records to get, you cannot get more than 10000 records at once (if you provide larger number it will be automatically capped)
offset offset from which records are being counted
filter defines how records should be filtered out before being returned, if null records will not be filtered

@Nonnull public Records getRecordsWithoutSysAdmin (Long maxId, Long sinceId, Integer maxResults, Integer offset, AuditingFilter filter)

Does the same as #getRecords(Long, Long, Long) but filters out all records authored by sysadmins (users who were sysadmins at the time of performing the action)

public void start ()

This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Throws
Exception

public void store (RecordRequest record)

Protected Methods

protected long countRecords (Long maxId, Long sinceId, boolean includeSysAdminActions)

protected static I18nHelper getI18n ()

protected ApplicationUser getLoggedInUser ()

protected Records getRecords (Long maxId, Long sinceId, Integer maxResults, Integer offset, AuditingFilter filter, boolean includeSysAdminActions)

@Nullable protected String getRemoteAddress ()