]> git.mxchange.org Git - jjobs-war.git/blob - src/java/org/mxchange/jjobs/beans/contact/phone/JobsContactPhoneWebSessionController.java
Continued with cell phone: (please cherry-pick)
[jjobs-war.git] / src / java / org / mxchange / jjobs / beans / contact / phone / JobsContactPhoneWebSessionController.java
1 /*
2  * Copyright (C) 2016 Roland Haeder
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.contact.phone;
18
19 import java.io.Serializable;
20 import java.util.List;
21 import javax.ejb.Local;
22 import org.mxchange.jcontacts.contact.Contact;
23 import org.mxchange.jcontacts.events.contact.add.AdminAddedContactEvent;
24 import org.mxchange.jcontacts.events.contact.update.AdminUpdatedContactEvent;
25 import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
26
27 /**
28  * An interface for user beans
29  * <p>
30  * @author Roland Haeder<roland@mxchange.org>
31  */
32 @Local
33 public interface JobsContactPhoneWebSessionController extends Serializable {
34
35         /**
36          * Minimum password length
37          */
38         public static final Integer MINIMUM_PASSWORD_LENGTH = 5;
39
40         /**
41          * Getter for all contacts having current cellphone instance linked
42          * <p>
43          * @return List of all linked contacts
44          */
45         List<Contact> allCellphoneContacts ();
46
47         /**
48          * Event observer for newly added users by adminstrator
49          * <p>
50          * @param event Event being fired
51          */
52         void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
53
54         /**
55          * Observes events being fired when an administrator has added a new
56          * contact.
57          * <p>
58          * @param event Event being fired
59          */
60         void afterAdminAddedContact (final AdminAddedContactEvent event);
61
62         /**
63          * Event observer for updated contact data by administrators
64          * <p>
65          * @param event Updated contact data event
66          */
67         void afterAdminUpdatedContactDataEvent (final AdminUpdatedContactEvent event);
68
69 }