2 * Copyright (C) 2016 Roland Häder
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.jjobs.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 Häder<roland@mxchange.org>
28 public interface JobsAdminCountryWebRequestController 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. A redirect
39 * should happen after successfull creation.
41 * @return Redirect outcome
46 * Checks whether countries has been registered
48 * @return Whether countries has been registered
50 boolean hasCountries ();
53 * Getter for abroad dial prefix
55 * @return Abroad dial prefix
57 String getCountryAbroadDialPrefix ();
60 * Setter for abroad dial prefix
62 * @param countryAbroadDialPrefix Abroad dial prefix
64 void setCountryAbroadDialPrefix (final String countryAbroadDialPrefix);
67 * Getter for 2-characters country code
69 * @return Country code
71 String getCountryCode ();
74 * Setter for 2-characters country code
76 * @param countryCode Country code
78 void setCountryCode (final String countryCode);
81 * Getter for i18n key for country name
83 * @return i18n key for country name
85 String getCountryI18nKey ();
88 * Setter for i18n key for country name
90 * @param countryI18nKey i18n key for country name
92 void setCountryI18nKey (final String countryI18nKey);
95 * Getter for whether the local dial prefix is required for local calls
97 * @return Whether the local dial prefix is required
99 Boolean getCountryIsLocalPrefixRequired ();
102 * Setter for whether the local dial prefix is required for local calls
104 * @param countryIsLocalPrefixRequired Whether the local dial prefix is
107 void setCountryIsLocalPrefixRequired (final Boolean countryIsLocalPrefixRequired);
110 * Getter for external dial prefix
112 * @return External dial prefix
114 String getCountryExternalDialPrefix ();
117 * Setter for external dial prefix
119 * @param countryExternalDialPrefix External dial prefix
121 void setCountryExternalDialPrefix (final String countryExternalDialPrefix);
124 * Getter for country code (example: 49 for Germany, 63 for Philippines)
126 * @return Dial number without prefix
128 Short getCountryPhoneCode ();
131 * Setter for country code (example: 49 for Germany, 63 for Philippines)
133 * @param countryPhoneCode Country code
135 void setCountryPhoneCode (final Short countryPhoneCode);