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 javax.ejb.Local;
22 import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
23 import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
24 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
25 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
26 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
27 import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
30 * An interface for a request web controller (bean) for administrative phone
33 * @author Roland Haeder<roland@mxchange.org>
36 public interface JobsPhoneWebApplicationController extends Serializable {
39 * Event observer for newly added users by adminstrator
41 * @param event Event being fired
43 void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
46 * Observes events being fired when an administrator has added a new
49 * @param event Event being fired
51 void afterAdminAddedContact (final AdminAddedContactEvent event);
54 * Event observer for updated contact data by administrators
56 * @param event Updated contact data event
58 void afterAdminUpdatedContactDataEvent (final AdminUpdatedContactEvent event);
61 * Returns a list of all cellphone numbers. For performance reasons, the
62 * controller (bean) should be application-scoped as from user to user
63 * nothing changes. And the controller's post-construct method should load
64 * all numbers and cache it in the controller.
66 * @return List of all cell phone numbers
68 List<DialableCellphoneNumber> allCellphoneNumbers ();
71 * Returns a list of all fax numbers. For performance reasons, the
72 * controller (bean) should be application-scoped as from user to user
73 * nothing changes. And the controller's post-construct method should load
74 * all numbers and cache it in the controller.
76 * @return List of all fax numbers
78 List<DialableFaxNumber> allFaxNumbers ();
81 * Returns a list of all land-line numbers. For performance reasons, the
82 * controller (bean) should be application-scoped as from user to user
83 * nothing changes. And the controller's post-construct method should load
84 * all numbers and cache it in the controller.
86 * @return List of all land-line numbers
88 List<DialableLandLineNumber> allLandLineNumbers ();