import org.mxchange.jcountry.events.AdminAddedCountryEvent;
import org.mxchange.jcountry.events.AdminEventCountryAdded;
import org.mxchange.jcountry.exceptions.CountryAlreadyAddedException;
+import org.mxchange.jjobs.beans.BaseJobsController;
/**
* An administrative country bean
*/
@Named ("adminCountryController")
@RequestScoped
-public class JobsAdminCountryWebRequestBean implements JobsAdminCountryWebRequestController {
+public class JobsAdminCountryWebRequestBean extends BaseJobsController implements JobsAdminCountryWebRequestController {
/**
* Serial number
country.setCountryAbroadDialPrefix(this.getCountryAbroadDialPrefix());
country.setCountryCode(this.getCountryCode());
country.setCountryExternalDialPrefix(this.getCountryExternalDialPrefix());
- country.setCountryI18nkey(this.getCountryI18nKey());
+ country.setCountryI18nKey(this.getCountryI18nKey());
country.setCountryIsLocalPrefixRequired(this.getCountryIsLocalPrefixRequired());
country.setCountryPhoneCode(this.getCountryPhoneCode());
Country next = iterator.next();
// Is country code or i18n the same?
- if ((Objects.equals(country.getCountryCode(), next.getCountryCode())) || (Objects.equals(country.getCountryI18nkey(), next.getCountryI18nkey()))) {
+ if ((Objects.equals(country.getCountryCode(), next.getCountryCode())) || (Objects.equals(country.getCountryI18nKey(), next.getCountryI18nKey()))) {
// Yes, then abort search
isAdded = true;
break;