[Feature #18174] Moved to new search facility provided by SHUB

This commit is contained in:
francesco 2020-03-11 16:42:12 +01:00
parent 7f739b373f
commit 37f33ad74e
3 changed files with 12 additions and 12 deletions

View File

@ -1,28 +1,27 @@
<ReleaseNotes>
<Changeset
component="org.gcube.common.storagehubwrapper.0-6-1"
date="2019-12-19">
component="org.gcube.common.storagehubwrapper.0-6-2" date="2020-03-11">
<Change>[Feature #18174] Moved to new search facility provided by SHUB</Change>
</Changeset>
<Changeset
component="org.gcube.common.storagehubwrapper.0-6-1" date="2019-12-19">
<Change>Updated to Git and Jenkins</Change>
</Changeset>
<Changeset
component="org.gcube.common.storagehubwrapper.0-6-0"
date="2019-10-01">
component="org.gcube.common.storagehubwrapper.0-6-0" date="2019-10-01">
<Change>[Task #16688] Integrating new method added into SHUB</Change>
</Changeset>
<Changeset
component="org.gcube.common.storagehubwrapper.0-5-0"
date="2019-08-01">
component="org.gcube.common.storagehubwrapper.0-5-0" date="2019-08-01">
<Change>Released due to exceptions thrown by SHUB</Change>
</Changeset>
<Changeset
component="org.gcube.common.storagehubwrapper.0-4-0"
date="2019-06-01">
component="org.gcube.common.storagehubwrapper.0-4-0" date="2019-06-01">
<Change>Updated to new SHub interface</Change>
<Change>Added method getMetadata</Change>
</Changeset>
<Changeset
component="org.gcube.common.storagehubwrapper.0-3-0"
date="2018-03-01">
component="org.gcube.common.storagehubwrapper.0-3-0" date="2018-03-01">
<Change>[Task #12059] added delete item</Change>
<Change>[Task #12533] added trash operations</Change>
<Change>[Task #12556] added download facility</Change>

View File

@ -10,7 +10,7 @@
</parent>
<groupId>org.gcube.common</groupId>
<artifactId>storagehub-client-wrapper</artifactId>
<version>0.6.1-SNAPSHOT</version>
<version>0.6.2-SNAPSHOT</version>
<name>storagehub-client-wrapper</name>
<description>This is a wrapper of storagehub-client library. It allows to interact with storagehub in a simplified way by exposing several utilities. Moreover, It exposes by another inteface java beans as defined in (the old) HL interfaces</description>
<scm>

View File

@ -552,7 +552,8 @@ public class StorageHubClientService {
}
if(item instanceof FolderItem || item instanceof SharedFolder || item instanceof VreFolder){
return shcClient.open(folderId).asFolder().findByName(name).withContent().getItems();
//return shcClient.open(folderId).asFolder().findByName(name).withContent().getItems();
return shcClient.open(folderId).asFolder().search(name).withContent().getItems();
}else
throw new Exception("The input folder id is not a folder");
}