]> git.mxchange.org Git - jjobs-war.git/blob - src/java/org/mxchange/jjobs/beans/phone/JobsAdminPhoneWebRequestController.java
b2e1d8ce51456f6628b9b3f2637f265c34ef1bbe
[jjobs-war.git] / src / java / org / mxchange / jjobs / beans / phone / JobsAdminPhoneWebRequestController.java
1 /*
2  * Copyright (C) 2016 Roland Haeder
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.jjobs.beans.phone;
18
19 import java.io.Serializable;
20 import javax.ejb.Local;
21 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
22 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
23 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
24 import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
25
26 /**
27  * An interface for a request web controller (bean) for administrative phone
28  * number purposes.
29  * <p>
30  * @author Roland Haeder<roland@mxchange.org>
31  */
32 @Local
33 public interface JobsAdminPhoneWebRequestController extends Serializable {
34
35         /**
36          * Changes cellphone entry data
37          * <p>
38          * @return Redirect outcome
39          */
40         String editCellphoneData ();
41
42         /**
43          * Getter for dialable cellphone number instance
44          * <p>
45          * @return Dialable cellphone number instance
46          */
47         DialableCellphoneNumber getCellPhoneNumber ();
48
49         /**
50          * Setter for dialable cellphone number instance
51          * <p>
52          * @param cellPhone Dialable cellphone number instance
53          */
54         void setCellPhoneNumber (final DialableCellphoneNumber cellPhone);
55
56         /**
57          * Setter for dialable land-line number instance
58          * <p>
59          * @param landLine Dialable land-line number instance
60          */
61         void setLandLine (final DialableLandLineNumber landLine);
62
63         /**
64          * Getter for dialable land-line number instance
65          * <p>
66          * @return Dialable land-line number instance
67          */
68         DialableLandLineNumber getLandLine ();
69
70         /**
71          * Setter for dialable fax number instance
72          * <p>
73          * @param fax Dialable fax number instance
74          */
75         void setFax (final DialableFaxNumber fax);
76
77         /**
78          * Getter for dialable fax number instance
79          * <p>
80          * @return Dialable fax number instance
81          */
82         DialableFaxNumber getFax ();
83
84         /**
85          * Getter for cell phone provider
86          * <p>
87          * @return Cell phone provider
88          */
89         MobileProvider getCellphoneProvider ();
90
91         /**
92          * Setter for cell phone provider
93          * <p>
94          * @param cellphoneProvider Cell phone provider
95          */
96         void setCellphoneProvider (final MobileProvider cellphoneProvider);
97
98         /**
99          * Getter for dial number without prefix
100          * <p>
101          * @return Dial number without prefix
102          */
103         Long getPhoneNumber ();
104
105         /**
106          * Setter for dial number without prefix
107          * <p>
108          * @param phoneNumber Dial number without prefix
109          */
110         void setPhoneNumber (final Long phoneNumber);
111
112 }