package at.gv.egiz.eidas.specific.connector.processes; import org.apache.commons.lang3.StringUtils; import at.gv.egiz.eaaf.core.api.idp.auth.modules.AuthModule; import at.gv.egiz.eaaf.core.api.idp.process.ExecutionContext; import at.gv.egiz.eidas.specific.connector.MSeIDASNodeConstants; /** * @author tlenz * */ public class CountrySelectionProcessImpl implements AuthModule { @Override public int getPriority() { return 0; } @Override public String selectProcess(ExecutionContext context) { Object selectedCountryObj = context.get(MSeIDASNodeConstants.REQ_PARAM_SELECTED_COUNTRY); if (selectedCountryObj != null && selectedCountryObj instanceof String) { String selectedCountry = (String) selectedCountryObj; if (StringUtils.isNotEmpty(selectedCountry)) return null; } return "CountrySelectionProcess"; } @Override public String[] getProcessDefinitions() { return new String[] { "classpath:processes/CountrySelection.process.xml" }; } }