public interface BatchWorkspaceResourceService
Each method returns an ActionStatus
with a
ActionStatus.SummaryStatusCode
and message indicating the overall status. The ActionStatus
also contains a list of ActionStatusEntry
s which provides the status of each file.
Modifier and Type | Method and Description |
---|---|
ActionStatus |
downloadAsZip(Set<String> paths,
String localFilePath,
boolean overwrite)
Takes the workspace paths in the selected set and downloads them to the zip file specified in local path.
|
ActionStatus |
uploadAndExpand(String parentPath,
String localFilePath,
boolean createParentFolders)
Unzips the zip file specified in localZipFilePath and saves the contents to the workspace location specified in
parentPath.
|
ActionStatus uploadAndExpand(String parentPath, String localFilePath, boolean createParentFolders)
parentPath
- The parent path of the container in which to create the expand the contents of the specified
zip.localFilePath
- The local file path of the zip in which to upload and expand.createParentFolders
- Whether to create parent containers if they do not exist.ActionStatus downloadAsZip(Set<String> paths, String localFilePath, boolean overwrite)
paths
- List of paths to be downloaded to a ziplocalFilePath
- The local file path in which to save the zip.overwrite
- Whether to overwrite the local zip file if it exists.Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA