3 * Copyright (C) 2016 Roland Häder
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.addressbook.beans.contact.phone;
20 import java.io.Serializable;
21 import javax.ejb.Local;
22 import org.mxchange.jcontacts.contact.Contact;
25 * An interface for user beans
27 * @author Roland Häder<roland@mxchange.org>
30 public interface AddressbookAdminContactPhoneWebRequestController extends Serializable {
33 * Unlinks fax data with current contact
35 * @return Redirect outcome
37 String unlinkFaxContactData ();
40 * Unlinks land-line data with current contact
42 * @return Redirect outcome
44 String unlinkLandLineContactData ();
47 * Unlinks mobile data with current contact
49 * @return Redirect outcome
51 String unlinkMobileContactData ();
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.
57 * @param contact Contact instance to link with existing/new data
59 * @return Redirect outcome
61 String doLinkAddFaxNumber (final Contact contact);
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
68 * @param contact Contact instance to link with existing/new data
70 * @return Redirect outcome
72 String doLinkAddLandLineNumber (final Contact contact);
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.
78 * @param contact Contact instance to link with existing/new data
80 * @return Redirect outcome
82 String doLinkAddMobileNumber (final Contact contact);