public static class AuditEntity.Builder extends Object
AuditEntity
Constructor and Description |
---|
Builder(AuditEntity entity) |
Builder(AuditType type) |
public Builder(AuditType type)
public Builder(AuditEntity entity)
public AuditEntity.Builder id(Long id)
public AuditEntity.Builder timestamp(Instant timestamp)
public AuditEntity.Builder author(AuditAuthor author)
public AuditEntity.Builder type(AuditType type)
public AuditEntity.Builder source(String source)
public AuditEntity.Builder system(String system)
public AuditEntity.Builder node(String node)
public AuditEntity.Builder affectedObjects(@Nonnull List<AuditResource> affectedObjects)
public AuditEntity.Builder appendAffectedObjects(@Nonnull List<AuditResource> affectedObjects)
public AuditEntity.Builder affectedObject(AuditResource affectedObject)
public AuditEntity.Builder changedValues(@Nonnull List<ChangedValue> changedValues)
public AuditEntity.Builder appendChangedValues(@Nonnull Collection<ChangedValue> changedValues)
public AuditEntity.Builder changedValue(ChangedValue changedValue)
public AuditEntity.Builder addChangedValueIfDifferent(ChangedValue changedValue)
ChangedValue
only if the value changed.changedValue
- New ChangedValue
to be added.AuditEntity.Builder
instancepublic AuditEntity.Builder method(String method)
public AuditEntity.Builder extraAttributes(@Nonnull Collection<AuditAttribute> extraAttributes)
public AuditEntity.Builder appendExtraAttributes(@Nonnull Collection<AuditAttribute> extraAttributes)
public AuditEntity.Builder extraAttribute(AuditAttribute extraAttribute)
public AuditEntity build()
Copyright © 2020 Atlassian. All rights reserved.