Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@86565 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b851835636
commit
a8295e93a6
|
@ -1882,6 +1882,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
||||||
throws TDGWTServiceException {
|
throws TDGWTServiceException {
|
||||||
if (exportSession.getDestination().getId().compareTo("Workspace") == 0) {
|
if (exportSession.getDestination().getId().compareTo("Workspace") == 0) {
|
||||||
FilesStorage storage = new FilesStorage();
|
FilesStorage storage = new FilesStorage();
|
||||||
|
logger.debug("Create Item On Workspace: [ uri: "+exportMetadata.getUri()+
|
||||||
|
" ,user: "+user+
|
||||||
|
" ,fileName: "+exportSession.getFileName()+
|
||||||
|
" ,fileDescription: "+exportSession.getFileDescription()+
|
||||||
|
" ,mimetype: text/csv"+
|
||||||
|
" ,folder: "+exportSession.getItemId()+"]");
|
||||||
storage.createItemOnWorkspace(exportMetadata.getUri(), user,
|
storage.createItemOnWorkspace(exportMetadata.getUri(), user,
|
||||||
exportSession.getFileName(),
|
exportSession.getFileName(),
|
||||||
exportSession.getFileDescription(), "text/csv",
|
exportSession.getFileDescription(), "text/csv",
|
||||||
|
|
|
@ -223,6 +223,14 @@ public class FilesStorage {
|
||||||
URLConnection uc = null;
|
URLConnection uc = null;
|
||||||
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
|
Workspace ws = HomeLibrary
|
||||||
.getHomeManagerFactory()
|
.getHomeManagerFactory()
|
||||||
.getHomeManager()
|
.getHomeManager()
|
||||||
|
|
Loading…
Reference in New Issue