aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main/java/at/gv
diff options
context:
space:
mode:
authorFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-03-25 16:27:19 +0100
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2014-03-25 17:14:41 +0100
commit489f9404bf0f37692946e992614c5515d1af935d (patch)
tree8e7bc47489e8462dd82e78e67c7f6ac512cdfa15 /id/ConfigWebTool/src/main/java/at/gv
parent5eb2500909f82759d114f910ca37393e3f8639ba (diff)
downloadmoa-id-spss-489f9404bf0f37692946e992614c5515d1af935d.tar.gz
moa-id-spss-489f9404bf0f37692946e992614c5515d1af935d.tar.bz2
moa-id-spss-489f9404bf0f37692946e992614c5515d1af935d.zip
selection gets reported to config
Diffstat (limited to 'id/ConfigWebTool/src/main/java/at/gv')
-rw-r--r--id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java22
1 files changed, 17 insertions, 5 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 c9d4fc2ee..12d7faac6 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
@@ -49,7 +49,8 @@ public class OASTORKConfig {
private boolean vidpEnabled = false;
private List<AttributeProviderPlugin> attributeProviderPlugins = new ArrayList<AttributeProviderPlugin>();
private boolean requireConsent = false;
- private List<CPEPS> citizenCountries;
+ private List<String> citizenCountries;
+ private List<String> enabledCitizenCountries;
public OASTORKConfig() {
@@ -76,9 +77,12 @@ public class OASTORKConfig {
}
// fetch available citizen countries
- citizenCountries = new ArrayList<CPEPS>(ConfigurationDBRead.getMOAIDConfiguration().getAuthComponentGeneral().getForeignIdentities().getSTORK().getCPEPS());
-
-
+// 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));
// prepare attribute helper list
attributes = new ArrayList<AttributeHelper>();
@@ -160,10 +164,18 @@ public class OASTORKConfig {
this.attributes = attributes;
}
- public List<CPEPS> getAvailableCitizenCountries() {
+ public List<String> getAvailableCitizenCountries() {
return citizenCountries;
}
+ public List<String> getEnabledCitizenCountries() {
+ return enabledCitizenCountries;
+ }
+
+ public void setEnabledCitizenCountries(List<String> update) {
+ enabledCitizenCountries = update;
+ }
+
public List<String> getAvailableAttributeProviderPlugins() {
return AttributeProviderFactory.getAvailablePlugins();
}