]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestController.java
updated own name and resources
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / mobileprovider / PizzaAdminMobileProviderWebRequestController.java
1 /*
2  * Copyright (C) 2016 Roland Häder
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 package org.mxchange.pizzaapplication.beans.mobileprovider;
18
19 import java.io.Serializable;
20 import org.mxchange.jcountry.data.Country;
21
22 /**
23  * An interface for a request web controller (bean) for administrative mobile
24  * provider purposes.
25  * <p>
26  * @author Roland Häder<roland@mxchange.org>
27  */
28 public interface PizzaAdminMobileProviderWebRequestController extends Serializable {
29
30         /**
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.
34          * <p>
35          * @return Redirect outcome
36          */
37         String addMobileProvider ();
38
39         /**
40          * Getter for provider dial prefix
41          * <p>
42          * @return Provider dial prefix
43          */
44         Long getProviderDialPrefix ();
45
46         /**
47          * Setter for provider dial prefix
48          * <p>
49          * @param providerDialPrefix Provider dial prefix
50          */
51         void setProviderDialPrefix (final Long providerDialPrefix);
52
53         /**
54          * Getter for provider name
55          * <p>
56          * @return Provider name
57          */
58         String getProviderName ();
59
60         /**
61          * Setter for provider name
62          * <p>
63          * @param providerName Provider name
64          */
65         void setProviderName (final String providerName);
66
67         /**
68          * Getter for country instance ('s dial data)
69          * <p>
70          * @return Country instance
71          */
72         Country getProviderCountry ();
73
74         /**
75          * Setter for country instance ('s dial data)
76          * <p>
77          * @param country Country instance
78          */
79         void setProviderCountry (final Country country);
80
81         /**
82          * Getter for pattern for mail gateway
83          * <p>
84          * @return Pattern for mail gateway
85          */
86         String getProviderMailPattern ();
87
88         /**
89          * Setter for pattern for mail gateway
90          * <p>
91          * @param providerMailPattern Pattern for mail gateway
92          */
93         void setProviderMailPattern (final String providerMailPattern);
94
95 }