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.jjobs.beans.phone;
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;
27 * An interface for a request web controller (bean) for administrative phone
30 * @author Roland Haeder<roland@mxchange.org>
33 public interface JobsAdminPhoneWebRequestController extends Serializable {
36 * Changes cellphone entry data
38 * @return Redirect outcome
40 String editCellphoneData ();
43 * Getter for dialable cellphone number instance
45 * @return Dialable cellphone number instance
47 DialableCellphoneNumber getCellPhoneNumber ();
50 * Setter for dialable cellphone number instance
52 * @param cellPhone Dialable cellphone number instance
54 void setCellPhoneNumber (final DialableCellphoneNumber cellPhone);
57 * Setter for dialable land-line number instance
59 * @param landLine Dialable land-line number instance
61 void setLandLine (final DialableLandLineNumber landLine);
64 * Getter for dialable land-line number instance
66 * @return Dialable land-line number instance
68 DialableLandLineNumber getLandLine ();
71 * Setter for dialable fax number instance
73 * @param fax Dialable fax number instance
75 void setFax (final DialableFaxNumber fax);
78 * Getter for dialable fax number instance
80 * @return Dialable fax number instance
82 DialableFaxNumber getFax ();
85 * Getter for cell phone provider
87 * @return Cell phone provider
89 MobileProvider getCellphoneProvider ();
92 * Setter for cell phone provider
94 * @param cellphoneProvider Cell phone provider
96 void setCellphoneProvider (final MobileProvider cellphoneProvider);
99 * Getter for dial number without prefix
101 * @return Dial number without prefix
103 Long getPhoneNumber ();
106 * Setter for dial number without prefix
108 * @param phoneNumber Dial number without prefix
110 void setPhoneNumber (final Long phoneNumber);