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 AlfrescoNode
optionally carrying content metadata. -
Method Summary
Modifier and TypeMethodDescriptionorg.alfresco.core.model.Node
getNode()
Deserializes the JSON stored innodeJson
back into anNode
instance.
-
Constructor Details
-
NodeWrapper
public NodeWrapper(org.alfresco.core.model.Node node) throws IllegalArgumentException, com.fasterxml.jackson.core.JsonProcessingException Creates a wrapper for the provided AlfrescoNode
optionally carrying content metadata.- Parameters:
node
- the node to persist- Throws:
IllegalArgumentException
- ifnode
isnull
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 innodeJson
back into anNode
instance.- Returns:
- the deserialized Alfresco node
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
- if the JSON cannot be parsed
-