Class WorkSpaceManagement

java.lang.Object
org.gcube.accounting.aggregator.workspace.WorkSpaceManagement

public class WorkSpaceManagement extends Object
Author:
Luca Frosini (ISTI - CNR)
  • 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

      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
    • 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