Package io.jmix.reports
Class ReportsSerialization
java.lang.Object
io.jmix.reports.ReportsSerialization
Class to serialize and deserialize reports
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertToReport
(String serializedReport) Deserializes a report from a specified stringconvertToString
(Report report) Serializes specified report to JSON string.
-
Field Details
-
gsonConverter
-
xStreamConverter
-
-
Constructor Details
-
ReportsSerialization
public ReportsSerialization()
-
-
Method Details
-
convertToString
Serializes specified report to JSON string.- Parameters:
report
- report- Returns:
- report that serialized to JSON
-
convertToReport
Deserializes a report from a specified string- Parameters:
serializedReport
- serialized report in XML or JSON string- Returns:
- report entity
-