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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedItemContainer(ItemManagerClient itemclient, I item) protectedItemContainer(ItemManagerClient itemclient, String itemId) -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()voidget()getId()abstract ContainerTypegetType()protected voidvoidmove(FolderContainer folder) voidvoidsetDescription(String description) voidprotected voidvoidsetMetadata(org.gcube.common.storagehub.model.Metadata metadata) void
-
Field Details
-
itemclient
-
itemId
-
item
-
-
Constructor Details
-
ItemContainer
-
ItemContainer
-
-
Method Details
-
setItem
-
getId
-
getType
-
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
-