2 * Copyright (C) 2016, 2017 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.addressbook.beans.mobileprovider;
19 import java.io.Serializable;
20 import org.mxchange.jcountry.data.Country;
23 * An interface for a request web controller (bean) for administrative mobile
26 * @author Roland Häder<roland@mxchange.org>
28 public interface AddressbookAdminMobileProviderWebRequestController extends Serializable {
31 * Adds a mobile provider to database by calling the EJB. A pre-check on
32 * dial-prefix and country combination is done, if found, an exception is
33 * thrown. A redirect should take place after successfull creation.
35 * @return Redirect outcome
37 String addMobileProvider ();
40 * Getter for provider dial prefix
42 * @return Provider dial prefix
44 Long getProviderDialPrefix ();
47 * Setter for provider dial prefix
49 * @param providerDialPrefix Provider dial prefix
51 void setProviderDialPrefix (final Long providerDialPrefix);
54 * Getter for provider name
56 * @return Provider name
58 String getProviderName ();
61 * Setter for provider name
63 * @param providerName Provider name
65 void setProviderName (final String providerName);
68 * Getter for country instance ('s dial data)
70 * @return Country instance
72 Country getProviderCountry ();
75 * Setter for country instance ('s dial data)
77 * @param country Country instance
79 void setProviderCountry (final Country country);
82 * Getter for pattern for mail gateway
84 * @return Pattern for mail gateway
86 String getProviderMailPattern ();
89 * Setter for pattern for mail gateway
91 * @param providerMailPattern Pattern for mail gateway
93 void setProviderMailPattern (final String providerMailPattern);