Class ItemContainer<I extends org.gcube.common.storagehub.model.items.Item>

java.lang.Object
org.gcube.common.storagehub.client.dsl.ItemContainer<I>
Direct Known Subclasses:
FileContainer, FolderContainer, GenericItemContainer, URLContainer

public abstract class ItemContainer<I extends org.gcube.common.storagehub.model.items.Item> extends Object
  • Field Details

    • itemclient

      protected ItemManagerClient itemclient
    • itemId

      protected String itemId
    • item

      protected I extends org.gcube.common.storagehub.model.items.Item item
  • Constructor Details

  • Method Details

    • setItem

      protected void setItem(I item)
    • getId

      public String getId()
    • getType

      public abstract ContainerType getType()
    • get

      public I get()
    • invalidateItem

      protected void invalidateItem()
    • download

      public StreamDescriptor download(String... nodeIdsToExclude) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException
    • getAnchestors

      public ListResolver getAnchestors() throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException
    • delete

      public void delete() throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException
    • forceDelete

      public void forceDelete() throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException
    • rename

      public void rename(String newName) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException
    • move

      public void move(FolderContainer folder) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException
    • setMetadata

      public void setMetadata(org.gcube.common.storagehub.model.Metadata metadata) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException
    • setHidden

      public void setHidden() throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException
    • setDescription

      public void setDescription(String description) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException
    • setVisible

      public void setVisible() throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException
    • getRootSharedFolder

      public FolderContainer getRootSharedFolder() throws org.gcube.common.storagehub.model.exceptions.StorageHubException
      Throws:
      org.gcube.common.storagehub.model.exceptions.StorageHubException