Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@96984 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
25299f58be
commit
4e04f6e8d0
|
@ -72,8 +72,6 @@ public class FilesStorage {
|
|||
return url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* user
|
||||
*
|
||||
|
@ -254,17 +252,17 @@ public class FilesStorage {
|
|||
uc = (URLConnection) smsHome.openConnection();
|
||||
is = uc.getInputStream();
|
||||
|
||||
logger.debug("ws.createExternalFile [name: " + item_name
|
||||
+ " ,description: " + item_description + " ,mimetype:"
|
||||
+ item_mimetype + " ,is:" + is + " ,folder:" + item_folder
|
||||
+ " ]");
|
||||
Workspace ws = HomeLibrary.getUserWorkspace(user);
|
||||
|
||||
WorkspaceFolder folder=(WorkspaceFolder)ws.getItemByPath(item_folder);
|
||||
WorkspaceFolder folder = (WorkspaceFolder) ws.getItem(item_folder);
|
||||
String uniqueName = WorkspaceUtil.getUniqueName(item_name, folder);
|
||||
|
||||
|
||||
WorkspaceUtil.createExternalFile(folder, uniqueName, item_description, item_mimetype, is);
|
||||
logger.debug("ws.createExternalFile [folder: " + folder
|
||||
+ ", uniqueName: " + uniqueName + ", description: "
|
||||
+ item_description + ", mimetype: " + item_mimetype
|
||||
+ ", InputStream: " + is + "]");
|
||||
WorkspaceUtil.createExternalFile(folder, uniqueName,
|
||||
item_description, item_mimetype, is);
|
||||
|
||||
is.close();
|
||||
|
||||
|
@ -276,5 +274,4 @@ public class FilesStorage {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue