Fixed CSV Monitor

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@84785 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-10-31 16:22:36 +00:00
parent 0225974b90
commit df2d23bbf9
1 changed files with 8 additions and 8 deletions

View File

@ -45,19 +45,19 @@ public class CSVImportProgressUpdater extends Timer {
@Override @Override
public void onSuccess(CSVImportMonitor result) { public void onSuccess(CSVImportMonitor result) {
Log.info("retrieved CSVImportMonitor: "+result.getState()); Log.info("retrieved CSVImportMonitor: "+result.getStatus());
switch (result.getState()) { switch (result.getStatus()) {
case INPROGRESS: case IN_PROGRESS:
fireOperationUpdate(result.getElaboratedLenght()); fireOperationUpdate(result.getProgress());
break; break;
case FAILED: case FAILED:
cancel(); cancel();
fireOperationFailed(new Throwable("Failed Client Library Import") ,result.getFailureReason(), result.getFailureDetails()); fireOperationFailed(result.getError() ,"Failed Client Library Import", result.getError().getLocalizedMessage());
break; break;
case COMPLETED: case SUCCEDED:
cancel(); cancel();
//Log.info("Import fisnish TableId :"+result.getTrId()); Log.info("Import fisnish TableId :"+result.getTrId());
//fireOperationComplete(result.getTrId()); fireOperationComplete(result.getTrId());
break; break;
default: default: