Class DownloadNodeProcessor
- All Implemented Interfaces:
NodeProcessor
For each processed node a folder matching its path is created under the
configured output directory. The node's binary content is saved using its
original name while the metadata is stored in an adjacent
*.metadata.properties.xml file. If version history exists, each
version is exported with an incremental .vX suffix.
The output format is compatible with Alfresco bulk import.
-
Field Summary
Fields inherited from class org.saidone.processors.AbstractNodeProcessor
readOnly -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessNode(String nodeId, ProcessorConfig config) Downloads the content and metadata of the node identified bynodeId.Methods inherited from class org.saidone.processors.AbstractNodeProcessor
getNode, getNode, getNode, process
-
Constructor Details
-
DownloadNodeProcessor
public DownloadNodeProcessor()
-
-
Method Details
-
processNode
Downloads the content and metadata of the node identified bynodeId.The node is fetched from Alfresco with its properties and path information. A folder mirroring the node's repository path is then created under the configured output directory. The node's metadata and binary content are written into this folder. When version history is present, all versions except the current one are exported in chronological order and suffixed with
.vXto avoid overwriting the latest content.- Parameters:
nodeId- id of the node to downloadconfig- processor configuration containing theoutput-dirargument
-