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:
Giancarlo Panichi 2013-12-04 17:32:31 +00:00
parent b851835636
commit a8295e93a6
2 changed files with 14 additions and 0 deletions

View File

@ -1882,6 +1882,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
throws TDGWTServiceException {
if (exportSession.getDestination().getId().compareTo("Workspace") == 0) {
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,
exportSession.getFileName(),
exportSession.getFileDescription(), "text/csv",

View File

@ -223,6 +223,14 @@ public class FilesStorage {
URLConnection uc = null;
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
.getHomeManagerFactory()
.getHomeManager()