Class CADFMapper

  • All Implemented Interfaces:
    Mapper

    public class CADFMapper
    extends java.lang.Object
    implements Mapper
    AuditLogEntry to CADF Mapper
    • Constructor Detail

      • CADFMapper

        public CADFMapper()
    • Method Detail

      • init

        public Mapper init​(PropertyGroup auditLogProperties)
                    throws java.lang.Exception
        Description copied from interface: Mapper
        initializes and loads the default values from the tenant configuration.
        Specified by:
        init in interface Mapper
        Returns:
        Throws:
        java.lang.Exception
      • map

        public Mapper map​(AuditLogEntry entry)
                   throws java.lang.Exception
        Description copied from interface: Mapper
        map the audit log entry to the intended format.
        Specified by:
        map in interface Mapper
        Returns:
        Throws:
        java.lang.Exception
      • serialize

        public java.lang.String serialize()
                                   throws java.lang.Exception
        Description copied from interface: Mapper
        serializes to the specific format in a string format.
        Specified by:
        serialize in interface Mapper
        Returns:
        Throws:
        java.lang.Exception
      • createCadfEvent

        public CadfEvent createCadfEvent​(AuditLogEntry logEntry)
                                  throws java.lang.IllegalStateException,
                                         java.io.IOException
        Throws:
        java.lang.IllegalStateException
        java.io.IOException