public class AuditEntitiesUtils extends Object
Modifier and Type | Method and Description |
---|---|
static com.atlassian.audit.entity.AuditAttribute |
newAuditAttribute(String nameI18nKey,
String value)
Creates a new instance of
AuditAttribute using the passed parameters. |
static com.atlassian.audit.entity.AuditType |
newAuditType(com.atlassian.audit.entity.CoverageArea area,
AuditingCategory category,
String actionI18nKey,
com.atlassian.audit.entity.CoverageLevel level)
Creates a new
AuditType instance using the passed parameters. |
static com.atlassian.audit.entity.AuditType |
newAuditTypeWithTranslations(com.atlassian.audit.entity.CoverageArea area,
String categoryI18nKey,
String actionI18nKey,
com.atlassian.audit.entity.CoverageLevel level,
String categoryTranslation,
String actionTranslation)
Creates a new
AuditType instance using the passed parameters. |
static com.atlassian.audit.entity.ChangedValue |
newChangedValue(String i18nKey,
String to)
Creates a new instance of
ChangedValue using the passed parameters. |
static com.atlassian.audit.entity.ChangedValue |
newChangedValue(String i18nKey,
String from,
String to)
Creates a new instance of
ChangedValue using the passed parameters. |
static com.atlassian.audit.entity.ChangedValue |
newChangedValueWithTranslation(String i18nKey,
String from,
String to,
String keyTranslation)
Creates a new instance of
ChangedValue using the passed parameters. |
public static com.atlassian.audit.entity.AuditType newAuditTypeWithTranslations(@Nonnull com.atlassian.audit.entity.CoverageArea area, @Nonnull String categoryI18nKey, @Nonnull String actionI18nKey, @Nonnull com.atlassian.audit.entity.CoverageLevel level, @Nullable String categoryTranslation, @Nullable String actionTranslation)
AuditType
instance using the passed parameters.
AuditEntityConverter
to perform migration of the old audit logs to the new system in case the category or action I18n Keys are empty.
Avoid in favor of newAuditType(CoverageArea, AuditingCategory, String, CoverageLevel)
.area
- coverage areacategoryI18nKey
- auditing category i18n keyactionI18nKey
- action i18n keylevel
- coverage levelcategoryTranslation
- the translation for the category keyactionTranslation
- the translation for the action keyAuditType
public static com.atlassian.audit.entity.AuditType newAuditType(@Nonnull com.atlassian.audit.entity.CoverageArea area, @Nonnull AuditingCategory category, @Nonnull String actionI18nKey, @Nonnull com.atlassian.audit.entity.CoverageLevel level)
AuditType
instance using the passed parameters.area
- coverage areacategory
- auditing categoryactionI18nKey
- action i18n keylevel
- coverage levelAuditType
public static com.atlassian.audit.entity.AuditAttribute newAuditAttribute(@Nonnull String nameI18nKey, @Nullable String value)
AuditAttribute
using the passed parameters.nameI18nKey
- attribute i18n key namevalue
- attribute valueAuditAttribute
public static com.atlassian.audit.entity.ChangedValue newChangedValue(@Nonnull String i18nKey, @Nullable String to)
ChangedValue
using the passed parameters.i18nKey
- changed value i18n keyto
- changed value toChangedValue
public static com.atlassian.audit.entity.ChangedValue newChangedValue(@Nonnull String i18nKey, @Nullable String from, @Nullable String to)
ChangedValue
using the passed parameters.i18nKey
- changed value i18n keyfrom
- changed value fromto
- changed value toChangedValue
public static com.atlassian.audit.entity.ChangedValue newChangedValueWithTranslation(@Nonnull String i18nKey, @Nullable String from, @Nullable String to, @Nullable String keyTranslation)
ChangedValue
using the passed parameters.i18nKey
- changed value i18n keyfrom
- changed value fromto
- changed value tokeyTranslation
- translation for the keyChangedValue
Copyright © 2002-2020 Atlassian. All Rights Reserved.