public static class AuditEvent.Builder extends Object
AuditEvent
Constructor and Description |
---|
Builder(AuditEvent event) |
Builder(AuditType type) |
Builder(String action,
String category,
CoverageLevel level)
Deprecated.
since 1.7.0, use a variant with i18n keys
|
Builder(String action,
String category,
CoverageLevel level,
CoverageArea area)
Deprecated.
since 1.7.0, use a variant with i18n keys
|
@Deprecated public Builder(@Nonnull String action, @Nonnull String category, @Nonnull CoverageLevel level)
@Deprecated public Builder(@Nonnull String action, @Nonnull String category, @Nonnull CoverageLevel level, @Nullable CoverageArea area)
public Builder(@Nonnull AuditEvent event)
@Deprecated public AuditEvent.Builder action(@Nonnull String action)
actionI18nKey(String)
and provide the action i18n key.public AuditEvent.Builder actionI18nKey(@Nonnull String actionI18nKey)
public AuditEvent.Builder categoryI18nKey(@Nonnull String categoryI18nKey)
@Deprecated public AuditEvent.Builder category(@Nonnull String category)
categoryI18nKey(String)
and provide the category i18n key.public AuditEvent.Builder level(@Nonnull CoverageLevel level)
public AuditEvent.Builder area(@Nonnull CoverageArea area)
public AuditEvent.Builder affectedObjects(@Nonnull List<AuditResource> affectedObjects)
public AuditEvent.Builder appendAffectedObjects(@Nonnull List<AuditResource> affectedObjects)
public AuditEvent.Builder affectedObject(@Nonnull AuditResource affectedObject)
public AuditEvent.Builder changedValues(@Nonnull List<ChangedValue> changedValues)
public AuditEvent.Builder appendChangedValues(@Nonnull Collection<ChangedValue> changedValues)
public AuditEvent.Builder changedValue(@Nonnull ChangedValue changedValue)
public AuditEvent.Builder addChangedValueIfDifferent(@Nonnull ChangedValue changedValue)
ChangedValue
only if the value changed.changedValue
- New ChangedValue
to be added.AuditEvent.Builder
instancepublic AuditEvent.Builder extraAttributes(@Nonnull Collection<AuditAttribute> extraAttributes)
public AuditEvent.Builder appendExtraAttributes(@Nonnull Collection<AuditAttribute> extraAttributes)
public AuditEvent.Builder extraAttribute(@Nonnull AuditAttribute extraAttribute)
public AuditEvent build()
Copyright © 2020 Atlassian. All rights reserved.