Class AuditLogMapper

All Implemented Interfaces:
Mapper

public class AuditLogMapper extends XmlMapper implements Mapper
  • Constructor Details

    • AuditLogMapper

      public AuditLogMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, AuditDao auditDao, Clock clock, int batchSize)
  • Method Details

    • exportXml

      public org.dom4j.Element exportXml(Map<String,Object> options) throws ExportException
      Description copied from interface: Mapper
      Exports to V2 XML.
      Specified by:
      exportXml in interface Mapper
      Parameters:
      options - map of arbitrarty options.
      Returns:
      XML element, or null if you are not mapping
      Throws:
      ExportException - error producing XML.
    • addAuditLogToXml

      protected void addAuditLogToXml(AssembledAuditLogChangeset changeset, org.dom4j.Element directoryRoot)
    • importXml

      public void importXml(org.dom4j.Element root) throws ImportException
      Description copied from interface: Mapper
      Imports V2 XML.
      Specified by:
      importXml in interface Mapper
      Parameters:
      root - root XML element.
      Throws:
      ImportException - error importing data.
    • getChangesetFromXml

      protected AuditLogChangesetEntity getChangesetFromXml(org.dom4j.Element changesetElement)