]> git.mxchange.org Git - jjobs-war.git/blob - src/java/org/mxchange/jjobs/beans/contact/phone/JobsAdminContactPhoneWebRequestController.java
Please cherry-pick:
[jjobs-war.git] / src / java / org / mxchange / jjobs / beans / contact / phone / JobsAdminContactPhoneWebRequestController.java
1
2 /*
3  * Copyright (C) 2016 Roland Haeder
4  *
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.
9  *
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.
14  *
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/>.
17  */
18 package org.mxchange.jjobs.beans.contact.phone;
19
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;
26
27 /**
28  * An interface for user beans
29  * <p>
30  * @author Roland Haeder<roland@mxchange.org>
31  */
32 @Local
33 public interface JobsAdminContactPhoneWebRequestController extends Serializable {
34
35         /**
36          * Unlinks fax data with current contact
37          * <p>
38          * @return Redirect outcome
39          */
40         String unlinkFaxContactData ();
41
42         /**
43          * Unlinks land-line data with current contact
44          * <p>
45          * @return Redirect outcome
46          */
47         String unlinkLandLineContactData ();
48
49         /**
50          * Unlinks mobile data with current contact
51          * <p>
52          * @return Redirect outcome
53          */
54         String unlinkMobileContactData ();
55
56         /**
57          * Event observer for newly added users by adminstrator
58          * <p>
59          * @param event Event being fired
60          */
61         void afterAdminAddedUserEvent (final AdminAddedUserEvent event);
62
63         /**
64          * Observes events being fired when an administrator has added a new
65          * contact.
66          * <p>
67          * @param event Event being fired
68          */
69         void afterAdminAddedContact (final AdminAddedContactEvent event);
70
71         /**
72          * Event observer for updated contact data by administrators
73          * <p>
74          * @param event Updated contact data event
75          */
76         void afterAdminUpdatedContactDataEvent (final AdminUpdatedContactEvent event);
77
78         /**
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.
81          * <p>
82          * @param contact Contact instance to link with existing/new data
83          * <p>
84          * @return Redirect outcome
85          */
86         String doLinkAddFaxNumber (final Contact contact);
87
88         /**
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
91          * state.
92          * <p>
93          * @param contact Contact instance to link with existing/new data
94          * <p>
95          * @return Redirect outcome
96          */
97         String doLinkAddLandLineNumber (final Contact contact);
98
99         /**
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.
102          * <p>
103          * @param contact Contact instance to link with existing/new data
104          * <p>
105          * @return Redirect outcome
106          */
107         String doLinkAddMobileNumber (final Contact contact);
108
109 }