public class DownloadStorage extends Object
NodeService. The higher-level business logic around these CRUD calls
is contained within the DownloadServiceImpl.| Constructor and Description |
|---|
DownloadStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeToDownload(NodeRef downloadNode,
NodeRef nodeToAdd) |
void |
cancelDownload(NodeRef downloadNodeRef) |
NodeRef |
createDownloadNode(boolean recursive) |
void |
delete(NodeRef nodeRef)
Delete the download node identified by nodeRef
|
DownloadRequest |
getDownloadRequest(NodeRef downloadNodeRef) |
List<List<DownloadEntity>> |
getDownloadsCreatedBefore(Date before)
Get all the downloads created before before.
|
DownloadStatus |
getDownloadStatus(NodeRef downloadNodeRef) |
NodeRef |
getOrCreateDowloadContainer()
This method finds the SyncSet Definition Container NodeRef, creating one if it does not exist.
|
int |
getSequenceNumber(NodeRef nodeRef) |
boolean |
isCancelled(NodeRef downloadNodeRef) |
void |
setImporterBootstrap(ImporterBootstrap bootstrap) |
void |
setNamespaceService(NamespaceService namespaceService) |
void |
setNodeService(NodeService nodeService) |
void |
setNoPermissionCheckNodeService(NodeService noPermissionCheckNodeService) |
void |
setQueryRegistry(NamedObjectRegistry<CannedQueryFactory<? extends Object>> queryRegistry) |
void |
setRepositoryHelper(Repository repositoryHelper) |
void |
updateStatus(NodeRef nodeRef,
DownloadStatus status) |
public void setImporterBootstrap(ImporterBootstrap bootstrap)
public void setQueryRegistry(NamedObjectRegistry<CannedQueryFactory<? extends Object>> queryRegistry)
public void setRepositoryHelper(Repository repositoryHelper)
public void setNodeService(NodeService nodeService)
public void setNoPermissionCheckNodeService(NodeService noPermissionCheckNodeService)
public void setNamespaceService(NamespaceService namespaceService)
public NodeRef getOrCreateDowloadContainer()
public NodeRef createDownloadNode(boolean recursive)
public void cancelDownload(NodeRef downloadNodeRef)
public boolean isCancelled(NodeRef downloadNodeRef)
public DownloadRequest getDownloadRequest(NodeRef downloadNodeRef)
public DownloadStatus getDownloadStatus(NodeRef downloadNodeRef)
public int getSequenceNumber(NodeRef nodeRef)
public void updateStatus(NodeRef nodeRef, DownloadStatus status)
public List<List<DownloadEntity>> getDownloadsCreatedBefore(Date before)
public void delete(NodeRef nodeRef)
nodeRef - NodeRefCopyright © 2005–2021 Alfresco Software. All rights reserved.