diff options
author | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-03-25 16:40:07 +0100 |
---|---|---|
committer | Florian Reimair <florian.reimair@iaik.tugraz.at> | 2014-03-25 17:14:41 +0100 |
commit | 8e6117d85cb13bacdbf11c74340bc529155fdf53 (patch) | |
tree | 3cf4fadb944882eb08b0cb61d776132bba6783b9 /id/ConfigWebTool/src/main/java | |
parent | 0925ae4c43b9eddfa6815c57b4e041d48600efea (diff) | |
download | moa-id-spss-8e6117d85cb13bacdbf11c74340bc529155fdf53.tar.gz moa-id-spss-8e6117d85cb13bacdbf11c74340bc529155fdf53.tar.bz2 moa-id-spss-8e6117d85cb13bacdbf11c74340bc529155fdf53.zip |
read cpeps per oa config from database
Diffstat (limited to 'id/ConfigWebTool/src/main/java')
-rw-r--r-- | id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java index 482c7a13b..9eca86976 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java @@ -77,12 +77,13 @@ public class OASTORKConfig { } // fetch available citizen countries -// citizenCountries = new ArrayList<CPEPS>(ConfigurationDBRead.getMOAIDConfiguration().getAuthComponentGeneral().getForeignIdentities().getSTORK().getCPEPS()); citizenCountries = new ArrayList<String>(); for(CPEPS current : ConfigurationDBRead.getMOAIDConfiguration().getAuthComponentGeneral().getForeignIdentities().getSTORK().getCPEPS()) { citizenCountries.add(current.getCountryCode()); } - enabledCitizenCountries = new ArrayList<String>(citizenCountries.subList(2, 4)); + enabledCitizenCountries = new ArrayList<String>(); + for(CPEPS current : config.getCPEPS()) + enabledCitizenCountries.add(current.getCountryCode()); // prepare attribute helper list attributes = new ArrayList<AttributeHelper>(); |