updated logs
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/workspace-explorer-app@131521 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a65f6c45ae
commit
a7c932d362
|
@ -383,7 +383,7 @@ public class WorkspaceExplorerAppServiceImpl extends RemoteServiceServlet implem
|
|||
|
||||
switch (parents.size()) {
|
||||
case 0: // itemIdentifier is ROOT
|
||||
logger.trace("itemIdentifier isRoot...");
|
||||
logger.debug("itemIdentifier isRoot...");
|
||||
if (includeItemAsParent) { //ADDIND ROOT
|
||||
WorkspaceFolder wsFolder =(WorkspaceFolder) workspace.getItem(itemIdentifier);
|
||||
Item root = ItemBuilder.buildFolderForBreadcrumbs(wsFolder, null);
|
||||
|
@ -392,12 +392,12 @@ public class WorkspaceExplorerAppServiceImpl extends RemoteServiceServlet implem
|
|||
return listParents;
|
||||
}
|
||||
else{
|
||||
logger.trace("returning empty list");
|
||||
logger.debug("returning empty list");
|
||||
return new ArrayList<Item>(); // empty list
|
||||
}
|
||||
|
||||
case 1: //itemIdentifier is first level from root
|
||||
logger.trace("itemIdentifier is first level...");
|
||||
logger.debug("itemIdentifier is first level...");
|
||||
List<Item> listParents = new ArrayList<Item>();
|
||||
WorkspaceFolder wsRootFolder = (WorkspaceFolder) parents.get(0); //isRoot
|
||||
Item root = ItemBuilder.buildFolderForBreadcrumbs(wsRootFolder, null);
|
||||
|
@ -422,7 +422,7 @@ public class WorkspaceExplorerAppServiceImpl extends RemoteServiceServlet implem
|
|||
WorkspaceItem lastItem = parents.get(parents.size()-1);
|
||||
|
||||
//CONVERTING LAST ELEMENT IF NECESSARY
|
||||
logger.trace("converting last element..");
|
||||
logger.debug("converting last element..");
|
||||
if(includeItemAsParent && lastItem.isFolder()){ //FIX BUG #298
|
||||
arrayParents = new Item[parents.size()];
|
||||
logger.debug("including last item into path: "+lastItem.getName());
|
||||
|
@ -447,7 +447,7 @@ public class WorkspaceExplorerAppServiceImpl extends RemoteServiceServlet implem
|
|||
}
|
||||
|
||||
//CONVERTING PATH
|
||||
logger.trace("converting path from second-last..");
|
||||
logger.debug("converting path from second-last..");
|
||||
for (int i = parents.size()-2; i >= 0; i--) {
|
||||
WorkspaceFolder wsParentFolder = (WorkspaceFolder) parents.get(i);
|
||||
arrayParents[i] = ItemBuilder.buildFolderForBreadcrumbs(wsParentFolder, null);
|
||||
|
@ -461,7 +461,7 @@ public class WorkspaceExplorerAppServiceImpl extends RemoteServiceServlet implem
|
|||
}
|
||||
|
||||
//SET PARENTS
|
||||
logger.trace("setting parents..");
|
||||
logger.debug("setting parents..");
|
||||
for(int i=0; i<arrayParents.length-1; i++){
|
||||
|
||||
Item parent = arrayParents[i];
|
||||
|
@ -472,7 +472,7 @@ public class WorkspaceExplorerAppServiceImpl extends RemoteServiceServlet implem
|
|||
}
|
||||
}
|
||||
|
||||
logger.trace("ListParents return size: "+arrayParents.length);
|
||||
logger.info("Limited list of parents returning size: "+arrayParents.length);
|
||||
if(arrayParents[0]==null){ //EXIT BY BREAK IN CASE OF SPECIAL FOLDER OR REACHED PARENT LIMIT
|
||||
List<Item> breadcrumbs = new ArrayList<Item>();
|
||||
for (int i=1; i<arrayParents.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue