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(org.alfresco.service.cmr.repository.NodeRef downloadNode,
org.alfresco.service.cmr.repository.NodeRef nodeToAdd) |
void |
cancelDownload(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef) |
org.alfresco.service.cmr.repository.NodeRef |
createDownloadNode(boolean recursive) |
void |
delete(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Delete the download node identified by nodeRef
|
DownloadRequest |
getDownloadRequest(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef) |
List<List<DownloadEntity>> |
getDownloadsCreatedBefore(Date before)
Get all the downloads created before before.
|
DownloadStatus |
getDownloadStatus(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef) |
org.alfresco.service.cmr.repository.NodeRef |
getOrCreateDowloadContainer()
This method finds the SyncSet Definition Container NodeRef, creating one if it does not exist.
|
int |
getSequenceNumber(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
boolean |
isCancelled(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef) |
void |
setImporterBootstrap(ImporterBootstrap bootstrap) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setNoPermissionCheckNodeService(org.alfresco.service.cmr.repository.NodeService noPermissionCheckNodeService) |
void |
setQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> queryRegistry) |
void |
setRepositoryHelper(Repository repositoryHelper) |
void |
updateStatus(org.alfresco.service.cmr.repository.NodeRef nodeRef,
DownloadStatus status) |
public void setImporterBootstrap(ImporterBootstrap bootstrap)
public void setQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> queryRegistry)
public void setRepositoryHelper(Repository repositoryHelper)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setNoPermissionCheckNodeService(org.alfresco.service.cmr.repository.NodeService noPermissionCheckNodeService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public org.alfresco.service.cmr.repository.NodeRef getOrCreateDowloadContainer()
public org.alfresco.service.cmr.repository.NodeRef createDownloadNode(boolean recursive)
public void cancelDownload(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef)
public boolean isCancelled(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef)
public void addNodeToDownload(org.alfresco.service.cmr.repository.NodeRef downloadNode, org.alfresco.service.cmr.repository.NodeRef nodeToAdd)
public DownloadRequest getDownloadRequest(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef)
public DownloadStatus getDownloadStatus(org.alfresco.service.cmr.repository.NodeRef downloadNodeRef)
public int getSequenceNumber(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public void updateStatus(org.alfresco.service.cmr.repository.NodeRef nodeRef, DownloadStatus status)
public List<List<DownloadEntity>> getDownloadsCreatedBefore(Date before)
public void delete(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- NodeRefCopyright © 2005–2017 Alfresco Software. All rights reserved.