Added a custom message on delete
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@171498 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
93d7d59769
commit
965656402d
|
@ -976,6 +976,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
||||||
}
|
}
|
||||||
|
|
||||||
//HERE REMOVING THE ITEM
|
//HERE REMOVING THE ITEM
|
||||||
|
workspaceLogger.info("Calling storageHub to delete item with id: "+itemId);
|
||||||
storageHubWrapper.getWorkspace().deleteItem(itemId);
|
storageHubWrapper.getWorkspace().deleteItem(itemId);
|
||||||
|
|
||||||
if(sourceFolderSharedId!=null)
|
if(sourceFolderSharedId!=null)
|
||||||
|
@ -1021,7 +1022,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
||||||
throw new Exception(error);
|
throw new Exception(error);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
workspaceLogger.error("Remove item error.", e);
|
workspaceLogger.error("Remove item error.", e);
|
||||||
String error = ConstantsExplorer.SERVER_ERROR +" deleting item. "+e.getMessage();
|
String error = "Error on deleting. Either the item is shared, unshare it and try to delete again or you have not the permission to delete the item";
|
||||||
throw new Exception(error);
|
throw new Exception(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue