Package org.alfresco.rest.api.impl
Class DownloadsImpl
java.lang.Object
org.alfresco.rest.api.impl.DownloadsImpl
- All Implemented Interfaces:
Downloads
- Author:
- cpopa
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidStop the zip creation if still in progressprotected booleanprotected voidcheckArchiveStatus(NodeRef[] nodeRefs, int checkLimit) Checks the supplied nodes for any content that is archived.protected voidcheckDuplicateNodeId(Download download) protected voidcheckEmptyNodeIds(Download download) protected voidcheckIsDownloadNodeType(NodeRef downloadNodeRef) protected voidcheckNodeIdsReadPermission(NodeRef[] zipContentNodeRefs) createDownloadNode(Download download) Creates a download:download node.getDownloadStatus(String downloadNodeId) Get status info about a download node.voidsetArchiveCheckLimit(int checkLimit) voidsetContentService(ContentService contentService) voidsetDownloadService(DownloadService downloadService) voidsetModuleService(ModuleService moduleService) voidvoidsetNodeService(NodeService nodeService) voidsetPermissionService(PermissionService permissionService) protected NodeRef[]validateAndGetNodeRefs(Download download)
-
Field Details
-
DEFAULT_ARCHIVE_NAME
- See Also:
-
DEFAULT_ARCHIVE_EXTENSION
- See Also:
-
CLOUD_CONNECTOR_MODULES
-
-
Constructor Details
-
DownloadsImpl
public DownloadsImpl()
-
-
Method Details
-
setDownloadService
-
setModuleService
-
setNodeService
-
setContentService
-
setNodes
-
setPermissionService
-
setArchiveCheckLimit
public void setArchiveCheckLimit(int checkLimit) -
createDownloadNode
Description copied from interface:DownloadsCreates a download:download node.- Specified by:
createDownloadNodein interfaceDownloads- Returns:
- information about the newly created download:download node
-
getDownloadStatus
Description copied from interface:DownloadsGet status info about a download node.- Specified by:
getDownloadStatusin interfaceDownloads- Returns:
- status info about a download:download node
-
cancel
Description copied from interface:DownloadsStop the zip creation if still in progress -
validateAndGetNodeRefs
-
checkNodeIdsReadPermission
-
checkDuplicateNodeId
-
checkEmptyNodeIds
-
checkIsDownloadNodeType
-
checkArchiveStatus
Checks the supplied nodes for any content that is archived. Any folders will be expanded and their children checked. A limit can be applied to prevent large sized requests preventing the asynchronous call to start.- Parameters:
nodeRefs-checkLimit- The maximum number of nodes to check, set to -1 for no limit- See Also:
-
checkArchiveStatus(NodeRef[], int, Set)
-
canCheckArchived
protected boolean canCheckArchived()
-