Minor updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@85056 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-11-06 10:58:30 +00:00
parent 157dc24229
commit 6151526674
1 changed files with 7 additions and 7 deletions

View File

@ -63,7 +63,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.google.gwt.user.server.rpc.RemoteServiceServlet;
/** /**
@ -257,14 +257,14 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
TableId tableId = null; TableId tableId = null;
if (table == null) { if (table == null) {
Log.info("Tabular resource "+tr.getId()+" has no table."); logger.info("Tabular resource "+tr.getId()+" has no table.");
} else { } else {
tableId = table.getId(); tableId = table.getId();
} }
TRId trId = null; TRId trId = null;
if (tableId == null) { if (tableId == null) {
Log.info("Tabular Resource "+tr.getId()+" has last table with id null."); logger.info("Tabular Resource "+tr.getId()+" has last table with id null.");
} else { } else {
trId = new TRId(String.valueOf(tr.getId().getValue()), trId = new TRId(String.valueOf(tr.getId().getValue()),
String.valueOf(tableId.getValue())); String.valueOf(tableId.getValue()));
@ -495,9 +495,9 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
OperationInvocation invocation = importSDMXCodelistOperation OperationInvocation invocation = importSDMXCodelistOperation
.createOperationInvocation(parameterInstances); .createOperationInvocation(parameterInstances);
Log.debug("OperationInvocation: \n"+invocation.toString()); logger.debug("OperationInvocation: \n"+invocation.toString());
Task trTask = oService.execute(invocation, serviceTR.getId()); Task trTask = oService.execute(invocation, serviceTR.getId());
Log.info("Start Task on service: TaskId "+trTask.getId()); logger.debug("Start Task on service: TaskId "+trTask.getId());
SessionUtil.setSDMXImportTask(session, trTask); SessionUtil.setSDMXImportTask(session, trTask);
return; return;
} catch (Exception e) { } catch (Exception e) {
@ -856,7 +856,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
OperationInvocation oi = importCSVFileOperation OperationInvocation oi = importCSVFileOperation
.createOperationInvocation(parameterInstance); .createOperationInvocation(parameterInstance);
Log.debug("OperationInvocation: \n"+oi.toString()); logger.debug("OperationInvocation: \n"+oi.toString());
TabularResource tabularResource = service.createTabularResource(); TabularResource tabularResource = service.createTabularResource();
TabResource csvImportTabResource = csvImportSession.getTabResource(); TabResource csvImportTabResource = csvImportSession.getTabResource();
syncTRMetaData(tabularResource, csvImportTabResource); syncTRMetaData(tabularResource, csvImportTabResource);
@ -873,7 +873,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
+ e.getLocalizedMessage()); + e.getLocalizedMessage());
} }
Log.info("Start Task on service: TaskId "+trTask.getId()); logger.debug("Start Task on service: TaskId "+trTask.getId());
SessionUtil.setCSVImportFileTask(session, trTask); SessionUtil.setCSVImportFileTask(session, trTask);
} }