adapted to the refactored storage hub client library

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/workspace-widget-portlet@176890 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2019-01-31 10:22:35 +00:00
parent 717cfe6bbf
commit fd1126105a
3 changed files with 3 additions and 6 deletions

View File

@ -4,9 +4,6 @@
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<dependent-module archiveName="storagehub-icons-library-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/storagehub-icons-library/storagehub-icons-library">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="context-root" value="workspace-widget-portlet"/>
<property name="java-output-path" value="/workspace-widget-portlet/target/classes"/>
</wb-module>

View File

@ -13,7 +13,7 @@
<artifactId>workspace-widget-portlet</artifactId>
<packaging>war</packaging>
<name>workspace-widget-portlet Portlet</name>
<version>1.1.0-SNAPSHOT</version>
<version>1.2.0-SNAPSHOT</version>
<description>
Workspace Widget
</description>

View File

@ -40,10 +40,10 @@ public class StorageHubServiceUtil {
List<? extends Item> theChildren = null;
if (offset >= 0) {
int limit = offset;
theChildren = client.getChildren(itemId, from, limit, "hl:accounting");
theChildren = client.getChildren(itemId, from, limit, false, "hl:accounting");
}
else { //all the items
theChildren = client.getChildren(itemId, "hl:accounting");
theChildren = client.getChildren(itemId, false, "hl:accounting");
}
if (theChildren == null || theChildren.isEmpty()) {
toReturn.setChildren(children);