]> git.mxchange.org Git - jfinancials-war.git/blob - src/java/org/mxchange/jfinancials/beans/business/basicdata/FinancialsBasicDataWebRequestBean.java
Updated copyright year
[jfinancials-war.git] / src / java / org / mxchange / jfinancials / beans / business / basicdata / FinancialsBasicDataWebRequestBean.java
1 /*
2  * Copyright (C) 2016 - 2022 Free Software Foundation
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 package org.mxchange.jfinancials.beans.business.basicdata;
18
19 import javax.ejb.EJB;
20 import javax.enterprise.context.RequestScoped;
21 import javax.inject.Inject;
22 import javax.inject.Named;
23 import org.mxchange.jcontactsbusiness.model.basicdata.AdminBasicCompanyDataSessionBeanRemote;
24 import org.mxchange.jcountry.model.data.Country;
25 import org.mxchange.jfinancials.beans.BaseFinancialsBean;
26 import org.mxchange.jfinancials.beans.user.login.FinancialsUserLoginWebSessionController;
27
28 /**
29  * A business contact bean (controller)
30  * <p>
31  * @author Roland Häder<roland@mxchange.org>
32  */
33 @Named ("basicDataController")
34 @RequestScoped
35 public class FinancialsBasicDataWebRequestBean extends BaseFinancialsBean implements FinancialsBasicDataWebRequestController {
36
37         /**
38          * Serial number
39          */
40         private static final long serialVersionUID = 56_189_028_928_371L;
41
42         /**
43          * EJB for administrative basic business data purposes
44          */
45         @EJB (lookup = "java:global/jfinancials-ejb/adminBasicCompanyData!org.mxchange.jcontactsbusiness.model.basicdata.AdminBasicCompanyDataSessionBeanRemote", description = "A stateless session bean for administrative purposes.")
46         private AdminBasicCompanyDataSessionBeanRemote adminBasicCompanyDataBean;
47
48         /**
49          * Comments for this company
50          */
51         private String companyComments;
52
53         /**
54          * Companies (main) email address (example: info@company.example)
55          */
56         private String companyEmailAddress;
57
58         /**
59          * Company cacheName
60          */
61         private String companyName;
62
63         /**
64          * Area code for fax number
65          */
66         private Integer faxAreaCode;
67
68         /**
69          * Country for fax number
70          */
71         private Country faxCountry;
72
73         /**
74          * Dial number for fax number
75          */
76         private Long faxNumber;
77
78         /**
79          * Area code for land-line number
80          */
81         private Integer landLineAreaCode;
82
83         /**
84          * Country for land-line number
85          */
86         private Country landLineCountry;
87
88         /**
89          * Dial number for land-line number
90          */
91         private Long landLineNumber;
92
93         /**
94          * User instance
95          */
96         @Inject
97         private FinancialsUserLoginWebSessionController userLoginController;
98
99         /**
100          * Constructor
101          */
102         public FinancialsBasicDataWebRequestBean () {
103                 // Call super constructor
104                 super();
105         }
106
107         /**
108          * Getter for comments
109          * <p>
110          * @return Comments
111          */
112         public String getCompanyComments () {
113                 return this.companyComments;
114         }
115
116         /**
117          * Setter for comments
118          * <p>
119          * @param companyComments Comments
120          */
121         public void setCompanyComments (final String companyComments) {
122                 this.companyComments = companyComments;
123         }
124
125         /**
126          * Getter for company's (main) email address
127          * <p>
128          * @return Company's (main) email address
129          */
130         public String getCompanyEmailAddress () {
131                 return this.companyEmailAddress;
132         }
133
134         /**
135          * Setter for company's (main) email address
136          * <p>
137          * @param companyEmailAddress Company's (main) email address
138          */
139         public void setCompanyEmailAddress (final String companyEmailAddress) {
140                 this.companyEmailAddress = companyEmailAddress;
141         }
142
143         /**
144          * Getter for company cacheName
145          * <p>
146          * @return Company cacheName
147          */
148         public String getCompanyName () {
149                 return this.companyName;
150         }
151
152         /**
153          * Setter for company cacheName
154          * <p>
155          * @param companyName Company cacheName
156          */
157         public void setCompanyName (final String companyName) {
158                 this.companyName = companyName;
159         }
160
161         /**
162          * Getter for fax number's area code
163          * <p>
164          * @return Fax number's area code
165          */
166         public Integer getFaxAreaCode () {
167                 return this.faxAreaCode;
168         }
169
170         /**
171          * Setter for fax number's area code
172          * <p>
173          * @param faxAreaCode Fax number's area code
174          */
175         public void setFaxAreaCode (final Integer faxAreaCode) {
176                 this.faxAreaCode = faxAreaCode;
177         }
178
179         /**
180          * Getter for fax's country instance
181          * <p>
182          * @return Fax' country instance
183          */
184         public Country getFaxCountry () {
185                 return this.faxCountry;
186         }
187
188         /**
189          * Setter for fax's country instance
190          * <p>
191          * @param faxCountry Fax' country instance
192          */
193         public void setFaxCountry (final Country faxCountry) {
194                 this.faxCountry = faxCountry;
195         }
196
197         /**
198          * Getter for fax number
199          * <p>
200          * @return Fax number
201          */
202         public Long getFaxNumber () {
203                 return this.faxNumber;
204         }
205
206         /**
207          * Setter for fax number
208          * <p>
209          * @param faxNumber Fax number
210          */
211         public void setFaxNumber (final Long faxNumber) {
212                 this.faxNumber = faxNumber;
213         }
214
215         /**
216          * Getter for land-line number's area code
217          * <p>
218          * @return Land-line number's area code
219          */
220         public Integer getLandLineAreaCode () {
221                 return this.landLineAreaCode;
222         }
223
224         /**
225          * Setter for land-line number's area code
226          * <p>
227          * @param landLineAreaCode Land-line number's area code
228          */
229         public void setLandLineAreaCode (final Integer landLineAreaCode) {
230                 this.landLineAreaCode = landLineAreaCode;
231         }
232
233         /**
234          * Getter for land-line number's country instance
235          * <p>
236          * @return Land-line number's country instance
237          */
238         public Country getLandLineCountry () {
239                 return this.landLineCountry;
240         }
241
242         /**
243          * Setter for land-line number's country instance
244          * <p>
245          * @param landLineCountry Land-line number's country instance
246          */
247         public void setLandLineCountry (final Country landLineCountry) {
248                 this.landLineCountry = landLineCountry;
249         }
250
251         /**
252          * Getter for land-line number
253          * <p>
254          * @return Land-line number
255          */
256         public Long getLandLineNumber () {
257                 return this.landLineNumber;
258         }
259
260         /**
261          * Setter for land-line number
262          * <p>
263          * @param landLineNumber Land-line number
264          */
265         public void setLandLineNumber (final Long landLineNumber) {
266                 this.landLineNumber = landLineNumber;
267         }
268
269         /**
270          * Clears this bean
271          */
272         private void clear () {
273                 // Clear all data:
274                 this.setCompanyComments(null);
275                 this.setCompanyEmailAddress(null);
276                 this.setCompanyName(null);
277                 this.setFaxAreaCode(null);
278                 this.setFaxCountry(null);
279                 this.setFaxNumber(null);
280                 this.setLandLineAreaCode(null);
281                 this.setLandLineCountry(null);
282                 this.setLandLineNumber(null);
283         }
284
285 }