Package org.saidone.model
Class NodeWrapper
java.lang.Object
org.saidone.model.NodeWrapper
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
ConstructorsConstructorDescriptionNodeWrapper(org.alfresco.core.model.Node node) Creates a wrapper for the provided AlfrescoNodeoptionally carrying content metadata. -
Method Summary
Modifier and TypeMethodDescriptionorg.alfresco.core.model.NodegetNode()Deserializes the JSON stored innodeJsonback into anNodeinstance.
-
Constructor Details
-
NodeWrapper
public NodeWrapper(org.alfresco.core.model.Node node) throws IllegalArgumentException, com.fasterxml.jackson.core.JsonProcessingException Creates a wrapper for the provided AlfrescoNodeoptionally carrying content metadata.- Parameters:
node- the node to persist- Throws:
IllegalArgumentException- ifnodeisnullcom.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 innodeJsonback into anNodeinstance.- Returns:
- the deserialized Alfresco node
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON cannot be parsed
-