git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/Common/storagehub-client-wrapper@171986 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
577f79af79
commit
d89e1338a3
|
@ -511,13 +511,13 @@ public class StorageHubClientService {
|
|||
* @return the abstract file item
|
||||
* @throws Exception the exception
|
||||
*/
|
||||
public AbstractFileItem moveItem(String itemId, FolderContainer destFolderContainer) throws Exception{
|
||||
public Item moveItem(String itemId, FolderContainer destFolderContainer) throws Exception{
|
||||
|
||||
Validate.notNull(itemId, "Bad invoking move file, the itemId is null");
|
||||
Validate.notNull(destFolderContainer, "Bad invoking move file, the itemId is null");
|
||||
|
||||
OpenResolver openResolver = shcClient.open(itemId).asItem().move(destFolderContainer);
|
||||
return openResolver.asFile().get();
|
||||
return openResolver.asItem().get();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue