Updated pom
Updated changelog Fixed Incident #5722 git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/workspace-explorer-app@134031 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fab936d4f2
commit
ec135ae7ee
|
@ -1,4 +1,8 @@
|
|||
<ReleaseNotes>
|
||||
<Changeset component="org.gcube.portlets-user.workspace-explorer-app.1-0-0-1"
|
||||
date="2016-11-10">
|
||||
<Change>Bug Fix</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.portlets-user.workspace-explorer-app.1-0-0"
|
||||
date="2016-09-13">
|
||||
<Change>first release</Change>
|
||||
|
|
10
pom.xml
10
pom.xml
|
@ -63,6 +63,14 @@
|
|||
|
||||
<dependencies>
|
||||
|
||||
<!-- TO RUN BY ECLIPSE SET THE FOLLOWING SCOPE AT COMPILE -->
|
||||
<dependency>
|
||||
<groupId>xerces</groupId>
|
||||
<artifactId>xercesImpl</artifactId>
|
||||
<version>2.9.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.gwt</groupId>
|
||||
<artifactId>gwt-user</artifactId>
|
||||
|
@ -204,7 +212,7 @@
|
|||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.16</version>
|
||||
<scope>provided</scope>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
|
|
@ -392,25 +392,20 @@ public class WorkspaceExplorerAppServiceImpl extends RemoteServiceServlet implem
|
|||
parentLimit = parentLimit!=null?parentLimit:"";
|
||||
|
||||
switch (parents.size()) {
|
||||
case 0: //an error?
|
||||
logger.debug("There was an error? parents are 0");
|
||||
return new ArrayList<Item>(1);
|
||||
case 1: //itemIdentifier is ROOT - Parents include the ROOT
|
||||
case 2: //itemIdentifier is first level from ROOT
|
||||
logger.debug("itemIdentifier isRoot or a Folder of first level: ");
|
||||
if (includeItemAsParent) { //ADDIND ROOT OR FOLDER OF FIRST LEVEL
|
||||
WorkspaceFolder wsFolder =(WorkspaceFolder) workspace.getItem(itemIdentifier);
|
||||
case 0: // itemIdentifier is ROOT
|
||||
logger.trace("itemIdentifier isRoot...");
|
||||
if (includeItemAsParent) { //ADDIND ROOT
|
||||
WorkspaceFolder wsFolder =(WorkspaceFolder) wsItem;
|
||||
Item root = ItemBuilder.buildFolderForBreadcrumbs(wsFolder, null);
|
||||
List<Item> listParents = new ArrayList<Item>(1);
|
||||
listParents.add(root);
|
||||
// workspaceLogger.trace("returning: "+listParents.toString());
|
||||
return listParents;
|
||||
}
|
||||
else{
|
||||
logger.debug("returning empty list");
|
||||
logger.trace("returning empty list");
|
||||
return new ArrayList<Item>(); // empty list
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
WorkspaceItem lastItem = parents.get(parents.size()-1);
|
||||
|
|
Loading…
Reference in New Issue