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.jjobs.beans.phone;
19 import java.io.Serializable;
20 import java.util.List;
21 import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
22 import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber;
23 import org.mxchange.jphone.phonenumbers.model.mobile.DialableMobileNumber;
26 * An interface for a request web controller (bean) for administrative phone
29 * @author Roland Häder<roland@mxchange.org>
31 public interface JobsPhoneWebRequestController extends Serializable {
34 * Returns a list of all mobile numbers. For performance reasons, the
35 * controller (bean) should be application-scoped as from user to user
36 * nothing changes. And the controller's post-construct method should load
37 * all numbers and cache it in the controller.
39 * @return List of all mobile numbers
41 List<DialableMobileNumber> allMobileNumbers ();
44 * Returns a list of all fax numbers. For performance reasons, the
45 * controller (bean) should be application-scoped as from user to user
46 * nothing changes. And the controller's post-construct method should load
47 * all numbers and cache it in the controller.
49 * @return List of all fax numbers
51 List<DialableFaxNumber> allFaxNumbers ();
54 * Returns a list of all land-line numbers. For performance reasons, the
55 * controller (bean) should be application-scoped as from user to user
56 * nothing changes. And the controller's post-construct method should load
57 * all numbers and cache it in the controller.
59 * @return List of all land-line numbers
61 List<DialableLandLineNumber> allLandLineNumbers ();