Minor updated

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-sdmx-export-widget@86586 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-12-05 10:20:18 +00:00 committed by Giancarlo Panichi
parent b58f9e82e7
commit 3d3377d61d
2 changed files with 20 additions and 13 deletions

View File

@ -43,7 +43,14 @@ SDMXExportProgressListener {
this.exportSession = exportSession;
thisCard = this;
String urlRegistry;
if(exportSession.getRegistryBaseUrl()==null||
exportSession.getRegistryBaseUrl().isEmpty()){
urlRegistry="Internal";
} else {
urlRegistry=exportSession.getRegistryBaseUrl();
}
VBoxLayoutContainer operationInProgressPanel = new VBoxLayoutContainer();
operationInProgressPanel.setVBoxLayoutAlign(VBoxLayoutAlign.CENTER);
@ -66,9 +73,10 @@ SDMXExportProgressListener {
"<span style=\"font-weight:bold;\";>Agency: </span>");
description.setText(2, 1, exportSession.getAgencyName());
description.setHTML(3, 0,
"<span style=\"font-weight:bold;\";>Registry: </span>");
description.setText(3, 1, exportSession.getRegistryBaseUrl());
description.setText(3, 1, urlRegistry);
description.setHTML(4, 0,
"<span style=\"font-weight:bold;\";>Version: </span>");

View File

@ -6,7 +6,7 @@ package org.gcube.portlets.user.td.sdmxexportwidget.client.progress;
import java.util.ArrayList;
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
import org.gcube.portlets.user.td.gwtservice.shared.csv.CSVExportMonitor;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXExportMonitor;
import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.user.client.Timer;
@ -33,7 +33,7 @@ public class SDMXExportProgressUpdater extends Timer {
public void run() {
Log.debug("requesting operation progress");
TDGWTServiceAsync.INSTANCE
.getCSVExportMonitor(new AsyncCallback<CSVExportMonitor>() {
.getSDMXExportMonitor(new AsyncCallback<SDMXExportMonitor>() {
@Override
public void onFailure(Throwable caught) {
@ -46,17 +46,17 @@ public class SDMXExportProgressUpdater extends Timer {
}
@Override
public void onSuccess(CSVExportMonitor result) {
Log.info("retrieved CSVImportMonitor: "
public void onSuccess(SDMXExportMonitor result) {
Log.info("retrieved SDMXImportMonitor: "
+ result.getStatus());
switch (result.getStatus()) {
case INITIALIZING:
Log.info("CSV Export Initializing...");
Log.info("SDMX Export Initializing...");
fireOperationInitializing();
break;
case ABORTED:
cancel();
Log.info("CSV Export Operation Aborted");
Log.info("SDMX Export Operation Aborted");
break;
case IN_PROGRESS:
fireOperationUpdate(result.getProgress());
@ -67,8 +67,7 @@ public class SDMXExportProgressUpdater extends Timer {
break;
case SUCCEDED:
cancel();
Log.info("Export fisnish ExportMetadata:"
+ result.getTrExportMetadata());
Log.info("Export fisnish");
fireOperationComplete();
break;
@ -83,8 +82,8 @@ public class SDMXExportProgressUpdater extends Timer {
}
protected void errorMessage(CSVExportMonitor result) {
Log.info("CSV Export Failed");
protected void errorMessage(SDMXExportMonitor result) {
Log.info("SDMX Export Failed");
Throwable th = null;
String failure = null;
String details = null;
@ -99,7 +98,7 @@ public class SDMXExportProgressUpdater extends Timer {
}
fireOperationFailed(th, failure, details);
AlertMessageBox d = new AlertMessageBox("Error in CSV Export", details);
AlertMessageBox d = new AlertMessageBox("Error in SDMX Export", details);
d.addHideHandler(new HideHandler() {
@Override