public class WorkSpaceManagement extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
protected org.gcube.common.storagehub.client.dsl.StorageHubClient |
storageHubClient |
| Modifier | Constructor and Description |
|---|---|
protected |
WorkSpaceManagement() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToZipFile(ZipOutputStream zos,
File file) |
protected org.gcube.common.storagehub.client.dsl.FolderContainer |
getFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parent,
String name) |
static WorkSpaceManagement |
getInstance() |
org.gcube.common.storagehub.client.dsl.FolderContainer |
getOrCreateFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parent,
String name,
String description,
boolean hidden) |
org.gcube.common.storagehub.client.dsl.FolderContainer |
getWorkspaceRoot() |
org.gcube.common.storagehub.client.dsl.FileContainer |
uploadFile(InputStream inputStream,
String fileName,
String description,
String mimeType,
org.gcube.common.storagehub.client.dsl.FolderContainer parentPath) |
boolean |
zipAndBackupFiles(org.gcube.common.storagehub.client.dsl.FolderContainer targetFolder,
String name,
List<File> files) |
public static org.slf4j.Logger logger
protected org.gcube.common.storagehub.client.dsl.StorageHubClient storageHubClient
public static WorkSpaceManagement getInstance()
public void addToZipFile(ZipOutputStream zos, File file) throws Exception
Exceptionpublic boolean zipAndBackupFiles(org.gcube.common.storagehub.client.dsl.FolderContainer targetFolder,
String name,
List<File> files)
throws Exception
Exceptionpublic org.gcube.common.storagehub.client.dsl.FolderContainer getWorkspaceRoot()
throws Exception
Exceptionprotected org.gcube.common.storagehub.client.dsl.FolderContainer getFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parent,
String name)
throws org.gcube.common.storagehub.model.exceptions.StorageHubException
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic org.gcube.common.storagehub.client.dsl.FolderContainer getOrCreateFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parent,
String name,
String description,
boolean hidden)
throws Exception
ExceptionCopyright © 2022. All Rights Reserved.