Added OperationResult
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-codelistmapping-import-widget@111539 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f2b25d75c3
commit
7fd2d3c8a5
|
@ -12,6 +12,7 @@ import org.gcube.portlets.user.td.monitorwidget.client.MonitorDialog;
|
|||
import org.gcube.portlets.user.td.monitorwidget.client.MonitorDialogListener;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
||||
|
||||
|
@ -141,8 +142,8 @@ public class CodelistMappingOperationInProgressCard extends WizardCard
|
|||
}
|
||||
|
||||
@Override
|
||||
public void operationComplete(TRId trId) {
|
||||
newTrId = trId;
|
||||
public void operationComplete(OperationResult operationResult) {
|
||||
newTrId = operationResult.getTrId();
|
||||
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
||||
safeHtmlBuilder
|
||||
.appendHtmlConstant("<div style='text-align:center;font-size:large;font-weight:bold; color:#009900;'>Operation Completed</div>");
|
||||
|
@ -205,8 +206,8 @@ public class CodelistMappingOperationInProgressCard extends WizardCard
|
|||
}
|
||||
|
||||
@Override
|
||||
public void operationStopped(TRId trId, String reason, String details) {
|
||||
newTrId = trId;
|
||||
public void operationStopped(OperationResult operationResult, String reason, String details) {
|
||||
newTrId = operationResult.getTrId();
|
||||
SafeHtmlBuilder safeHtmlBuilder = new SafeHtmlBuilder();
|
||||
safeHtmlBuilder
|
||||
.appendHtmlConstant("<div style='text-align:center;font-size:large;font-weight:bold;color: #FF9900;'>Problems in the Operation</div>");
|
||||
|
|
|
@ -13,7 +13,7 @@ import org.gcube.portlets.user.td.monitorwidget.client.MonitorDialog;
|
|||
import org.gcube.portlets.user.td.monitorwidget.client.MonitorDialogListener;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.SessionExpiredType;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
|
||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
||||
|
||||
import com.allen_sauer.gwt.log.client.Log;
|
||||
|
@ -210,8 +210,8 @@ public class CodelistMappingTableDetailCard extends WizardCard implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public void operationComplete(TRId trId) {
|
||||
getWizardWindow().fireCompleted(trId);
|
||||
public void operationComplete(OperationResult operationResult) {
|
||||
getWizardWindow().fireCompleted(operationResult.getTrId());
|
||||
|
||||
}
|
||||
|
||||
|
@ -243,8 +243,8 @@ public class CodelistMappingTableDetailCard extends WizardCard implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public void operationStopped(TRId trId, String reason, String details) {
|
||||
getWizardWindow().fireCompleted(trId);
|
||||
public void operationStopped(OperationResult operationResult, String reason, String details) {
|
||||
getWizardWindow().fireCompleted(operationResult.getTrId());
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue