summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-04-02 16:38:56 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-04-02 16:38:56 +0000
commit8a6896444ce9b14c27193e688a8eeb59e1f51a4d (patch)
treedeab172149acfb08d01e3dd1a228e654d600b5aa
parent50f7be0c55da14e1b73c39aa18db9808949387bc (diff)
downloadmocca-8a6896444ce9b14c27193e688a8eeb59e1f51a4d.tar.gz
mocca-8a6896444ce9b14c27193e688a8eeb59e1f51a4d.tar.bz2
mocca-8a6896444ce9b14c27193e688a8eeb59e1f51a4d.zip
+implemented error handling for not activated cards or invalid coded
infoboxes git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1041 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
-rw-r--r--BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUIFacade.java3
-rw-r--r--BKUGuiExt/src/main/resources/at/gv/egiz/bku/gui/ActivationMessages.properties1
-rw-r--r--smccSTALExt/src/main/java/at/gv/egiz/bku/smccstal/PersonIdentityLinkRequestHandler.java10
3 files changed, 10 insertions, 4 deletions
diff --git a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUIFacade.java b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUIFacade.java
index 0c565c3a..75163f4e 100644
--- a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUIFacade.java
+++ b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUIFacade.java
@@ -39,6 +39,9 @@ public interface PersonIdentityLinkGUIFacade extends BKUGUIFacade {
public static final String MESSAGE_IDENITY = "identity.msg";
public static final String IDENTIFY_BUTTON = "identity.button";
+
+ public static final String ERR_INFOBOX_INVALID = "err.infobox.invalid";
+
/**
* Currently dummy method to display anything ...
*
diff --git a/BKUGuiExt/src/main/resources/at/gv/egiz/bku/gui/ActivationMessages.properties b/BKUGuiExt/src/main/resources/at/gv/egiz/bku/gui/ActivationMessages.properties
index 8da9a06c..a5e582a1 100644
--- a/BKUGuiExt/src/main/resources/at/gv/egiz/bku/gui/ActivationMessages.properties
+++ b/BKUGuiExt/src/main/resources/at/gv/egiz/bku/gui/ActivationMessages.properties
@@ -88,6 +88,7 @@ err.pin.format=<html>Invalid {0} length, {1} digit(s) required.</html>
err.pin.confirmation=<html>{0} and confirmation do not match.</html>
err.pin.operation.aborted=<html>The operation on {0} was aborted.</html>
err.unsupported.card=<html>This card is not supported</html>
+err.infobox.invalid=<html>Unable to interpret person identity link</html>
status.not.active=NOT ACTIVE
status.active=ACTIVE
diff --git a/smccSTALExt/src/main/java/at/gv/egiz/bku/smccstal/PersonIdentityLinkRequestHandler.java b/smccSTALExt/src/main/java/at/gv/egiz/bku/smccstal/PersonIdentityLinkRequestHandler.java
index d8af52ee..d8873f77 100644
--- a/smccSTALExt/src/main/java/at/gv/egiz/bku/smccstal/PersonIdentityLinkRequestHandler.java
+++ b/smccSTALExt/src/main/java/at/gv/egiz/bku/smccstal/PersonIdentityLinkRequestHandler.java
@@ -98,13 +98,15 @@ public class PersonIdentityLinkRequestHandler extends AbstractRequestHandler {
catch(SignatureCardException ex)
{
log.error(ex.getMessage(), ex);
- //gui.showErrorDialog(errorMsgKey, errorMsgParams)
- //waitForAction();
+ gui.showErrorDialog(PINManagementGUIFacade.ERR_CARD_NOTACTIVATED,
+ null, this, "cancel");
+ waitForAction();
return new ErrorResponse(1000);
} catch (IOException ex) {
log.error(ex.getMessage(), ex);
- //gui.showErrorDialog(errorMsgKey, errorMsgParams)
- //waitForAction();
+ gui.showErrorDialog(PersonIdentityLinkGUIFacade.ERR_INFOBOX_INVALID,
+ null, this, "cancel");
+ waitForAction();
return new ErrorResponse(1000);
}
}