Class WorkSpaceManagement
java.lang.Object
org.gcube.accounting.aggregator.workspace.WorkSpaceManagement
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Loggerprotected org.gcube.common.storagehub.client.dsl.StorageHubClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToZipFile(ZipOutputStream zos, File file) protected org.gcube.common.storagehub.client.dsl.FolderContainerstatic WorkSpaceManagementorg.gcube.common.storagehub.client.dsl.FolderContainergetOrCreateFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parent, String name, String description, boolean hidden) org.gcube.common.storagehub.client.dsl.FolderContainerorg.gcube.common.storagehub.client.dsl.FileContaineruploadFile(InputStream inputStream, String fileName, String description, String mimeType, org.gcube.common.storagehub.client.dsl.FolderContainer parentPath) booleanzipAndBackupFiles(org.gcube.common.storagehub.client.dsl.FolderContainer targetFolder, String name, List<File> files)
-
Field Details
-
logger
public static org.slf4j.Logger logger -
storageHubClient
protected org.gcube.common.storagehub.client.dsl.StorageHubClient storageHubClient
-
-
Constructor Details
-
WorkSpaceManagement
protected WorkSpaceManagement()
-
-
Method Details
-
getInstance
-
addToZipFile
- Throws:
Exception
-
zipAndBackupFiles
public boolean zipAndBackupFiles(org.gcube.common.storagehub.client.dsl.FolderContainer targetFolder, String name, List<File> files) throws Exception - Throws:
Exception
-
getWorkspaceRoot
- Throws:
Exception
-
getFolder
protected 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 - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getOrCreateFolder
public org.gcube.common.storagehub.client.dsl.FolderContainer getOrCreateFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parent, String name, String description, boolean hidden) throws Exception - Throws:
Exception
-
uploadFile
public org.gcube.common.storagehub.client.dsl.FileContainer uploadFile(InputStream inputStream, String fileName, String description, String mimeType, org.gcube.common.storagehub.client.dsl.FolderContainer parentPath) throws Exception - Throws:
Exception
-