mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
134630 cpopa: APPSREPO-105 : Add an API to download multiple file/folders as a zip - Added an API for creating a download, retrieving download info and canceling a download git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134671 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -67,7 +67,8 @@ public class DownloadStorage
|
||||
// service dependencies
|
||||
private ImporterBootstrap bootstrap;
|
||||
private Repository repositoryHelper;
|
||||
private NodeService nodeService;
|
||||
private NodeService nodeService;
|
||||
private NodeService noPermissionCheckNodeService;
|
||||
private NamespaceService namespaceService;
|
||||
private NamedObjectRegistry<CannedQueryFactory<? extends Object>> queryRegistry;
|
||||
|
||||
@@ -91,6 +92,11 @@ public class DownloadStorage
|
||||
this.nodeService = nodeService;
|
||||
}
|
||||
|
||||
public void setNoPermissionCheckNodeService(NodeService noPermissionCheckNodeService)
|
||||
{
|
||||
this.noPermissionCheckNodeService = noPermissionCheckNodeService;
|
||||
}
|
||||
|
||||
public void setNamespaceService(NamespaceService namespaceService)
|
||||
{
|
||||
this.namespaceService = namespaceService;
|
||||
@@ -135,7 +141,7 @@ public class DownloadStorage
|
||||
Map<QName, Serializable> downloadProperties = new HashMap<QName, Serializable>();
|
||||
downloadProperties.put(DownloadModel.PROP_RECURSIVE, recursive);
|
||||
|
||||
ChildAssociationRef newChildAssoc = nodeService.createNode(downloadsContainer,
|
||||
ChildAssociationRef newChildAssoc = noPermissionCheckNodeService.createNode(downloadsContainer,
|
||||
ContentModel.ASSOC_CHILDREN, ContentModel.ASSOC_CHILDREN,
|
||||
DownloadModel.TYPE_DOWNLOAD,
|
||||
downloadProperties);
|
||||
|
Reference in New Issue
Block a user