From 489f9404bf0f37692946e992614c5515d1af935d Mon Sep 17 00:00:00 2001 From: Florian Reimair Date: Tue, 25 Mar 2014 16:27:19 +0100 Subject: selection gets reported to config --- .../id/configuration/data/oa/OASTORKConfig.java | 22 +++++++++++++++++----- .../src/main/webapp/jsp/editOAGeneral.jsp | 4 +--- 2 files changed, 18 insertions(+), 8 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 attributeProviderPlugins = new ArrayList(); private boolean requireConsent = false; - private List citizenCountries; + private List citizenCountries; + private List enabledCitizenCountries; public OASTORKConfig() { @@ -76,9 +77,12 @@ public class OASTORKConfig { } // fetch available citizen countries - citizenCountries = new ArrayList(ConfigurationDBRead.getMOAIDConfiguration().getAuthComponentGeneral().getForeignIdentities().getSTORK().getCPEPS()); - - +// citizenCountries = new ArrayList(ConfigurationDBRead.getMOAIDConfiguration().getAuthComponentGeneral().getForeignIdentities().getSTORK().getCPEPS()); + citizenCountries = new ArrayList(); + for(CPEPS current : ConfigurationDBRead.getMOAIDConfiguration().getAuthComponentGeneral().getForeignIdentities().getSTORK().getCPEPS()) { + citizenCountries.add(current.getCountryCode()); + } + enabledCitizenCountries = new ArrayList(citizenCountries.subList(2, 4)); // prepare attribute helper list attributes = new ArrayList(); @@ -160,10 +164,18 @@ public class OASTORKConfig { this.attributes = attributes; } - public List getAvailableCitizenCountries() { + public List getAvailableCitizenCountries() { return citizenCountries; } + public List getEnabledCitizenCountries() { + return enabledCitizenCountries; + } + + public void setEnabledCitizenCountries(List update) { + enabledCitizenCountries = update; + } + public List getAvailableAttributeProviderPlugins() { return AttributeProviderFactory.getAvailablePlugins(); } diff --git a/id/ConfigWebTool/src/main/webapp/jsp/editOAGeneral.jsp b/id/ConfigWebTool/src/main/webapp/jsp/editOAGeneral.jsp index ac433a47a..cd3eca67d 100644 --- a/id/ConfigWebTool/src/main/webapp/jsp/editOAGeneral.jsp +++ b/id/ConfigWebTool/src/main/webapp/jsp/editOAGeneral.jsp @@ -389,9 +389,7 @@ key="webpages.moaconfig.stork.qaa" labelposition="left" />

wählbare Zielländer

- - - +

<%=LanguageHelper.getGUIString("webpages.oaconfig.stork.attributes.header", request) %>

-- cgit v1.2.3
<%=LanguageHelper.getGUIString("webpages.oaconfig.stork.attributes.used", request) %>