public class WorkspaceManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WorkspaceManager.FileOptions |
static class |
WorkspaceManager.FolderOptions |
| Constructor and Description |
|---|
WorkspaceManager() |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.common.storagehub.client.dsl.FolderContainer |
createFolder(WorkspaceManager.FolderOptions opts) |
void |
deleteFromWS(org.gcube.application.geoportal.common.model.legacy.WorkspaceContent toDelete) |
static org.gcube.common.storagehub.client.dsl.FolderContainer |
getApplicationBaseFolder(org.gcube.common.storagehub.client.dsl.StorageHubClient sgClient) |
org.gcube.common.storagehub.client.dsl.FileContainer |
getFileById(String id) |
org.gcube.common.storagehub.client.dsl.FolderContainer |
getFolderById(String id) |
org.gcube.common.storagehub.client.dsl.FolderContainer |
getSubFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parentFolder,
String path) |
void |
removeFolderById(String id) |
org.gcube.application.geoportal.common.model.legacy.WorkspaceContent |
storeToWS(WorkspaceManager.FileOptions opts) |
public WorkspaceManager()
throws ConfigurationException,
org.gcube.common.storagehub.model.exceptions.StorageHubException
ConfigurationExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic org.gcube.common.storagehub.client.dsl.FolderContainer createFolder(WorkspaceManager.FolderOptions opts) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic org.gcube.common.storagehub.client.dsl.FileContainer getFileById(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic org.gcube.common.storagehub.client.dsl.FolderContainer getFolderById(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic void removeFolderById(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic org.gcube.common.storagehub.client.dsl.FolderContainer getSubFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parentFolder,
String path)
throws org.gcube.common.storagehub.model.exceptions.StorageHubException
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic org.gcube.application.geoportal.common.model.legacy.WorkspaceContent storeToWS(WorkspaceManager.FileOptions opts) throws FileNotFoundException, org.gcube.common.storagehub.model.exceptions.StorageHubException
FileNotFoundExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic void deleteFromWS(org.gcube.application.geoportal.common.model.legacy.WorkspaceContent toDelete)
throws org.gcube.common.storagehub.model.exceptions.StorageHubException
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic static org.gcube.common.storagehub.client.dsl.FolderContainer getApplicationBaseFolder(org.gcube.common.storagehub.client.dsl.StorageHubClient sgClient)
throws org.gcube.common.storagehub.model.exceptions.StorageHubException
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionCopyright © 2022. All Rights Reserved.