]> git.mxchange.org Git - jjobs-war.git/blob - src/java/org/mxchange/jjobs/beans/phone/JobsPhoneWebApplicationController.java
Please cherry-pick:
[jjobs-war.git] / src / java / org / mxchange / jjobs / beans / phone / JobsPhoneWebApplicationController.java
1 /*
2  * Copyright (C) 2016, 2017 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.jjobs.beans.phone;
18
19 import java.io.Serializable;
20 import java.util.List;
21 import javax.ejb.Local;
22 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
23 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
24 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
25
26 /**
27  * An interface for a request web controller (bean) for administrative phone
28  * number purposes.
29  * <p>
30  * @author Roland Häder<roland@mxchange.org>
31  */
32 @Local
33 public interface JobsPhoneWebApplicationController extends Serializable {
34
35         /**
36          * Returns a list of all mobile numbers. For performance reasons, the
37          * controller (bean) should be application-scoped as from user to user
38          * nothing changes. And the controller's post-construct method should load
39          * all numbers and cache it in the controller.
40          * <p>
41          * @return List of all mobile numbers
42          */
43         List<DialableMobileNumber> allMobileNumbers ();
44
45         /**
46          * Returns a list of all fax numbers. For performance reasons, the
47          * controller (bean) should be application-scoped as from user to user
48          * nothing changes. And the controller's post-construct method should load
49          * all numbers and cache it in the controller.
50          * <p>
51          * @return List of all fax numbers
52          */
53         List<DialableFaxNumber> allFaxNumbers ();
54
55         /**
56          * Returns a list of all land-line numbers. For performance reasons, the
57          * controller (bean) should be application-scoped as from user to user
58          * nothing changes. And the controller's post-construct method should load
59          * all numbers and cache it in the controller.
60          * <p>
61          * @return List of all land-line numbers
62          */
63         List<DialableLandLineNumber> allLandLineNumbers ();
64
65 }