public class AuditFormatConverter extends Object
This class is created to convert entities between those APIs.
Modifier and Type | Field and Description |
---|---|
static String |
UNKNOWN_AUDIT_METHOD |
static String |
USER_TYPE |
Constructor and Description |
---|
AuditFormatConverter(AuditRecordEntityFactory entityFactory,
UserAccessor userAccessor) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.audit.entity.AuditEntity |
toAuditEntity(AuditRecordEntity dbObject,
com.atlassian.audit.entity.CoverageArea defaultArea,
com.atlassian.audit.entity.CoverageLevel defaultLevel) |
com.atlassian.audit.entity.AuditEvent |
toAuditEvent(AuditRecord record,
com.atlassian.audit.entity.CoverageArea area,
com.atlassian.audit.entity.CoverageLevel level) |
com.atlassian.audit.entity.AuditEvent |
toAuditEvent(AuditRecordEntity dbObject,
com.atlassian.audit.entity.CoverageArea area,
com.atlassian.audit.entity.CoverageLevel level) |
AuditRecord |
toAuditRecord(com.atlassian.audit.entity.AuditEntity entity) |
AuditRecordEntity |
toDatabaseObject(com.atlassian.audit.entity.AuditEntity entity) |
static com.atlassian.audit.entity.ChangedValue |
toNewChangedValue(ChangedValueEntity dbObject) |
public static final String USER_TYPE
public static final String UNKNOWN_AUDIT_METHOD
public AuditFormatConverter(AuditRecordEntityFactory entityFactory, UserAccessor userAccessor)
public com.atlassian.audit.entity.AuditEvent toAuditEvent(AuditRecord record, com.atlassian.audit.entity.CoverageArea area, com.atlassian.audit.entity.CoverageLevel level)
public com.atlassian.audit.entity.AuditEvent toAuditEvent(AuditRecordEntity dbObject, com.atlassian.audit.entity.CoverageArea area, com.atlassian.audit.entity.CoverageLevel level)
public com.atlassian.audit.entity.AuditEntity toAuditEntity(AuditRecordEntity dbObject, com.atlassian.audit.entity.CoverageArea defaultArea, com.atlassian.audit.entity.CoverageLevel defaultLevel)
public AuditRecordEntity toDatabaseObject(com.atlassian.audit.entity.AuditEntity entity)
public AuditRecord toAuditRecord(com.atlassian.audit.entity.AuditEntity entity)
public static com.atlassian.audit.entity.ChangedValue toNewChangedValue(ChangedValueEntity dbObject)
Copyright © 2003–2021 Atlassian. All rights reserved.