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:
parent
0225974b90
commit
df2d23bbf9
|
@ -45,19 +45,19 @@ public class CSVImportProgressUpdater extends Timer {
|
|||
|
||||
@Override
|
||||
public void onSuccess(CSVImportMonitor result) {
|
||||
Log.info("retrieved CSVImportMonitor: "+result.getState());
|
||||
switch (result.getState()) {
|
||||
case INPROGRESS:
|
||||
fireOperationUpdate(result.getElaboratedLenght());
|
||||
Log.info("retrieved CSVImportMonitor: "+result.getStatus());
|
||||
switch (result.getStatus()) {
|
||||
case IN_PROGRESS:
|
||||
fireOperationUpdate(result.getProgress());
|
||||
break;
|
||||
case FAILED:
|
||||
cancel();
|
||||
fireOperationFailed(new Throwable("Failed Client Library Import") ,result.getFailureReason(), result.getFailureDetails());
|
||||
fireOperationFailed(result.getError() ,"Failed Client Library Import", result.getError().getLocalizedMessage());
|
||||
break;
|
||||
case COMPLETED:
|
||||
case SUCCEDED:
|
||||
cancel();
|
||||
//Log.info("Import fisnish TableId :"+result.getTrId());
|
||||
//fireOperationComplete(result.getTrId());
|
||||
Log.info("Import fisnish TableId :"+result.getTrId());
|
||||
fireOperationComplete(result.getTrId());
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue