Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@90905 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-02-05 11:08:05 +00:00
parent d0b8e6b7d1
commit 64eb836398
2 changed files with 4 additions and 1 deletions

View File

@ -171,6 +171,7 @@
<groupId>org.gcube.portlets.user</groupId> <groupId>org.gcube.portlets.user</groupId>
<artifactId>tabular-data-widget-common-event</artifactId> <artifactId>tabular-data-widget-common-event</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency> </dependency>
<!-- LOGGING --> <!-- LOGGING -->

View File

@ -1974,10 +1974,11 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
} else { } else {
TaskStatus status = task.getStatus(); TaskStatus status = task.getStatus();
if (status == null) { if (status == null) {
logger.debug("Services TaskStatus : null");
throw new TDGWTServiceException( throw new TDGWTServiceException(
"Error in exportCSV Status null"); "Error in exportCSV Status null");
} else { } else {
logger.debug("Status: " + task.getStatus()); logger.debug("Services TaskStatus: " + task.getStatus());
exportMonitor.setStatus(matchTaskState(task.getStatus())); exportMonitor.setStatus(matchTaskState(task.getStatus()));
switch (exportMonitor.getStatus()) { switch (exportMonitor.getStatus()) {
@ -2051,6 +2052,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
protected void saveInDestination(HttpSession session, String user, protected void saveInDestination(HttpSession session, String user,
ExportMetadata exportMetadata, CSVExportSession exportSession) ExportMetadata exportMetadata, CSVExportSession exportSession)
throws TDGWTServiceException { throws TDGWTServiceException {
logger.debug("Save Export In Destination");
if (exportSession.getDestination().getId().compareTo("Workspace") == 0) { if (exportSession.getDestination().getId().compareTo("Workspace") == 0) {
if (SessionUtil.getCSVExportEnd(session) == false) { if (SessionUtil.getCSVExportEnd(session) == false) {
SessionUtil.setCSVExportEnd(session, true); SessionUtil.setCSVExportEnd(session, true);