public class DownloadServiceImpl extends Object implements DownloadService
CreateDownloadArchiveAction
.Constructor and Description |
---|
DownloadServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cancelDownload(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef)
Cancel a download request
|
org.alfresco.service.cmr.repository.NodeRef |
createDownload(org.alfresco.service.cmr.repository.NodeRef[] requestedNodes,
boolean recursive)
Start the creation of a downlaodable archive file containing the content
from the given nodeRefs.
|
void |
deleteDownloads(Date before)
Delete downloads created before before.
|
DownloadStatus |
getDownloadStatus(org.alfresco.service.cmr.repository.NodeRef downloadNode)
Get the status of the of the download identified by downloadNode.
|
void |
setActionServiceHelper(ActionServiceHelper actionServiceHelper) |
void |
setDownloadStorage(DownloadStorage downloadStorage) |
void |
setTransactionHelper(RetryingTransactionHelper transactionHelper) |
public void setActionServiceHelper(ActionServiceHelper actionServiceHelper)
public void setTransactionHelper(RetryingTransactionHelper transactionHelper)
public void setDownloadStorage(DownloadStorage downloadStorage)
public org.alfresco.service.cmr.repository.NodeRef createDownload(org.alfresco.service.cmr.repository.NodeRef[] requestedNodes, boolean recursive)
DownloadService
createDownload
in interface DownloadService
requestedNodes
- NodeRefs of content to be added to the archive filerecursive
- Recurse into container nodespublic DownloadStatus getDownloadStatus(org.alfresco.service.cmr.repository.NodeRef downloadNode)
DownloadService
getDownloadStatus
in interface DownloadService
public void deleteDownloads(Date before)
DownloadService
deleteDownloads
in interface DownloadService
before
- Datepublic void cancelDownload(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef)
DownloadService
cancelDownload
in interface DownloadService
downloadNodeRef
- NodeRef of the download to cancelCopyright © 2005–2017 Alfresco Software. All rights reserved.