Class EntitySerializationImpl.EntitySerializer

java.lang.Object
io.jmix.core.impl.serialization.EntitySerializationImpl.EntitySerializer
All Implemented Interfaces:
com.google.gson.JsonSerializer<Entity>
Enclosing class:
EntitySerializationImpl

protected class EntitySerializationImpl.EntitySerializer extends Object implements com.google.gson.JsonSerializer<Entity>
  • Field Details

    • compactRepeatedEntities

      protected boolean compactRepeatedEntities
    • serializeInstanceName

      protected boolean serializeInstanceName
    • doNotSerializeReadOnlyProperties

      protected boolean doNotSerializeReadOnlyProperties
    • doNotSerializeDeniedProperties

      protected boolean doNotSerializeDeniedProperties
    • serializeSecretFields

      protected boolean serializeSecretFields
    • ignoreEntityName

      protected boolean ignoreEntityName
    • fetchPlan

      protected FetchPlan fetchPlan
  • Constructor Details

  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(Entity entity, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Entity>
    • serializeEntity

      protected com.google.gson.JsonObject serializeEntity(Entity entity, @Nullable FetchPlan fetchPlan, Set<Entity> cyclicReferences)
    • writeIdField

      protected void writeIdField(Entity entity, com.google.gson.JsonObject jsonObject)
    • propertyWritingAllowed

      protected boolean propertyWritingAllowed(MetaProperty metaProperty, Entity entity, ExportImportEntityContext exportImportContext)
    • writeFields

      protected void writeFields(Entity entity, com.google.gson.JsonObject jsonObject, @Nullable FetchPlan fetchPlan, Set<Entity> cyclicReferences)
    • writeSimpleProperty

      protected void writeSimpleProperty(com.google.gson.JsonObject jsonObject, @NotNull @NotNull Object fieldValue, MetaProperty property)
    • serializeCollection

      protected com.google.gson.JsonArray serializeCollection(Collection value, @Nullable FetchPlan fetchPlan, Set<Entity> cyclicReferences)
    • serializeSimpleCollection

      protected com.google.gson.JsonArray serializeSimpleCollection(Collection fieldValue, MetaProperty property)