aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main/java
diff options
context:
space:
mode:
authorBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-03-20 15:01:17 +0100
committerBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-03-20 15:01:17 +0100
commit2a9896057ee6e42a6a07bcf2ec3eae13c582e290 (patch)
tree77556908cb174819b0a1f5339bcf023c9b414b3f /id/ConfigWebTool/src/main/java
parentb8921ce59e4057b1c0b16e94b6040225505c57f9 (diff)
downloadmoa-id-spss-2a9896057ee6e42a6a07bcf2ec3eae13c582e290.tar.gz
moa-id-spss-2a9896057ee6e42a6a07bcf2ec3eae13c582e290.tar.bz2
moa-id-spss-2a9896057ee6e42a6a07bcf2ec3eae13c582e290.zip
correcting the error when defining new stork applicaiton
Diffstat (limited to 'id/ConfigWebTool/src/main/java')
-rw-r--r--id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OAGeneralConfigValidation.java14
1 files changed, 11 insertions, 3 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 d3a2241d3..4297492e8 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
@@ -172,14 +172,22 @@ public class OAGeneralConfigValidation {
boolean businessservice = form.isBusinessService();
-
- if (businessservice) {
+ boolean storkservice = form.isStorkService();
+
+ if (storkservice) {
+ check = form.getStorkSPTargetCountry();
+ if (check.length() < 1) {
+ log.warn("Stork target country is not known");
+ errors.add(LanguageHelper.getErrorString(""));
+ }
+
+ } else if (businessservice) {
//check identification type
check = form.getIdentificationType();
if (!form.getIdentificationTypeList().contains(check)) {
log.info("IdentificationType is not known.");
- errors.add(LanguageHelper.getErrorString("validation.general.identificationtype.valid"));
+ errors.add(LanguageHelper.getErrorString("validation.general.stork.sptarget"));
}
//check identification number