diff options
author | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-03-05 10:22:46 +0100 |
---|---|---|
committer | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-03-05 10:26:50 +0100 |
commit | 1ba3c2042e0c4da08af39db6172ff1206dfece36 (patch) | |
tree | a7154271210fafc12cc1187eeca842f69db8b05e /id/ConfigWebTool/src/main/java/at/gv | |
parent | f57dbf19485e1da5f9a60d65b0c4cc8ce6e4cd9c (diff) | |
download | moa-id-spss-1ba3c2042e0c4da08af39db6172ff1206dfece36.tar.gz moa-id-spss-1ba3c2042e0c4da08af39db6172ff1206dfece36.tar.bz2 moa-id-spss-1ba3c2042e0c4da08af39db6172ff1206dfece36.zip |
ap plugins can be configured to listen to certain attributes
Diffstat (limited to 'id/ConfigWebTool/src/main/java/at/gv')
-rw-r--r-- | id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OASTORKConfigValidation.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OASTORKConfigValidation.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OASTORKConfigValidation.java index 25e0d751c..067e85aa6 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OASTORKConfigValidation.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/validation/oa/OASTORKConfigValidation.java @@ -58,6 +58,10 @@ public class OASTORKConfigValidation { log.info("AttributeProviderPlugin Name is empty."); errors.add(LanguageHelper.getErrorString("validation.stork.ap.name.valid")); } + if (MiscUtil.isEmpty(current.getAttributes()) || !current.getAttributes().matches("[a-zA-Z]+(, ?[a-zA-Z]+)*")) { + log.info("AttributeProviderPlugin attributes are empty or do not match csv format."); + errors.add(LanguageHelper.getErrorString("validation.stork.ap.attributes.valid")); + } } return errors; |