Package org.alfresco.repo.download
Class DownloadStorage
java.lang.Object
org.alfresco.repo.download.DownloadStorage
This class is responsible for the persistence of objects using lower-level
repo services such as the
NodeService. The higher-level business logic around these CRUD calls
is contained within the DownloadServiceImpl.- Author:
- Alex Miller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNodeToDownload(NodeRef downloadNode, NodeRef nodeToAdd) voidcancelDownload(NodeRef downloadNodeRef) createDownloadNode(boolean recursive) voidDelete the download node identified by nodeRefgetDownloadRequest(NodeRef downloadNodeRef) getDownloadsCreatedBefore(Date before, int batchSize, boolean cleanAllSysDownloadFolders) Get all the downloads created before before.getDownloadStatus(NodeRef downloadNodeRef) This method finds the SyncSet Definition Container NodeRef, creating one if it does not exist.intgetSequenceNumber(NodeRef nodeRef) booleanisCancelled(NodeRef downloadNodeRef) voidsetImporterBootstrap(ImporterBootstrap bootstrap) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeService(NodeService nodeService) voidsetNoPermissionCheckNodeService(NodeService noPermissionCheckNodeService) voidsetQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> queryRegistry) voidsetRepositoryHelper(Repository repositoryHelper) voidupdateStatus(NodeRef nodeRef, DownloadStatus status)
-
Constructor Details
-
DownloadStorage
public DownloadStorage()
-
-
Method Details
-
setImporterBootstrap
-
setQueryRegistry
public void setQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> queryRegistry) -
setRepositoryHelper
-
setNodeService
-
setNoPermissionCheckNodeService
-
setNamespaceService
-
getOrCreateDowloadContainer
This method finds the SyncSet Definition Container NodeRef, creating one if it does not exist.- Returns:
- the syncset definition container
-
createDownloadNode
-
cancelDownload
-
isCancelled
-
addNodeToDownload
-
getDownloadRequest
-
getDownloadStatus
-
getSequenceNumber
-
updateStatus
-
getDownloadsCreatedBefore
public List<List<DownloadEntity>> getDownloadsCreatedBefore(Date before, int batchSize, boolean cleanAllSysDownloadFolders) Get all the downloads created before before. -
delete
Delete the download node identified by nodeRef- Parameters:
nodeRef- NodeRef
-