Class FileContainer

java.lang.Object
org.gcube.common.storagehub.client.dsl.ItemContainer<org.gcube.common.storagehub.model.items.AbstractFileItem>
org.gcube.common.storagehub.client.dsl.FileContainer

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

    • FileContainer

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

      protected FileContainer(ItemManagerClient itemclient, String fileId)
  • Method Details

    • getType

      public ContainerType getType()
      Specified by:
      getType in class ItemContainer<org.gcube.common.storagehub.model.items.AbstractFileItem>
    • 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