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;
22 * An interface for administrative country beans
24 * @author Roland Haeder<roland@mxchange.org>
26 public interface AddressbookAdminCountryWebRequestController extends Serializable {
29 * Adds country to all relevant beans and sends it to the EJB. A redirect
30 * should happen after successfull creation.
32 * @return Redirect outcome
37 * Getter for abroad dial prefix
39 * @return Abroad dial prefix
41 String getCountryAbroadDialPrefix ();
44 * Setter for abroad dial prefix
46 * @param countryAbroadDialPrefix Abroad dial prefix
48 void setCountryAbroadDialPrefix (final String countryAbroadDialPrefix);
51 * Getter for 2-characters country code
53 * @return Country code
55 String getCountryCode ();
58 * Setter for 2-characters country code
60 * @param countryCode Country code
62 void setCountryCode (final String countryCode);
65 * Getter for i18n key for country name
67 * @return i18n key for country name
69 String getCountryI18nKey ();
72 * Setter for i18n key for country name
74 * @param countryI18nKey i18n key for country name
76 void setCountryI18nKey (final String countryI18nKey);
79 * Getter for whether the local dial prefix is required for local calls
81 * @return Whether the local dial prefix is required
83 Boolean getCountryIsLocalPrefixRequired ();
86 * Setter for whether the local dial prefix is required for local calls
88 * @param countryIsLocalPrefixRequired Whether the local dial prefix is
91 void setCountryIsLocalPrefixRequired (final Boolean countryIsLocalPrefixRequired);
94 * Getter for external dial prefix
96 * @return External dial prefix
98 String getCountryExternalDialPrefix ();
101 * Setter for external dial prefix
103 * @param countryExternalDialPrefix External dial prefix
105 void setCountryExternalDialPrefix (final String countryExternalDialPrefix);
108 * Getter for country code (example: 49 for Germany, 63 for Philippines)
110 * @return Dial number without prefix
112 Short getCountryPhoneCode ();
115 * Setter for country code (example: 49 for Germany, 63 for Philippines)
117 * @param countryPhoneCode Country code
119 void setCountryPhoneCode (final Short countryPhoneCode);