git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/Common/storagehub-client@169510 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a95d6b2ccb
commit
12de03715f
|
@ -17,9 +17,5 @@ public class GenericItemContainer extends ItemContainer<Item> {
|
||||||
public ContainerType getType() {
|
public ContainerType getType() {
|
||||||
return ContainerType.GENERIC_ITEM;
|
return ContainerType.GENERIC_ITEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FolderContainer getRootSharedFolder() {
|
|
||||||
return new FolderContainer(itemclient, (FolderItem)itemclient.getRootSharedFolder(this.itemId));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
||||||
import org.gcube.common.storagehub.client.StreamDescriptor;
|
import org.gcube.common.storagehub.client.StreamDescriptor;
|
||||||
import org.gcube.common.storagehub.client.proxies.ItemManagerClient;
|
import org.gcube.common.storagehub.client.proxies.ItemManagerClient;
|
||||||
import org.gcube.common.storagehub.model.NodeConstants;
|
import org.gcube.common.storagehub.model.NodeConstants;
|
||||||
|
import org.gcube.common.storagehub.model.items.FolderItem;
|
||||||
import org.gcube.common.storagehub.model.items.Item;
|
import org.gcube.common.storagehub.model.items.Item;
|
||||||
|
|
||||||
public abstract class ItemContainer<I extends Item> {
|
public abstract class ItemContainer<I extends Item> {
|
||||||
|
@ -51,4 +52,7 @@ public abstract class ItemContainer<I extends Item> {
|
||||||
itemclient.delete(this.itemId);
|
itemclient.delete(this.itemId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FolderContainer getRootSharedFolder() {
|
||||||
|
return new FolderContainer(itemclient, (FolderItem)itemclient.getRootSharedFolder(this.itemId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class Items {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shc.getWSRoot().
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue