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:
parent
c9ebc06ee8
commit
c9b8e31561
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue