]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/pizzaapplication/beans/contact/phone/PizzaAdminContactPhoneWebRequestController.java
Continued a bit:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / contact / phone / PizzaAdminContactPhoneWebRequestController.java
1
2 /*
3  * Copyright (C) 2016, 2017 Roland Häder
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.pizzaapplication.beans.contact.phone;
19
20 import java.io.Serializable;
21 import javax.ejb.Local;
22 import org.mxchange.jcontacts.contact.Contact;
23
24 /**
25  * An interface for user beans
26  * <p>
27  * @author Roland Häder<roland@mxchange.org>
28  */
29 @Local
30 public interface PizzaAdminContactPhoneWebRequestController extends Serializable {
31
32         /**
33          * Unlinks fax data with current contact
34          * <p>
35          * @return Redirect outcome
36          */
37         String unlinkFaxContactData ();
38
39         /**
40          * Unlinks land-line data with current contact
41          * <p>
42          * @return Redirect outcome
43          */
44         String unlinkLandLineContactData ();
45
46         /**
47          * Unlinks mobile data with current contact
48          * <p>
49          * @return Redirect outcome
50          */
51         String unlinkMobileContactData ();
52
53         /**
54          * Links given contact instance with set fax number or entered data. If
55          * both is set, a proper exception is thrown as this is an invalid state.
56          * <p>
57          * @param contact Contact instance to link with existing/new data
58          * <p>
59          * @return Redirect outcome
60          */
61         String doLinkAddFaxNumber (final Contact contact);
62
63         /**
64          * Links given contact instance with set land-line number or entered
65          * data. If both is set, a proper exception is thrown as this is an invalid
66          * state.
67          * <p>
68          * @param contact Contact instance to link with existing/new data
69          * <p>
70          * @return Redirect outcome
71          */
72         String doLinkAddLandLineNumber (final Contact contact);
73
74         /**
75          * Links given contact instance with set mobile or entered data. If both
76          * is set, a proper exception is thrown as this is an invalid state.
77          * <p>
78          * @param contact Contact instance to link with existing/new data
79          * <p>
80          * @return Redirect outcome
81          */
82         String doLinkAddMobileNumber (final Contact contact);
83
84 }