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 java.util.List;
21 import org.mxchange.jcontacts.contact.Contact;
22 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
23 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
24 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
27 * An interface for a request web controller (bean) for administrative phone
30 * @author Roland Haeder<roland@mxchange.org>
32 public interface JobsAdminContactPhoneWebSessionController extends Serializable {
35 * Getter for all contacts having current cellphone instance linked
37 * @return List of all linked contacts
40 List<Contact> allCellphoneContacts ();
43 * Getter for dialable cellphone number instance
45 * @return Dialable cellphone number instance
47 DialableCellphoneNumber getCellPhone ();
50 * Setter for dialable land-line number instance
52 * @param landLine Dialable land-line number instance
54 void setLandLine (final DialableLandLineNumber landLine);
57 * Getter for dialable land-line number instance
59 * @return Dialable land-line number instance
61 DialableLandLineNumber getLandLine ();
64 * Setter for dialable fax number instance
66 * @param fax Dialable fax number instance
68 void setFax (final DialableFaxNumber fax);
71 * Getter for dialable fax number instance
73 * @return Dialable fax number instance
75 DialableFaxNumber getFax ();
78 * Setter for dialable cellphone number instance
80 * @param cellPhone Dialable cellphone number instance
82 void setCellPhone (final DialableCellphoneNumber cellPhone);
85 * Getter for linked contact account
87 * @return Linked contact account
90 Contact getContact ();
93 * Setter for linked contact account
95 * @param contact Linked contact account
98 void setContact (final Contact contact);