Class AuditEventConverter


  • @Component
    public class AuditEventConverter
    extends Object
    • Constructor Detail

      • AuditEventConverter

        public AuditEventConverter()
    • Method Detail

      • convertToAuditEvent

        public List<org.springframework.boot.actuate.audit.AuditEvent> convertToAuditEvent​(Iterable<PersistentAuditEvent> persistentAuditEvents)
        Convert a list of PersistentAuditEvent to a list of AuditEvent
        Parameters:
        persistentAuditEvents - the list to convert
        Returns:
        the converted list.
      • convertToAuditEvent

        public org.springframework.boot.actuate.audit.AuditEvent convertToAuditEvent​(PersistentAuditEvent persistentAuditEvent)
        Convert a PersistentAuditEvent to an AuditEvent
        Parameters:
        persistentAuditEvent - the event to convert
        Returns:
        the converted list.
      • convertDataToObjects

        public Map<String,​Object> convertDataToObjects​(Map<String,​String> data)
        Internal conversion. This is needed to support the current SpringBoot actuator AuditEventRepository interface
        Parameters:
        data - the data to convert
        Returns:
        a map of String, Object
      • convertDataToStrings

        public Map<String,​String> convertDataToStrings​(Map<String,​Object> data)
        Internal conversion. This method will allow to save additional data. By default, it will save the object as string
        Parameters:
        data - the data to convert
        Returns:
        a map of String, String