Added a quick fix to set folder as public

updated pom version at 6.16.1

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@146726 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2017-04-10 14:43:21 +00:00
parent 985c2eace4
commit e1a4e80751
2 changed files with 9 additions and 3 deletions

View File

@ -10,7 +10,7 @@
<groupId>org.gcube.portlets.user</groupId>
<artifactId>workspace-tree-widget</artifactId>
<version>6.16.0-SNAPSHOT</version>
<version>6.16.1-SNAPSHOT</version>
<name>gCube Workspace Tree Widget</name>
<description>
gCube Workspace Tree Widget is a widget to navigate and interact with gCube Workspace

View File

@ -3891,8 +3891,11 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
WorkspaceItem item = workspace.getItem(itemId);
if(item instanceof WorkspaceFolder){
WorkspaceFolder folder = (WorkspaceFolder) item;
if(setPublic){
folder.setPublic(true);
if(!folder.isPublic())
folder.setPublic(true);
String folderId = item.getId();
workspaceLogger.info("HL returning folder link id: "+folderId);
ApplicationProfileReader apReader = new ApplicationProfileReader("Workspace-Explorer-App", "org.gcube.portlets.user.workspaceexplorerapp.server.WorkspaceExplorerAppServiceImpl");
@ -3921,7 +3924,10 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
throw new NoGcubeItemTypeException("The item is not a Gcube Item");
} catch (NoGcubeItemTypeException e){
workspaceLogger.error("Error in server FormattedGcubeItemProperties: ", e);
workspaceLogger.error("Error in server: ", e);
throw new Exception(e.getMessage());
} catch (InsufficientPrivilegesException e) {
workspaceLogger.error("Error in server: ", e);
throw new Exception(e.getMessage());
} catch (Exception e) {
workspaceLogger.error("Error in server markFolderAsPublicForFolderItemId: ", e);