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.jjobs.beans.helper;
19 import java.io.Serializable;
20 import org.mxchange.jcontacts.contact.Contact;
21 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
22 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
23 import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
24 import org.mxchange.jusercore.model.user.User;
27 * An interface for general bean helper
29 * @author Roland Haeder<roland@mxchange.org>
31 public interface JobsWebRequestController extends Serializable {
34 * Copies currently set mobile instance's data to admin phone controller
36 void copyMobileNumberToController ();
39 * Copies currently set contact instance's data to adminContactController
41 void copyContactToController ();
44 * Copies currently set user instance's data to adminUserController
46 void copyUserToController ();
49 * Returns a message key depending on if this contact is a user and/or a
50 * contact. If this contact is unused, a default key is returned.
52 * @param contact Contact instance to check
56 String getContactUsageMessageKey (final Contact contact);
59 * Getter for contact instance
61 * @return Contact instance
63 Contact getContact ();
66 * Setter for contact instance
68 * @param contact Contact instance
70 void setContact (final Contact contact);
73 * Getter for user instance
75 * @return User instance
80 * Setter for user instance
82 * @param user User instance
84 void setUser (final User user);
87 * Getter for dialable mobile number
89 * @return Dialable mobile number
91 DialableMobileNumber getMobileNumber ();
94 * Setter for dialable mobile number
96 * @param mobileNumber Dialable mobile number
98 void setMobileNumber (final DialableMobileNumber mobileNumber);
101 * Getter for dialable land-line number
103 * @return Dialable land-line number
105 DialableLandLineNumber getLandLineNumber ();
108 * Setter for dialable land-line number
110 * @param landLine Dialable land-line number
112 void setLandLineNumber (final DialableLandLineNumber landLine);
115 * Getter for dialable fax number
117 * @return Dialable fax number
119 DialableFaxNumber getFaxNumber ();
122 * Setter for dialable fax number
124 * @param faxNumber Dialable fax number
126 void setFaxNumber (final DialableFaxNumber faxNumber);