Class NodeWrapperDto

java.lang.Object
org.saidone.model.dto.NodeWrapperDto

public class NodeWrapperDto extends Object
Data transfer object carrying an Alfresco Node serialized as JSON together with vault metadata.

Persistence concerns are mapped separately by org.saidone.model.entity.NodeEntity.

  • Constructor Summary

    Constructors
    Constructor
    Description
    NodeWrapperDto(org.alfresco.core.model.Node node)
    Creates a wrapper for the provided Alfresco Node optionally carrying content metadata.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.alfresco.core.model.Node
    Deserializes the JSON stored in nodeJson back into an Node instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NodeWrapperDto

      public NodeWrapperDto(org.alfresco.core.model.Node node) throws IllegalArgumentException, com.fasterxml.jackson.core.JsonProcessingException
      Creates a wrapper for the provided Alfresco Node optionally carrying content metadata.
      Parameters:
      node - the node to persist
      Throws:
      IllegalArgumentException - if node is null
      com.fasterxml.jackson.core.JsonProcessingException - if the node cannot be serialized to JSON
  • Method Details

    • getNode

      public org.alfresco.core.model.Node getNode()
      Deserializes the JSON stored in nodeJson back into an Node instance.
      Returns:
      the deserialized Alfresco node
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - if the JSON cannot be parsed