3 * Copyright (C) 2016 Roland Haeder
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
15 * You should have received a copy of the GNU Affero General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package org.mxchange.jjobs.beans.contact.phone;
20 import java.io.Serializable;
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 JobsAdminContactPhoneWebRequestController extends Serializable {
36 * Unlinks fax data with current contact
38 * @return Redirect outcome
40 String unlinkFaxContactData ();
43 * Unlinks land-line data with current contact
45 * @return Redirect outcome
47 String unlinkLandLineContactData ();
50 * Unlinks mobile data with current contact
52 * @return Redirect outcome
54 String unlinkMobileContactData ();
57 * Event observer for newly added users by adminstrator
59 * @param event Event being fired
61 void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
64 * Observes events being fired when an administrator has added a new
67 * @param event Event being fired
69 void afterAdminAddedContact (final AdminAddedContactEvent event);
72 * Event observer for updated contact data by administrators
74 * @param event Updated contact data event
76 void afterAdminUpdatedContactDataEvent (final AdminUpdatedContactEvent event);
79 * Links given contact instance with setted fax number or entered data. If
80 * both is set, a proper exception is thrown as this is an invalid state.
82 * @param contact Contact instance to link with existing/new data
84 * @return Redirect outcome
86 String doLinkAddFaxNumber (final Contact contact);
89 * Links given contact instance with setted land-line number or entered
90 * data. If both is set, a proper exception is thrown as this is an invalid
93 * @param contact Contact instance to link with existing/new data
95 * @return Redirect outcome
97 String doLinkAddLandLineNumber (final Contact contact);
100 * Links given contact instance with setted mobile or entered data. If both
101 * is set, a proper exception is thrown as this is an invalid state.
103 * @param contact Contact instance to link with existing/new data
105 * @return Redirect outcome
107 String doLinkAddMobileNumber (final Contact contact);