public class AuditingManagerImpl extends Object implements AuditingManager, Startable
Constructor and Description |
---|
AuditingManagerImpl(AuditingStore auditingStore,
com.atlassian.event.api.EventPublisher eventPublisher,
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,
JiraUpgradeEventHandler jiraUpgradeEventHandler,
ScreensEventHandler screensEventHandler,
IssueTypesEventHandler issueTypesEventHandler,
GeneralConfigurationChangesEventHandler generalConfigurationChangesEventHandler,
SharedEntityEventHandler sharedEntityEventHandler) |
Modifier and Type | Method and Description |
---|---|
long |
countRecords(Long maxId,
Long sinceId) |
protected long |
countRecords(Long maxId,
Long sinceId,
boolean includeSysAdminActions) |
long |
countRecordsWithoutSysAdmin(Long maxId,
Long sinceId) |
protected static I18nHelper |
getI18n() |
protected ApplicationUser |
getLoggedInUser() |
Records |
getRecords(Long maxId,
Long sinceId,
Integer maxResults,
Integer offset,
AuditingFilter filter)
Get records from the database.
|
protected Records |
getRecords(Long maxId,
Long sinceId,
Integer maxResults,
Integer offset,
AuditingFilter filter,
boolean includeSysAdminActions) |
Records |
getRecordsWithoutSysAdmin(Long maxId,
Long sinceId,
Integer maxResults,
Integer offset,
AuditingFilter filter)
Does the same as
AuditingManager.getRecords(Long, Long, Integer, Integer, AuditingFilter) but filters out all records
authored by sysadmins (users who were sysadmins at the time of performing the action) |
protected String |
getRemoteAddress() |
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
void |
store(RecordRequest record) |
public AuditingManagerImpl(AuditingStore auditingStore, com.atlassian.event.api.EventPublisher eventPublisher, 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, JiraUpgradeEventHandler jiraUpgradeEventHandler, ScreensEventHandler screensEventHandler, IssueTypesEventHandler issueTypesEventHandler, GeneralConfigurationChangesEventHandler generalConfigurationChangesEventHandler, SharedEntityEventHandler sharedEntityEventHandler)
public void store(RecordRequest record)
store
in interface AuditingManager
@Nonnull public Records getRecords(@Nullable Long maxId, @Nullable Long sinceId, @Nullable Integer maxResults, @Nullable Integer offset, @Nullable AuditingFilter filter)
AuditingManager
getRecords
in interface AuditingManager
maxId
- max record id to return (including), doesn't have to represent a real record in the databasesinceId
- smallest record id to return (including), doesn't have to represent a real record in the databasemaxResults
- 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 countedfilter
- defines how records should be filtered out before being returned, if null records will not be filtered@Nonnull public Records getRecordsWithoutSysAdmin(@Nullable Long maxId, @Nullable Long sinceId, @Nullable Integer maxResults, @Nullable Integer offset, @Nullable AuditingFilter filter)
AuditingManager
AuditingManager.getRecords(Long, Long, Integer, Integer, AuditingFilter)
but filters out all records
authored by sysadmins (users who were sysadmins at the time of performing the action)getRecordsWithoutSysAdmin
in interface AuditingManager
public long countRecords(@Nullable Long maxId, @Nullable Long sinceId)
countRecords
in interface AuditingManager
public long countRecordsWithoutSysAdmin(@Nullable Long maxId, @Nullable Long sinceId)
countRecordsWithoutSysAdmin
in interface AuditingManager
protected Records getRecords(@Nullable Long maxId, @Nullable Long sinceId, @Nullable Integer maxResults, Integer offset, @Nullable AuditingFilter filter, boolean includeSysAdminActions)
protected long countRecords(@Nullable Long maxId, @Nullable Long sinceId, boolean includeSysAdminActions)
protected ApplicationUser getLoggedInUser()
protected static I18nHelper getI18n()
Copyright © 2002-2019 Atlassian. All Rights Reserved.