Class WorkSpaceManagement


  • public class WorkSpaceManagement
    extends Object
    Author:
    Luca Frosini (ISTI - CNR)
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • storageHubClient

        protected org.gcube.common.storagehub.client.dsl.StorageHubClient storageHubClient
    • Constructor Detail

      • WorkSpaceManagement

        protected WorkSpaceManagement()
    • Method Detail

      • 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