com.atlassian.jira.auditing
Class DefaultAuditingService
java.lang.Object
com.atlassian.jira.auditing.DefaultAuditingService
- All Implemented Interfaces:
- AuditingService
public class DefaultAuditingService
- extends Object
- implements AuditingService
Default implementation of service for managing auditing records
- Since:
- v6.3
Method Summary |
ServiceOutcome<Records> |
getRecords(ApplicationUser user,
Integer offset,
Integer maxResults,
AuditingFilter filter)
|
Long |
getTotalNumberOfRecords()
Returns total number of audit records |
ErrorCollection |
storeRecord(ApplicationUser user,
String category,
String summary,
AssociatedItem objectItem,
Iterable<ChangedValue> changedValues,
Iterable<AssociatedItem> associatedItems)
Store record in Auditing |
protected void |
validateAssociatedItem(String fieldId,
AssociatedItem objectItem,
ErrorCollection errorCollection,
I18nHelper i18nBean)
|
protected void |
validateAssociatedItems(String fieldId,
Iterable<AssociatedItem> associatedItems,
ErrorCollection errorCollection,
I18nHelper i18nBean)
|
protected void |
validateCategoryAndSummary(String category,
String summary,
ErrorCollection errorCollection,
I18nHelper i18nBean)
|
protected void |
validateChangedValue(String fieldId,
ChangedValue value,
ErrorCollection errorCollection,
I18nHelper i18nBean)
|
protected void |
validateChangedValues(String fieldId,
Iterable<ChangedValue> values,
ErrorCollection errorCollection,
I18nHelper i18nBean)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_LEN
public static final Integer MAX_LEN
DefaultAuditingService
public DefaultAuditingService(PermissionManager permissionManager,
I18nHelper.BeanFactory i18nFactory,
AuditingManager auditingManager,
FeatureManager featureManager)
getRecords
@Nonnull
public ServiceOutcome<Records> getRecords(@Nullable
ApplicationUser user,
@Nullable
Integer offset,
@Nullable
Integer maxResults,
@Nullable
AuditingFilter filter)
- Specified by:
getRecords
in interface AuditingService
- Parameters:
user
- authenticated user that has permission to get recordsoffset
- the offset from which search startsmaxResults
- maximum number of returned resultsfilter
- defines how records should be filtered out before being returned, if null records will not be filtered
- Returns:
- Records instance wrapped in ServiceOutcome
storeRecord
@Nonnull
public ErrorCollection storeRecord(@Nullable
ApplicationUser user,
@Nullable
String category,
@Nullable
String summary,
@Nullable
AssociatedItem objectItem,
@Nullable
Iterable<ChangedValue> changedValues,
@Nullable
Iterable<AssociatedItem> associatedItems)
- Description copied from interface:
AuditingService
- Store record in Auditing
- Specified by:
storeRecord
in interface AuditingService
associatedItems
- @return
getTotalNumberOfRecords
@Nonnull
public Long getTotalNumberOfRecords()
- Description copied from interface:
AuditingService
- Returns total number of audit records
- Specified by:
getTotalNumberOfRecords
in interface AuditingService
- Returns:
- total number of records
validateCategoryAndSummary
protected void validateCategoryAndSummary(String category,
String summary,
ErrorCollection errorCollection,
I18nHelper i18nBean)
validateChangedValues
protected void validateChangedValues(@Nonnull
String fieldId,
@Nonnull
Iterable<ChangedValue> values,
@Nonnull
ErrorCollection errorCollection,
@Nonnull
I18nHelper i18nBean)
validateChangedValue
protected void validateChangedValue(@Nonnull
String fieldId,
@Nonnull
ChangedValue value,
@Nonnull
ErrorCollection errorCollection,
@Nonnull
I18nHelper i18nBean)
validateAssociatedItems
protected void validateAssociatedItems(@Nonnull
String fieldId,
@Nonnull
Iterable<AssociatedItem> associatedItems,
@Nonnull
ErrorCollection errorCollection,
@Nonnull
I18nHelper i18nBean)
validateAssociatedItem
protected void validateAssociatedItem(@Nonnull
String fieldId,
@Nonnull
AssociatedItem objectItem,
@Nonnull
ErrorCollection errorCollection,
@Nonnull
I18nHelper i18nBean)
Copyright © 2002-2014 Atlassian. All Rights Reserved.