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 Summary
Fields Modifier and Type Field Description protected Iitemprotected ItemManagerClientitemclientprotected StringitemId
-
Constructor Summary
Constructors Modifier Constructor Description protectedItemContainer(ItemManagerClient itemclient, I item)protectedItemContainer(ItemManagerClient itemclient, String itemId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddelete()StreamDescriptordownload(String... nodeIdsToExclude)voidforceDelete()Iget()ListResolvergetAnchestors()StringgetId()FolderContainergetRootSharedFolder()abstract ContainerTypegetType()protected voidinvalidateItem()voidmove(FolderContainer folder)voidrename(String newName)voidsetDescription(String description)voidsetHidden()protected voidsetItem(I item)voidsetMetadata(org.gcube.common.storagehub.model.Metadata metadata)voidsetVisible()
-
-
-
Field Detail
-
itemclient
protected ItemManagerClient itemclient
-
itemId
protected String itemId
-
item
protected I extends org.gcube.common.storagehub.model.items.Item item
-
-
Constructor Detail
-
ItemContainer
protected ItemContainer(ItemManagerClient itemclient, I item)
-
ItemContainer
protected ItemContainer(ItemManagerClient itemclient, String itemId)
-
-
Method Detail
-
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
-
-