Class WorkSpaceManagement
- java.lang.Object
-
- org.gcube.accounting.aggregator.workspace.WorkSpaceManagement
-
public class WorkSpaceManagement extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerloggerprotected org.gcube.common.storagehub.client.dsl.StorageHubClientstorageHubClient
-
Constructor Summary
Constructors Modifier Constructor Description protectedWorkSpaceManagement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToZipFile(ZipOutputStream zos, File file)protected org.gcube.common.storagehub.client.dsl.FolderContainergetFolder(org.gcube.common.storagehub.client.dsl.FolderContainer parent, String name)static WorkSpaceManagementgetInstance()org.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.FolderContainergetWorkspaceRoot()org.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)
-
-
-
Method Detail
-
getInstance
public static WorkSpaceManagement getInstance()
-
addToZipFile
public void addToZipFile(ZipOutputStream zos, File file) throws Exception
- Throws:
Exception
-
zipAndBackupFiles
public boolean zipAndBackupFiles(org.gcube.common.storagehub.client.dsl.FolderContainer targetFolder, String name, List<File> files) throws Exception- Throws:
Exception
-
getWorkspaceRoot
public org.gcube.common.storagehub.client.dsl.FolderContainer getWorkspaceRoot() throws Exception- 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
-
-