All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mateu.jpa.domain.ui.cruds.JpaRpcCrudViewDeserializer Maven / Gradle / Ivy

package io.mateu.jpa.domain.ui.cruds;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;

public class JpaRpcCrudViewDeserializer extends JsonDeserializer {
  @Override
  public JpaRpcCrudView deserialize(
      JsonParser jsonParser, DeserializationContext deserializationContext) {
    var crud = new JpaRpcCrudView();
    /*
    JsonNode node = jsonParser.getCodec().readTree(jsonParser);
    node = node.get("action");
    String message = node.get("name").asText();
    String timestamp = node.get("timestamp").asText();
    ArchiveStatus status = new ArchiveStatus(false);

    var action = new MDDOpenCRUDAction()
    crud.init(action);

     */
    return crud;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy