Class 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 auditing

    This class is created to convert entities between those APIs.

    Since:
    7.5.0
    • 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)