public static class ImmutableAuditLogChangeset.Builder extends Object
ImmutableAuditLogChangeset
.
Since 3.2.0 this class introduces special semantics for primary entities. The methods
operate on an implicit primary entity. When building a concrete instance of ImmutableAuditLogChangeset
the entity will be prepended to the collection of entities and marked as primary.Constructor and Description |
---|
Builder() |
Builder(AuditLogChangeset changeset) |
public Builder()
public Builder(AuditLogChangeset changeset)
public ImmutableAuditLogChangeset.Builder setId(Long id)
public ImmutableAuditLogChangeset.Builder setTimestamp(Instant timestamp)
public ImmutableAuditLogChangeset.Builder setTimestamp(@Nonnull Date timestamp)
public ImmutableAuditLogChangeset.Builder setTimestamp(@Nonnull Long timestamp)
@Deprecated public ImmutableAuditLogChangeset.Builder setAuthorType(AuditLogAuthorType authorType)
@Deprecated public ImmutableAuditLogChangeset.Builder setAuthorId(Long authorId)
@Deprecated public ImmutableAuditLogChangeset.Builder setAuthorName(String authorName)
public ImmutableAuditLogChangeset.Builder setAuthor(AuditLogAuthor author)
public ImmutableAuditLogChangeset.Builder setEventType(AuditLogEventType eventType)
@Deprecated public ImmutableAuditLogChangeset.Builder setEntityType(AuditLogEntityType entityType)
addEntity(ImmutableAuditLogEntity)
insteadentityType
- the type of the implicit primary entity@Deprecated public ImmutableAuditLogChangeset.Builder setEntityId(Long entityId)
addEntity(ImmutableAuditLogEntity)
insteadentityId
- the id of the implicit primary entity@Deprecated public ImmutableAuditLogChangeset.Builder setEntityName(String entityName)
addEntity(ImmutableAuditLogEntity)
insteadentityName
- the name of the implicit primary entitypublic ImmutableAuditLogChangeset.Builder setIpAddress(String ipAddress)
public ImmutableAuditLogChangeset.Builder setEventMessage(String eventMessage)
public ImmutableAuditLogChangeset.Builder setSource(AuditLogEventSource source)
@Deprecated public ImmutableAuditLogChangeset.Builder setEntries(List<ImmutableAuditLogEntry> entries)
setEntries(Collection)
instead. Since v3.2.0.public ImmutableAuditLogChangeset.Builder setEntries(Collection<? extends AuditLogEntry> entries)
public ImmutableAuditLogChangeset.Builder setEntities(Collection<? extends AuditLogEntity> entities)
public ImmutableAuditLogChangeset.Builder addEntry(AuditLogEntry entry)
public ImmutableAuditLogChangeset.Builder addEntry(ImmutableAuditLogEntry entry)
public ImmutableAuditLogChangeset.Builder addEntries(Collection<AuditLogEntry> entry)
public ImmutableAuditLogChangeset.Builder addEntity(AuditLogEntity entity)
public ImmutableAuditLogChangeset.Builder addEntity(ImmutableAuditLogEntity entity)
public ImmutableAuditLogChangeset build()
ImmutableAuditLogChangeset
from the values set in this builder. If entityId,
entityName or entityType are set, an instance of ImmutableAuditLogEntity
will be prepended
to entities with the data from these fields and the primary value set to true.Copyright © 2020 Atlassian. All rights reserved.