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 StringDEFAULT_ARCHIVE_EXTENSIONstatic StringDEFAULT_ARCHIVE_NAME
-
Constructor Summary
Constructors Constructor Description DownloadsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel(String downloadNodeId)Stop the zip creation if still in progressprotected voidcheckDuplicateNodeId(Download download)protected voidcheckEmptyNodeIds(Download download)protected voidcheckIsDownloadNodeType(NodeRef downloadNodeRef)protected voidcheckNodeIdsReadPermission(NodeRef[] zipContentNodeRefs)DownloadcreateDownloadNode(Download download)Creates a download:download node.DownloadgetDownloadStatus(String downloadNodeId)Get status info about a download node.voidsetDownloadService(DownloadService downloadService)voidsetNodes(Nodes nodes)voidsetNodeService(NodeService nodeService)voidsetPermissionService(PermissionService permissionService)protected NodeRef[]validateAndGetNodeRefs(Download download)
-
-
-
Field Detail
-
DEFAULT_ARCHIVE_NAME
public static final String DEFAULT_ARCHIVE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_ARCHIVE_EXTENSION
public static final String DEFAULT_ARCHIVE_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDownloadService
public void setDownloadService(DownloadService downloadService)
-
setNodeService
public void setNodeService(NodeService nodeService)
-
setNodes
public void setNodes(Nodes nodes)
-
setPermissionService
public void setPermissionService(PermissionService permissionService)
-
createDownloadNode
public Download createDownloadNode(Download download)
Description copied from interface:DownloadsCreates a download:download node.- Specified by:
createDownloadNodein interfaceDownloads- Returns:
- information about the newly created download:download node
-
getDownloadStatus
public Download getDownloadStatus(String downloadNodeId)
Description copied from interface:DownloadsGet status info about a download node.- Specified by:
getDownloadStatusin interfaceDownloads- Returns:
- status info about a download:download node
-
cancel
public void cancel(String downloadNodeId)
Description copied from interface:DownloadsStop the zip creation if still in progress
-
checkNodeIdsReadPermission
protected void checkNodeIdsReadPermission(NodeRef[] zipContentNodeRefs)
-
checkDuplicateNodeId
protected void checkDuplicateNodeId(Download download)
-
checkEmptyNodeIds
protected void checkEmptyNodeIds(Download download)
-
checkIsDownloadNodeType
protected void checkIsDownloadNodeType(NodeRef downloadNodeRef)
-
-