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 TypeMethodDescriptionvoid
Stop the zip creation if still in progressprotected boolean
protected void
checkArchiveStatus
(NodeRef[] nodeRefs, int checkLimit) Checks the supplied nodes for any content that is archived.protected void
checkDuplicateNodeId
(Download download) protected void
checkEmptyNodeIds
(Download download) protected void
checkIsDownloadNodeType
(NodeRef downloadNodeRef) protected void
checkNodeIdsReadPermission
(NodeRef[] zipContentNodeRefs) createDownloadNode
(Download download) Creates a download:download node.getDownloadStatus
(String downloadNodeId) Get status info about a download node.void
setArchiveCheckLimit
(int checkLimit) void
setContentService
(ContentService contentService) void
setDownloadService
(DownloadService downloadService) void
setModuleService
(ModuleService moduleService) void
void
setNodeService
(NodeService nodeService) void
setPermissionService
(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:Downloads
Creates a download:download node.- Specified by:
createDownloadNode
in interfaceDownloads
- Returns:
- information about the newly created download:download node
-
getDownloadStatus
Description copied from interface:Downloads
Get status info about a download node.- Specified by:
getDownloadStatus
in interfaceDownloads
- Returns:
- status info about a download:download node
-
cancel
Description copied from interface:Downloads
Stop 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()
-