Class ListResolver
- java.lang.Object
-
- org.gcube.common.storagehub.client.dsl.ListResolver
-
- Direct Known Subclasses:
ListResolverTyped
public class ListResolver extends Object
Allow user to decorate the item with more Data- Author:
- lucio
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedListResolver(ListRetriever retriever, ItemManagerClient itemClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ItemContainer<? extends org.gcube.common.storagehub.model.items.Item>>getContainers()List<? extends org.gcube.common.storagehub.model.items.Item>getItems()ListResolverwithAccounting()add the accounting data to the item returnedListResolverwithContent()add the content data to the item returnedListResolverwithMetadata()add the Metadata to the item returned
-
-
-
Constructor Detail
-
ListResolver
protected ListResolver(ListRetriever retriever, ItemManagerClient itemClient)
-
-
Method Detail
-
withAccounting
public ListResolver withAccounting()
add the accounting data to the item returned- Returns:
-
withContent
public ListResolver withContent()
add the content data to the item returned- Returns:
-
withMetadata
public ListResolver withMetadata()
add the Metadata to the item returned- Returns:
-
getItems
public List<? extends org.gcube.common.storagehub.model.items.Item> getItems() throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getContainers
public List<ItemContainer<? extends org.gcube.common.storagehub.model.items.Item>> getContainers() throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
-