aboutsummaryrefslogtreecommitdiff
path: root/id
diff options
context:
space:
mode:
authorBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-03-20 15:04:41 +0100
committerBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-03-20 15:04:41 +0100
commita112ca8f0c8cd4a0620c55e430004b28b9fe1dfb (patch)
treea15a1473a943d809ade26fa99a5583b4a3ae356f /id
parent2a9896057ee6e42a6a07bcf2ec3eae13c582e290 (diff)
downloadmoa-id-spss-a112ca8f0c8cd4a0620c55e430004b28b9fe1dfb.tar.gz
moa-id-spss-a112ca8f0c8cd4a0620c55e430004b28b9fe1dfb.tar.bz2
moa-id-spss-a112ca8f0c8cd4a0620c55e430004b28b9fe1dfb.zip
correcting the error when defining new stork applicaiton
Diffstat (limited to 'id')
-rw-r--r--id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java11
-rw-r--r--id/ConfigWebTool/src/main/resources/applicationResources.properties1
2 files changed, 10 insertions, 2 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java
index 4297492e8..637500c1e 100644
--- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java
+++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java
@@ -176,11 +176,18 @@ public class OAGeneralConfigValidation {
if (storkservice) {
check = form.getStorkSPTargetCountry();
- if (check.length() < 1) {
+ if ((check==null)||(check.length() < 1)) {
log.warn("Stork target country is not known");
- errors.add(LanguageHelper.getErrorString(""));
+ errors.add(LanguageHelper.getErrorString("validation.general.stork.sptarget"));
}
+ if (check.length() > 10) {
+ log.warn("Incorrect size of Stork target country, too many characters");
+ errors.add(LanguageHelper.getErrorString("validation.general.stork.sptargetsize"));
+ }
+
+
+
} else if (businessservice) {
//check identification type
diff --git a/id/ConfigWebTool/src/main/resources/applicationResources.properties b/id/ConfigWebTool/src/main/resources/applicationResources.properties
index 1c455b287..1560db2f0 100644
--- a/id/ConfigWebTool/src/main/resources/applicationResources.properties
+++ b/id/ConfigWebTool/src/main/resources/applicationResources.properties
@@ -407,6 +407,7 @@ validation.general.oaidentifier.empty=Es wurde kein eindeutiger Identifier f\u00
validation.general.oaidentifier.valid=Der eindeutige Identifier f\u00FCr die Online-Applikation ist keine g\u00FCltige URL.
validation.general.oaidentifier.notunique=Der gew\u00E4hlte eindeutige Identifier ist bereits vorhanden. Eine Eintragung der Online-Applikation ist nicht m\u00F6glich.
validation.general.stork.sptarget=Der STORK SP-Target ist leer.
+validation.general.stork.sptargetsize=Die Definition von STORK SP-Target ist nicht korrekt: zu viele Buchstaben.
validation.general.bkuselection.filename.valid=Der Dateiname des BKU-Selektion Templates enth\u00E4lt nicht erlaubte Zeichen. Folgende Zeichen sind nicht erlaubt\: {0}
validation.general.bkuselection.file.valid=Das BKU-Selektion Templates konnte nicht geladen werden.
validation.general.bkuselection.file.selected=Es kann nur EIN BKU-Selektion Template angegeben werden.