Class FileContainer


  • public class FileContainer
    extends ItemContainer<org.gcube.common.storagehub.model.items.AbstractFileItem>
    • Constructor Detail

      • FileContainer

        protected FileContainer​(ItemManagerClient itemclient,
                                org.gcube.common.storagehub.model.items.AbstractFileItem item)
    • Method Detail

      • getPublicLink

        public URL getPublicLink()
                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getPublicLink

        public URL getPublicLink​(String version)
                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getVersions

        public List<org.gcube.common.storagehub.model.service.Version> getVersions()
                                                                            throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • downloadSpecificVersion

        public StreamDescriptor downloadSpecificVersion​(String versionName)
                                                 throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • deleteVersion

        public FileContainer deleteVersion​(String version)
                                    throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • copy

        public FileContainer copy​(FolderContainer folder,
                                  String newFileName)
                           throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException