Class AuditEventConverter
- java.lang.Object
-
- org.powertac.visualizer.config.audit.AuditEventConverter
-
@Component public class AuditEventConverter extends Object
-
-
Constructor Summary
Constructors Constructor Description AuditEventConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>convertDataToObjects(Map<String,String> data)Internal conversion.Map<String,String>convertDataToStrings(Map<String,Object> data)Internal conversion.List<org.springframework.boot.actuate.audit.AuditEvent>convertToAuditEvent(Iterable<PersistentAuditEvent> persistentAuditEvents)Convert a list of PersistentAuditEvent to a list of AuditEventorg.springframework.boot.actuate.audit.AuditEventconvertToAuditEvent(PersistentAuditEvent persistentAuditEvent)Convert a PersistentAuditEvent to an AuditEvent
-
-
-
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
-
-