2018-04-18 15:55:20 +02:00
|
|
|
package org.gcube.common.storagehub.client.dsl;
|
|
|
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
|
|
|
import org.gcube.common.storagehub.client.StreamDescriptor;
|
|
|
|
import org.gcube.common.storagehub.client.proxies.ItemManagerClient;
|
|
|
|
|
|
|
|
public class ItemContainer {
|
|
|
|
|
2018-05-14 16:14:52 +02:00
|
|
|
protected ItemManagerClient itemclient;
|
2018-04-18 15:55:20 +02:00
|
|
|
|
2018-05-14 16:14:52 +02:00
|
|
|
protected String folderId = null;
|
2018-04-18 15:55:20 +02:00
|
|
|
// private String folderPath = null;
|
|
|
|
|
|
|
|
protected ItemContainer(ItemManagerClient itemclient) {
|
|
|
|
this.itemclient = itemclient;
|
|
|
|
}
|
|
|
|
|
|
|
|
public StreamDescriptor download(InputStream stream) {
|
|
|
|
return itemclient.download(this.folderId);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|