2 * Copyright (C) 2016 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation, either version 3 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
14 * You should have received a copy of the GNU Affero General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.addressbook.beans.country;
19 import java.io.Serializable;
20 import java.util.List;
21 import org.mxchange.jcountry.data.Country;
24 * An interface for administrative country beans
26 * @author Roland Haeder<roland@mxchange.org>
28 public interface AddressbookAdminCountryWebApplicationController extends Serializable {
31 * A list of all countries
33 * @return All countries
35 List<Country> allCountries ();
38 * Adds country to all relevant beans and sends it to the EJB.
43 * Checks whether countries has been registered
45 * @return Whether countries has been registered
47 boolean hasCountries ();
50 * Getter for abroad dial prefix
52 * @return Abroad dial prefix
54 String getCountryAbroadDialPrefix ();
57 * Setter for abroad dial prefix
59 * @param countryAbroadDialPrefix Abroad dial prefix
61 void setCountryAbroadDialPrefix (final String countryAbroadDialPrefix);
64 * Getter for 2-characters country code
66 * @return Country code
68 String getCountryCode ();
71 * Setter for 2-characters country code
73 * @param countryCode Country code
75 void setCountryCode (final String countryCode);
78 * Getter for i18n key for country name
80 * @return i18n key for country name
82 String getCountryI18nKey ();
85 * Setter for i18n key for country name
87 * @param countryI18nKey i18n key for country name
89 void setCountryI18nKey (final String countryI18nKey);
92 * Getter for whether the local dial prefix is required for local calls
94 * @return Whether the local dial prefix is required
96 Boolean getCountryIsLocalPrefixRequired ();
99 * Setter for whether the local dial prefix is required for local calls
101 * @param countryIsLocalPrefixRequired Whether the local dial prefix is
104 void setCountryIsLocalPrefixRequired (final Boolean countryIsLocalPrefixRequired);
107 * Getter for external dial prefix
109 * @return External dial prefix
111 String getCountryExternalDialPrefix ();
114 * Setter for external dial prefix
116 * @param countryExternalDialPrefix External dial prefix
118 void setCountryExternalDialPrefix (final String countryExternalDialPrefix);
121 * Getter for country code (example: 49 for Germany, 63 for Philippines)
123 * @return Dial number without prefix
125 Short getCountryPhoneCode ();
128 * Setter for country code (example: 49 for Germany, 63 for Philippines)
130 * @param countryPhoneCode Country code
132 void setCountryPhoneCode (final Short countryPhoneCode);