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:
parent
717cfe6bbf
commit
fd1126105a
|
@ -4,9 +4,6 @@
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
<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/java"/>
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
<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="context-root" value="workspace-widget-portlet"/>
|
||||||
<property name="java-output-path" value="/workspace-widget-portlet/target/classes"/>
|
<property name="java-output-path" value="/workspace-widget-portlet/target/classes"/>
|
||||||
</wb-module>
|
</wb-module>
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -13,7 +13,7 @@
|
||||||
<artifactId>workspace-widget-portlet</artifactId>
|
<artifactId>workspace-widget-portlet</artifactId>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<name>workspace-widget-portlet Portlet</name>
|
<name>workspace-widget-portlet Portlet</name>
|
||||||
<version>1.1.0-SNAPSHOT</version>
|
<version>1.2.0-SNAPSHOT</version>
|
||||||
<description>
|
<description>
|
||||||
Workspace Widget
|
Workspace Widget
|
||||||
</description>
|
</description>
|
||||||
|
|
|
@ -40,10 +40,10 @@ public class StorageHubServiceUtil {
|
||||||
List<? extends Item> theChildren = null;
|
List<? extends Item> theChildren = null;
|
||||||
if (offset >= 0) {
|
if (offset >= 0) {
|
||||||
int limit = offset;
|
int limit = offset;
|
||||||
theChildren = client.getChildren(itemId, from, limit, "hl:accounting");
|
theChildren = client.getChildren(itemId, from, limit, false, "hl:accounting");
|
||||||
}
|
}
|
||||||
else { //all the items
|
else { //all the items
|
||||||
theChildren = client.getChildren(itemId, "hl:accounting");
|
theChildren = client.getChildren(itemId, false, "hl:accounting");
|
||||||
}
|
}
|
||||||
if (theChildren == null || theChildren.isEmpty()) {
|
if (theChildren == null || theChildren.isEmpty()) {
|
||||||
toReturn.setChildren(children);
|
toReturn.setChildren(children);
|
||||||
|
|
Loading…
Reference in New Issue