Added the management of ambiguity

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@98508 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-07-09 07:47:18 +00:00 committed by Giancarlo Panichi
parent c9ebc06ee8
commit c9b8e31561
1 changed files with 13 additions and 7 deletions

View File

@ -394,7 +394,8 @@ public class ValidationsTasksPanel extends FramedPanel implements
ValidationDto v = (ValidationDto) d;
Log.debug("ValidationDto: [" + v.getId() + ", "
+ v.getDescription() + ", " + v.getValid() + ", "
+ v.getConditionCode() + ", " + v.getValidationColumnColumnId() + ", "
+ v.getConditionCode() + ", "
+ v.getValidationColumnColumnId() + ", "
+ v.getInvocation() + "]");
if (v.getValid()) {
@ -405,7 +406,8 @@ public class ValidationsTasksPanel extends FramedPanel implements
Long op = invocationS.getOperationId();
if (op.compareTo(OperationsId.ChangeToDimensionColumn
.toLong()) == 0) {
if (v.getConditionCode() == ConditionCode.MissingValueOnExternalReference) {
if (v.getConditionCode() == ConditionCode.MissingValueOnExternalReference ||
v.getConditionCode() == ConditionCode.AmbigousValueOnExternalReference) {
WidgetRequestEvent widgetRequestEvent = new WidgetRequestEvent(
WidgetRequestType.CURATIONBYREPLACEBATCHDIALOG);
widgetRequestEvent.setTrId(trId);
@ -512,7 +514,8 @@ public class ValidationsTasksPanel extends FramedPanel implements
ValidationDto v = (ValidationDto) selected;
Log.debug("ValidationDto: [" + v.getId() + ", "
+ v.getDescription() + ", " + v.getValid() + ", "
+ v.getConditionCode() + ", " + v.getValidationColumnColumnId() + ", "
+ v.getConditionCode() + ", "
+ v.getValidationColumnColumnId() + ", "
+ v.getInvocation() + "]");
if (v.getInvocation() != null) {
if (v.getValid()) {
@ -526,15 +529,18 @@ public class ValidationsTasksPanel extends FramedPanel implements
// TODO Add all cases
if (op.compareTo(OperationsId.ChangeToDimensionColumn
.toLong()) == 0
&& v.getConditionCode() == ConditionCode.MissingValueOnExternalReference) {
&& (v.getConditionCode() == ConditionCode.MissingValueOnExternalReference ||
v.getConditionCode() == ConditionCode.AmbigousValueOnExternalReference)) {
contextMenu.clear();
contextMenu.add(resolveItem);
contextMenu.add(resumeItem);
tree.setContextMenu(contextMenu);
} else {
contextMenu.clear();
contextMenu.add(resumeItem);
tree.setContextMenu(contextMenu);
contextMenu.clear();
contextMenu.add(resumeItem);
tree.setContextMenu(contextMenu);
}
}
} else {