Class AuditFormatConverter
- java.lang.Object
-
- com.atlassian.confluence.internal.audit.AuditFormatConverter
-
public class AuditFormatConverter extends Object
Confluence has two sets of APIs for audit logs: - For legacy audit log functionality added in 5.10 - For new cross product auditingThis class is created to convert entities between those APIs.
- Since:
- 7.5.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
UNKNOWN_AUDIT_METHOD
static String
USER_TYPE
-
Constructor Summary
Constructors Constructor Description AuditFormatConverter(AuditRecordEntityFactory entityFactory, ConfluenceUserResolver confluenceUserResolver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
USER_TYPE
public static final String USER_TYPE
- See Also:
- Constant Field Values
-
UNKNOWN_AUDIT_METHOD
public static final String UNKNOWN_AUDIT_METHOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AuditFormatConverter
public AuditFormatConverter(AuditRecordEntityFactory entityFactory, ConfluenceUserResolver confluenceUserResolver)
-
-
Method Detail
-
toAuditEvent
public com.atlassian.audit.entity.AuditEvent toAuditEvent(AuditRecord record, com.atlassian.audit.entity.CoverageArea area, com.atlassian.audit.entity.CoverageLevel level)
-
toAuditEvent
public com.atlassian.audit.entity.AuditEvent toAuditEvent(AuditRecordEntity dbObject, com.atlassian.audit.entity.CoverageArea area, com.atlassian.audit.entity.CoverageLevel level)
-
toAuditEntity
public com.atlassian.audit.entity.AuditEntity toAuditEntity(AuditRecordEntity dbObject, com.atlassian.audit.entity.CoverageArea defaultArea, com.atlassian.audit.entity.CoverageLevel defaultLevel)
-
toDatabaseObject
public AuditRecordEntity toDatabaseObject(com.atlassian.audit.entity.AuditEntity entity)
-
toAuditRecord
public AuditRecord toAuditRecord(com.atlassian.audit.entity.AuditEntity entity)
-
toNewChangedValue
public static com.atlassian.audit.entity.ChangedValue toNewChangedValue(ChangedValueEntity dbObject)
-
-