Changed Log

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@118902 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2015-09-04 13:40:47 +00:00
parent 1607946a42
commit cb036cc0d9
4 changed files with 10 additions and 6 deletions

View File

@ -2000,7 +2000,7 @@ public class GWTWorkspaceBuilder {
fileTrashModel.setShared(false); fileTrashModel.setShared(false);
logger.info("Converting return trash item: "+fileTrashModel); logger.debug("Converting return trash item: "+fileTrashModel);
return fileTrashModel; return fileTrashModel;

View File

@ -129,8 +129,7 @@ public class UploadServlet extends HttpServlet {
} }
if (item.isFormField() && IS_OVERWRITE.equals(item.getFieldName())){ if (item.isFormField() && IS_OVERWRITE.equals(item.getFieldName())){
isOverwrite = Boolean.parseBoolean(item.getString()); isOverwrite = Boolean.parseBoolean(item.getString());
} }
} }

View File

@ -20,6 +20,8 @@ import org.gcube.common.homelibrary.home.workspace.folder.FolderItem;
import org.gcube.common.scope.api.ScopeProvider; import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.common.scope.impl.ScopeBean; import org.gcube.common.scope.impl.ScopeBean;
import com.itextpdf.text.log.SysoCounter;
/** /**
* *
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
@ -47,6 +49,9 @@ public class ItemRetrieve {
try { try {
Workspace ws = getWorkspace(); Workspace ws = getWorkspace();
retrieveFirstLevel(ws, null);
retrieveFirstLevel(ws, ITEMID); retrieveFirstLevel(ws, ITEMID);
System.out.println("get workspace -> OK"); System.out.println("get workspace -> OK");
@ -98,7 +103,7 @@ public class ItemRetrieve {
System.out.println("Start get root at time: "+startTime); System.out.println("Start get root at time: "+startTime);
// WorkspaceItem root = ws.getItem(ITEMID); // WorkspaceItem root = ws.getItem(ITEMID);
WorkspaceItem root = ws.getRoot(); WorkspaceItem root = ws.getRoot();
System.out.println("root id: "+root.getId());
System.out.println("start get children"); System.out.println("start get children");
List<? extends WorkspaceItem> children = root.getChildren(); List<? extends WorkspaceItem> children = root.getChildren();
System.out.println("tree getChildren() returning "+children.size()+" elements in " + time); System.out.println("tree getChildren() returning "+children.size()+" elements in " + time);

View File

@ -46,9 +46,9 @@ public class UploadServletTest {
.getHomeManager().getHome("francesco.mangiacrapa") .getHomeManager().getHome("francesco.mangiacrapa")
.getWorkspace(); .getWorkspace();
String filePath = "/home/francesco-mangiacrapa/Desktop/icongeoexplorer"; String filePath = "/home/francesco-mangiacrapa";
String fileName = "testupload.txt"; String fileName = "ASFIS 6 languages_2013.csv";
String fullPath = filePath + "/" + fileName; String fullPath = filePath + "/" + fileName;