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.addressbook.beans.contact.phone;
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;
28 * An interface for user beans
30 * @author Roland Haeder<roland@mxchange.org>
33 public interface AddressbookContactPhoneWebSessionController extends Serializable {
36 * Minimum password length
38 public static final Integer MINIMUM_PASSWORD_LENGTH = 5;
41 * Getter for all contacts having current cellphone instance linked
43 * @return List of all linked contacts
45 List<Contact> allCellphoneContacts ();
48 * Event observer for newly added users by adminstrator
50 * @param event Event being fired
52 void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
55 * Observes events being fired when an administrator has added a new
58 * @param event Event being fired
60 void afterAdminAddedContact (final AdminAddedContactEvent event);
63 * Event observer for updated contact data by administrators
65 * @param event Updated contact data event
67 void afterAdminUpdatedContactDataEvent (final AdminUpdatedContactEvent event);