Class NodeWrapper

java.lang.Object
org.saidone.model.NodeWrapper

public class NodeWrapper extends Object
MongoDB wrapper entity storing an Alfresco Node together with additional vault specific metadata. The JSON representation of the Node is persisted in the nodeJson field while metadata such as archival date or notarization id are stored in dedicated properties.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NodeWrapper(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

    • NodeWrapper

      public NodeWrapper(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