public class AuditingStoreToAuditServiceImpl extends Object implements AuditingStore
AuditService
implementationModifier and Type | Field and Description |
---|---|
static InvocationSwitcher |
shallBeUsed |
Constructor and Description |
---|
AuditingStoreToAuditServiceImpl(com.atlassian.audit.api.AuditService auditService,
AuditEvents auditEvents) |
Modifier and Type | Method and Description |
---|---|
long |
countRecords(Long maxId,
Long sinceId,
boolean includeSysAdminActions) |
long |
countRecordsOlderThan(long timestamp) |
protected com.atlassian.audit.api.AuditSearchService |
getAuditSearchService() |
Records |
getRecords(Long maxId,
Long sinceId,
Integer maxResults,
Integer offset,
AuditingFilter filter,
boolean includeSysAdminActions) |
long |
removeRecordsOlderThan(long timestamp) |
void |
storeRecord(AuditingCategory category,
String categoryName,
String summaryI18nKey,
String eventSource,
ApplicationUser author,
String remoteAddress,
AssociatedItem object,
Iterable<ChangedValue> changedValues,
Iterable<AssociatedItem> associatedItems,
boolean isAuthorSysAdmin) |
void |
storeRecord(AuditingEntry entry)
Stores a record based on the information in the supplied entry.
|
public static final InvocationSwitcher shallBeUsed
public AuditingStoreToAuditServiceImpl(com.atlassian.audit.api.AuditService auditService, AuditEvents auditEvents)
public void storeRecord(@Nonnull AuditingCategory category, String categoryName, @Nonnull String summaryI18nKey, @Nonnull String eventSource, @Nullable ApplicationUser author, @Nullable String remoteAddress, @Nullable AssociatedItem object, @Nullable Iterable<ChangedValue> changedValues, @Nullable Iterable<AssociatedItem> associatedItems, boolean isAuthorSysAdmin)
storeRecord
in interface AuditingStore
public void storeRecord(@Nonnull AuditingEntry entry)
AuditingStore
storeRecord
in interface AuditingStore
entry
- contains the information to log@Nonnull public Records getRecords(@Nullable Long maxId, @Nullable Long sinceId, @Nullable Integer maxResults, @Nullable Integer offset, @Nullable AuditingFilter filter, boolean includeSysAdminActions)
getRecords
in interface AuditingStore
public long countRecords(@Nullable Long maxId, @Nullable Long sinceId, boolean includeSysAdminActions)
countRecords
in interface AuditingStore
public long removeRecordsOlderThan(long timestamp)
removeRecordsOlderThan
in interface AuditingStore
public long countRecordsOlderThan(long timestamp)
countRecordsOlderThan
in interface AuditingStore
protected com.atlassian.audit.api.AuditSearchService getAuditSearchService()
Copyright © 2002-2021 Atlassian. All Rights Reserved.