]> git.mxchange.org Git - jfinancials-war.git/blob
94d88e7bce40119f99d446a46174a486bdded8a2
[jfinancials-war.git] /
1 /*
2  * Copyright (C) 2017 Roland Häder
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.branchoffice;
18
19 import javax.ejb.EJB;
20 import javax.enterprise.context.RequestScoped;
21 import javax.inject.Named;
22 import org.mxchange.jcontactsbusiness.basicdata.BusinessBasicData;
23 import org.mxchange.jcontactsbusiness.branchoffice.AdminBranchOfficeSessionBeanRemote;
24 import org.mxchange.jcontactsbusiness.employee.Employee;
25 import org.mxchange.jcountry.data.Country;
26 import org.mxchange.jfinancials.beans.BaseFinancialsController;
27 import org.mxchange.jusercore.model.user.User;
28
29 /**
30  * An administrative bean for branch offices
31  * <p>
32  * @author Roland Häder<roland@mxchange.org>
33  */
34 @Named ("adminBranchOfficeController")
35 @RequestScoped
36 public class FinancialsAdminBranchOfficeWebRequestBean extends BaseFinancialsController implements FinancialsAdminBranchOfficeWebRequestController {
37
38         /**
39          * Serial number
40          */
41         private static final long serialVersionUID = 5_028_697_360_461L;
42
43         /**
44          * EJB for administrative purposes
45          */
46         @EJB (lookup = "java:global/jfinancials-ejb/adminBranchOffice!org.mxchange.jcontactsbusiness.branchoffice.AdminBranchOfficeSessionBeanRemote")
47         private AdminBranchOfficeSessionBeanRemote adminBranchOfficeBean;
48
49         /**
50          * City
51          */
52         private String branchCity;
53
54         /**
55          * Assigned company for this branch office
56          */
57         private BusinessBasicData branchCompany;
58
59         /**
60          * Contact person in branch office
61          */
62         private Employee branchContactEmployee;
63
64         /**
65          * Country
66          */
67         private Country branchCountry;
68
69         /**
70          * Email address
71          */
72         private String branchEmailAddress;
73
74         /**
75          * House number
76          */
77         private Short branchHouseNumber;
78
79         /**
80          * Store
81          */
82         private Short branchStore;
83
84         /**
85          * Branch office street name
86          */
87         private String branchStreet;
88
89         /**
90          * Suite number
91          */
92         private Short branchSuiteNumber;
93
94         /**
95          * Owning user instance (which this branch office is assigned to)
96          */
97         private User branchUserOwner;
98
99         /**
100          * ZIP code
101          */
102         private Integer branchZipCode;
103
104         /**
105          * Area code for fax number
106          */
107         private Integer faxAreaCode;
108
109         /**
110          * Country for fax number
111          */
112         private Country faxCountry;
113
114         /**
115          * Dial number for fax number
116          */
117         private Long faxNumber;
118
119         /**
120          * Area code for land-line number
121          */
122         private Integer landLineAreaCode;
123
124         /**
125          * Country for land-line number
126          */
127         private Country landLineCountry;
128
129         /**
130          * Dial number for land-line number
131          */
132         private Long landLineNumber;
133
134         /**
135          * Default constructor
136          */
137         public FinancialsAdminBranchOfficeWebRequestBean () {
138                 // Call super constructor
139                 super();
140         }
141
142         /**
143          * Getter for city
144          * <p>
145          * @return City
146          */
147         public String getBranchCity () {
148                 return this.branchCity;
149         }
150
151         /**
152          * Setter for city
153          * <p>
154          * @param branchCity City
155          */
156         public void setBranchCity (final String branchCity) {
157                 this.branchCity = branchCity;
158         }
159
160         /**
161          * Getter for basic company data
162          * <p>
163          * @return Basic company data
164          */
165         public BusinessBasicData getBranchCompany () {
166                 return this.branchCompany;
167         }
168
169         /**
170          * Setter for basic company data
171          * <p>
172          * @param branchCompany Basic company data
173          */
174         public void setBranchCompany (final BusinessBasicData branchCompany) {
175                 this.branchCompany = branchCompany;
176         }
177
178         /**
179          * Getter for branch office contact person
180          * <p>
181          * @return Branch office contact person
182          */
183         public Employee getBranchContactEmployee () {
184                 return this.branchContactEmployee;
185         }
186
187         /**
188          * Setter for branch office contact person
189          * <p>
190          * @param branchContactEmployee Branch office contact person
191          */
192         public void setBranchContactEmployee (final Employee branchContactEmployee) {
193                 this.branchContactEmployee = branchContactEmployee;
194         }
195
196         /**
197          * Getter for country
198          * <p>
199          * @return Country
200          */
201         public Country getBranchCountry () {
202                 return this.branchCountry;
203         }
204
205         /**
206          * Setter for country
207          * <p>
208          * @param branchCountry Country
209          */
210         public void setBranchCountry (final Country branchCountry) {
211                 this.branchCountry = branchCountry;
212         }
213
214         /**
215          * Getter for email address
216          * <p>
217          * @return Email address
218          */
219         public String getBranchEmailAddress () {
220                 return this.branchEmailAddress;
221         }
222
223         /**
224          * Getter for email address
225          * <p>
226          * @param branchEmailAddress Email address
227          */
228         public void setBranchEmailAddress (final String branchEmailAddress) {
229                 this.branchEmailAddress = branchEmailAddress;
230         }
231
232         /**
233          * Getter for house number
234          * <p>
235          * @return House number
236          */
237         public Short getBranchHouseNumber () {
238                 return this.branchHouseNumber;
239         }
240
241         /**
242          * Setter for house number
243          * <p>
244          * @param branchHouseNumber House number
245          */
246         public void setBranchHouseNumber (final Short branchHouseNumber) {
247                 this.branchHouseNumber = branchHouseNumber;
248         }
249
250         /**
251          * Getter for store
252          * <p>
253          * @return Store
254          */
255         public Short getBranchStore () {
256                 return this.branchStore;
257         }
258
259         /**
260          * Setter for store
261          * <p>
262          * @param branchStore Store
263          */
264         public void setBranchStore (final Short branchStore) {
265                 this.branchStore = branchStore;
266         }
267
268         /**
269          * Getter for street name
270          * <p>
271          * @return Street name
272          */
273         public String getBranchStreet () {
274                 return this.branchStreet;
275         }
276
277         /**
278          * Setter for street name
279          * <p>
280          * @param branchStreet Street name
281          */
282         public void setBranchStreet (final String branchStreet) {
283                 this.branchStreet = branchStreet;
284         }
285
286         /**
287          * Getter for suite number
288          * <p>
289          * @return Suite number
290          */
291         public Short getBranchSuiteNumber () {
292                 return this.branchSuiteNumber;
293         }
294
295         /**
296          * Setter for suite number
297          * <p>
298          * @param branchSuiteNumber Suite number
299          */
300         public void setBranchSuiteNumber (final Short branchSuiteNumber) {
301                 this.branchSuiteNumber = branchSuiteNumber;
302         }
303
304         /**
305          * Getter for owning user instance
306          * <p>
307          * @return Owning user instance
308          */
309         public User getBranchUserOwner () {
310                 return this.branchUserOwner;
311         }
312
313         /**
314          * Setter for owning user instance
315          * <p>
316          * @param branchUserOwner Owning user instance
317          */
318         public void setBranchUserOwner (final User branchUserOwner) {
319                 this.branchUserOwner = branchUserOwner;
320         }
321
322         /**
323          * Getter for ZIP code\
324          * <p>
325          * @return ZIP code
326          */
327         public Integer getBranchZipCode () {
328                 return this.branchZipCode;
329         }
330
331         /**
332          * Setter for ZIP code\
333          * <p>
334          * @param branchZipCode ZIP code
335          */
336         public void setBranchZipCode (final Integer branchZipCode) {
337                 this.branchZipCode = branchZipCode;
338         }
339
340         /**
341          * Getter for fax number's area code
342          * <p>
343          * @return Fax number's area code
344          */
345         public Integer getFaxAreaCode () {
346                 return this.faxAreaCode;
347         }
348
349         /**
350          * Setter for fax number's area code
351          * <p>
352          * @param faxAreaCode Fax number's area code
353          */
354         public void setFaxAreaCode (final Integer faxAreaCode) {
355                 this.faxAreaCode = faxAreaCode;
356         }
357
358         /**
359          * Getter for fax's country instance
360          * <p>
361          * @return Fax' country instance
362          */
363         public Country getFaxCountry () {
364                 return this.faxCountry;
365         }
366
367         /**
368          * Setter for fax's country instance
369          * <p>
370          * @param faxCountry Fax' country instance
371          */
372         public void setFaxCountry (final Country faxCountry) {
373                 this.faxCountry = faxCountry;
374         }
375
376         /**
377          * Getter for fax number
378          * <p>
379          * @return Fax number
380          */
381         public Long getFaxNumber () {
382                 return this.faxNumber;
383         }
384
385         /**
386          * Setter for fax number
387          * <p>
388          * @param faxNumber Fax number
389          */
390         public void setFaxNumber (final Long faxNumber) {
391                 this.faxNumber = faxNumber;
392         }
393
394         /**
395          * Getter for land-line number's area code
396          * <p>
397          * @return Land-line number's area code
398          */
399         public Integer getLandLineAreaCode () {
400                 return this.landLineAreaCode;
401         }
402
403         /**
404          * Setter for land-line number's area code
405          * <p>
406          * @param landLineAreaCode Land-line number's area code
407          */
408         public void setLandLineAreaCode (final Integer landLineAreaCode) {
409                 this.landLineAreaCode = landLineAreaCode;
410         }
411
412         /**
413          * Getter for land-line number's country instance
414          * <p>
415          * @return Land-line number's country instance
416          */
417         public Country getLandLineCountry () {
418                 return this.landLineCountry;
419         }
420
421         /**
422          * Setter for land-line number's country instance
423          * <p>
424          * @param landLineCountry Land-line number's country instance
425          */
426         public void setLandLineCountry (final Country landLineCountry) {
427                 this.landLineCountry = landLineCountry;
428         }
429
430         /**
431          * Getter for land-line number
432          * <p>
433          * @return Land-line number
434          */
435         public Long getLandLineNumber () {
436                 return this.landLineNumber;
437         }
438
439         /**
440          * Setter for land-line number
441          * <p>
442          * @param landLineNumber Land-line number
443          */
444         public void setLandLineNumber (final Long landLineNumber) {
445                 this.landLineNumber = landLineNumber;
446         }
447
448 }