Package org.alfresco.rest.api.impl
Class DownloadsImpl
- java.lang.Object
-
- org.alfresco.rest.api.impl.DownloadsImpl
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
CLOUD_CONNECTOR_MODULES
static String
DEFAULT_ARCHIVE_EXTENSION
static String
DEFAULT_ARCHIVE_NAME
-
Constructor Summary
Constructors Constructor Description DownloadsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel(String downloadNodeId)
Stop the zip creation if still in progressprotected boolean
canCheckArchived()
protected void
checkArchiveStatus(NodeRef[] nodeRefs, int checkLimit)
Checks the supplied nodes for any content that is archived.protected void
checkDuplicateNodeId(Download download)
protected void
checkEmptyNodeIds(Download download)
protected void
checkIsDownloadNodeType(NodeRef downloadNodeRef)
protected void
checkNodeIdsReadPermission(NodeRef[] zipContentNodeRefs)
Download
createDownloadNode(Download download)
Creates a download:download node.Download
getDownloadStatus(String downloadNodeId)
Get status info about a download node.void
setArchiveCheckLimit(int checkLimit)
void
setContentService(ContentService contentService)
void
setDownloadService(DownloadService downloadService)
void
setModuleService(ModuleService moduleService)
void
setNodes(Nodes nodes)
void
setNodeService(NodeService nodeService)
void
setPermissionService(PermissionService permissionService)
protected NodeRef[]
validateAndGetNodeRefs(Download download)
-
-
-
Field Detail
-
DEFAULT_ARCHIVE_NAME
public static final String DEFAULT_ARCHIVE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_ARCHIVE_EXTENSION
public static final String DEFAULT_ARCHIVE_EXTENSION
- See Also:
- Constant Field Values
-
CLOUD_CONNECTOR_MODULES
public static final String[] CLOUD_CONNECTOR_MODULES
-
-
Method Detail
-
setDownloadService
public void setDownloadService(DownloadService downloadService)
-
setModuleService
public void setModuleService(ModuleService moduleService)
-
setNodeService
public void setNodeService(NodeService nodeService)
-
setContentService
public void setContentService(ContentService contentService)
-
setNodes
public void setNodes(Nodes nodes)
-
setPermissionService
public void setPermissionService(PermissionService permissionService)
-
setArchiveCheckLimit
public void setArchiveCheckLimit(int checkLimit)
-
createDownloadNode
public Download createDownloadNode(Download download)
Description copied from interface:Downloads
Creates a download:download node.- Specified by:
createDownloadNode
in interfaceDownloads
- Returns:
- information about the newly created download:download node
-
getDownloadStatus
public Download getDownloadStatus(String downloadNodeId)
Description copied from interface:Downloads
Get status info about a download node.- Specified by:
getDownloadStatus
in interfaceDownloads
- Returns:
- status info about a download:download node
-
cancel
public void cancel(String downloadNodeId)
Description copied from interface:Downloads
Stop the zip creation if still in progress
-
checkNodeIdsReadPermission
protected void checkNodeIdsReadPermission(NodeRef[] zipContentNodeRefs)
-
checkDuplicateNodeId
protected void checkDuplicateNodeId(Download download)
-
checkEmptyNodeIds
protected void checkEmptyNodeIds(Download download)
-
checkIsDownloadNodeType
protected void checkIsDownloadNodeType(NodeRef downloadNodeRef)
-
checkArchiveStatus
protected void checkArchiveStatus(NodeRef[] nodeRefs, int checkLimit)
Checks the supplied nodes for any content that is archived. Any folders will be expanded and their children checked. A limit can be applied to prevent large sized requests preventing the asynchronous call to start.- Parameters:
nodeRefs
-checkLimit
- The maximum number of nodes to check, set to -1 for no limit- See Also:
checkArchiveStatus(NodeRef[], int, Set)
-
canCheckArchived
protected boolean canCheckArchived()
-
-