Package io.jmix.pivottable.serialization
Class PivotTableDataItemsSerializer
java.lang.Object
io.jmix.pivottable.serialization.PivotTableDataItemsSerializer
@Component("ui_PivotTableDataItemsSerializer")
@Scope("prototype")
public class PivotTableDataItemsSerializer
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected CurrentAuthentication
protected DatatypeRegistry
protected Messages
protected MessageTools
protected Metadata
protected MetadataTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addProperty
(com.google.gson.JsonObject jsonObject, String property, Object value, PivotJsonSerializationContext context, DataItem item) protected String
getFormattedValueByClassDatatype
(Object value, Locale locale) getFormattedValueByEntityDatatype
(DataItem item, String property, Object value) protected Locale
protected MetaPropertyPath
resolveMetaPropertyPath
(MetaClass metaClass, String property) com.google.gson.JsonArray
com.google.gson.JsonArray
serialize
(List<DataItem> items, com.google.gson.JsonSerializationContext context, Consumer<PivotTableSerializationContext> postSerializationHandler) void
setCurrentAuthentication
(CurrentAuthentication currentAuthentication) void
setDatatypeRegistry
(DatatypeRegistry datatypeRegistry) void
setMessages
(Messages messages) void
setMessageTools
(MessageTools messageTools) void
setMetadata
(Metadata metadata) void
setMetadataTools
(MetadataTools metadataTools)
-
Field Details
-
messages
-
messageTools
-
metadata
-
currentAuthentication
-
metadataTools
-
datatypeRegistry
-
-
Constructor Details
-
PivotTableDataItemsSerializer
public PivotTableDataItemsSerializer()
-
-
Method Details
-
setMessages
-
setMessageTools
-
setMetadata
-
setCurrentAuthentication
-
setDatatypeRegistry
-
setMetadataTools
-
serialize
-
serialize
public com.google.gson.JsonArray serialize(List<DataItem> items, com.google.gson.JsonSerializationContext context, Consumer<PivotTableSerializationContext> postSerializationHandler) -
addProperty
protected void addProperty(com.google.gson.JsonObject jsonObject, String property, Object value, PivotJsonSerializationContext context, DataItem item) -
getFormattedValueByEntityDatatype
-
resolveMetaPropertyPath
-
getFormattedValueByClassDatatype
-
getUserLocale
-