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
|
@ -53,7 +53,7 @@ public class FilesStorage {
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String storageCodelistMappingTempFile(String user, File file) {
|
public String storageCodelistMappingTempFile(String user, File file) {
|
||||||
String url = null;
|
String url = null;
|
||||||
try {
|
try {
|
||||||
|
@ -71,8 +71,6 @@ public class FilesStorage {
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* user
|
* user
|
||||||
|
@ -254,18 +252,18 @@ public class FilesStorage {
|
||||||
uc = (URLConnection) smsHome.openConnection();
|
uc = (URLConnection) smsHome.openConnection();
|
||||||
is = uc.getInputStream();
|
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);
|
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);
|
String uniqueName = WorkspaceUtil.getUniqueName(item_name, folder);
|
||||||
|
|
||||||
|
logger.debug("ws.createExternalFile [folder: " + folder
|
||||||
WorkspaceUtil.createExternalFile(folder, uniqueName, item_description, item_mimetype, is);
|
+ ", uniqueName: " + uniqueName + ", description: "
|
||||||
|
+ item_description + ", mimetype: " + item_mimetype
|
||||||
|
+ ", InputStream: " + is + "]");
|
||||||
|
WorkspaceUtil.createExternalFile(folder, uniqueName,
|
||||||
|
item_description, item_mimetype, is);
|
||||||
|
|
||||||
is.close();
|
is.close();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -276,5 +274,4 @@ public class FilesStorage {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue