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
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
-
Constructor Details
-
AuditEventConverter
public AuditEventConverter()
-
-
Method Details
-
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
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
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
-