This commit is contained in:
Massimiliano Assante 2018-06-19 16:17:18 +00:00
parent 9067bee0fa
commit 8722c1c836
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@
<!-- Convenience property to set the GWT version -->
<gwtVersion>2.7.0</gwtVersion>
<distroDirectory>distro</distroDirectory>
<!-- GWT needs at least java 1.6 -->
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
@ -56,12 +56,11 @@
<dependency>
<groupId>org.gcube.common</groupId>
<artifactId>storagehub-client-library</artifactId>
<version>[1.0.0-SNAPSHOT,)</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.gcube.portal</groupId>
<artifactId>storagehub-icons-library</artifactId>
<version>[1.0.0-SNAPSHOT,)</version>
</dependency>
<!-- Google Web Toolkit (GWT) -->
<dependency>

View File

@ -67,7 +67,8 @@ public class StorageHubServiceUtil {
ScopeProvider.instance.set(scope);
SecurityTokenProvider.instance.set(authorizationToken);
ItemManagerClient client = AbstractPlugin.item().build();
return client.createFolder(parentId, userName, description);
String createdFolderId = client.createFolder(parentId, name, description);
return (FolderItem) client.get(createdFolderId, ACCOUNTING_HL_NODE_NAME);
}
/**