Package org.alfresco.rest.api.impl
Class DownloadsImpl
- java.lang.Object
-
- org.alfresco.rest.api.impl.DownloadsImpl
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_ARCHIVE_EXTENSION
static java.lang.String
DEFAULT_ARCHIVE_NAME
-
Constructor Summary
Constructors Constructor Description DownloadsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel(java.lang.String downloadNodeId)
Stop the zip creation if still in progressprotected void
checkDuplicateNodeId(Download download)
protected void
checkEmptyNodeIds(Download download)
protected void
checkIsDownloadNodeType(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef)
protected void
checkNodeIdsReadPermission(org.alfresco.service.cmr.repository.NodeRef[] zipContentNodeRefs)
Download
createDownloadNode(Download download)
Creates a download:download node.Download
getDownloadStatus(java.lang.String downloadNodeId)
Get status info about a download node.void
setDownloadService(org.alfresco.service.cmr.download.DownloadService downloadService)
void
setNodes(Nodes nodes)
void
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
void
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
protected org.alfresco.service.cmr.repository.NodeRef[]
validateAndGetNodeRefs(Download download)
-
-
-
Field Detail
-
DEFAULT_ARCHIVE_NAME
public static final java.lang.String DEFAULT_ARCHIVE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_ARCHIVE_EXTENSION
public static final java.lang.String DEFAULT_ARCHIVE_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDownloadService
public void setDownloadService(org.alfresco.service.cmr.download.DownloadService downloadService)
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setNodes
public void setNodes(Nodes nodes)
-
setPermissionService
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
-
createDownloadNode
public Download createDownloadNode(Download download)
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
public Download getDownloadStatus(java.lang.String downloadNodeId)
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
public void cancel(java.lang.String downloadNodeId)
Description copied from interface:Downloads
Stop the zip creation if still in progress
-
validateAndGetNodeRefs
protected org.alfresco.service.cmr.repository.NodeRef[] validateAndGetNodeRefs(Download download)
-
checkNodeIdsReadPermission
protected void checkNodeIdsReadPermission(org.alfresco.service.cmr.repository.NodeRef[] zipContentNodeRefs)
-
checkDuplicateNodeId
protected void checkDuplicateNodeId(Download download)
-
checkEmptyNodeIds
protected void checkEmptyNodeIds(Download download)
-
checkIsDownloadNodeType
protected void checkIsDownloadNodeType(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef)
-
-