Package fr.becpg.repo.report.helpers
Class ExportSearchNodesHelper
java.lang.Object
fr.becpg.repo.report.helpers.ExportSearchNodesHelper
Stores the nodes of an asynchronous search export on their download node, as a JSON array in
its cm:content property.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.alfresco.service.cmr.repository.NodeRef[]readNodes(org.alfresco.service.cmr.repository.ContentService contentService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.repository.NodeRef downloadNodeRef) Read back the nodes to export, or an empty array if the download node doesn't carry any: the caller then falls back on the associations of the download request.static voidstoreNodes(org.alfresco.service.cmr.repository.ContentService contentService, org.alfresco.service.cmr.repository.NodeRef downloadNodeRef, List<org.alfresco.service.cmr.repository.NodeRef> nodeRefs) Store the nodes to export on the download node.
-
Field Details
-
logger
private static final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
ExportSearchNodesHelper
private ExportSearchNodesHelper()
-
-
Method Details
-
storeNodes
public static void storeNodes(org.alfresco.service.cmr.repository.ContentService contentService, org.alfresco.service.cmr.repository.NodeRef downloadNodeRef, List<org.alfresco.service.cmr.repository.NodeRef> nodeRefs) Store the nodes to export on the download node.
- Parameters:
contentService- aContentServiceobjectdownloadNodeRef- aNodeRefobjectnodeRefs- aListobject
-
readNodes
public static org.alfresco.service.cmr.repository.NodeRef[] readNodes(org.alfresco.service.cmr.repository.ContentService contentService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.repository.NodeRef downloadNodeRef) Read back the nodes to export, or an empty array if the download node doesn't carry any: the caller then falls back on the associations of the download request.
A node deleted between the search and the asynchronous export is left out: the exporter would fail on it and lose the whole archive, whereas it is simply out of scope.
- Parameters:
contentService- aContentServiceobjectnodeService- aNodeServiceobjectdownloadNodeRef- aNodeRefobject- Returns:
- an array of
NodeRefobjects
-