2 * Copyright (C) 2017 Roland Häder
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.jfinancials.beans.business.branchoffice;
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;
30 * An administrative bean for branch offices
32 * @author Roland Häder<roland@mxchange.org>
34 @Named ("adminBranchOfficeController")
36 public class FinancialsAdminBranchOfficeWebRequestBean extends BaseFinancialsController implements FinancialsAdminBranchOfficeWebRequestController {
41 private static final long serialVersionUID = 5_028_697_360_461L;
44 * EJB for administrative purposes
46 @EJB (lookup = "java:global/jfinancials-ejb/adminBranchOffice!org.mxchange.jcontactsbusiness.branchoffice.AdminBranchOfficeSessionBeanRemote")
47 private AdminBranchOfficeSessionBeanRemote adminBranchOfficeBean;
52 private String branchCity;
55 * Assigned company for this branch office
57 private BusinessBasicData branchCompany;
60 * Contact person in branch office
62 private Employee branchContactEmployee;
67 private Country branchCountry;
72 private String branchEmailAddress;
77 private Short branchHouseNumber;
82 private Short branchStore;
85 * Branch office street name
87 private String branchStreet;
92 private Short branchSuiteNumber;
95 * Owning user instance (which this branch office is assigned to)
97 private User branchUserOwner;
102 private Integer branchZipCode;
105 * Area code for fax number
107 private Integer faxAreaCode;
110 * Country for fax number
112 private Country faxCountry;
115 * Dial number for fax number
117 private Long faxNumber;
120 * Area code for land-line number
122 private Integer landLineAreaCode;
125 * Country for land-line number
127 private Country landLineCountry;
130 * Dial number for land-line number
132 private Long landLineNumber;
135 * Default constructor
137 public FinancialsAdminBranchOfficeWebRequestBean () {
138 // Call super constructor
147 public String getBranchCity () {
148 return this.branchCity;
154 * @param branchCity City
156 public void setBranchCity (final String branchCity) {
157 this.branchCity = branchCity;
161 * Getter for basic company data
163 * @return Basic company data
165 public BusinessBasicData getBranchCompany () {
166 return this.branchCompany;
170 * Setter for basic company data
172 * @param branchCompany Basic company data
174 public void setBranchCompany (final BusinessBasicData branchCompany) {
175 this.branchCompany = branchCompany;
179 * Getter for branch office contact person
181 * @return Branch office contact person
183 public Employee getBranchContactEmployee () {
184 return this.branchContactEmployee;
188 * Setter for branch office contact person
190 * @param branchContactEmployee Branch office contact person
192 public void setBranchContactEmployee (final Employee branchContactEmployee) {
193 this.branchContactEmployee = branchContactEmployee;
201 public Country getBranchCountry () {
202 return this.branchCountry;
208 * @param branchCountry Country
210 public void setBranchCountry (final Country branchCountry) {
211 this.branchCountry = branchCountry;
215 * Getter for email address
217 * @return Email address
219 public String getBranchEmailAddress () {
220 return this.branchEmailAddress;
224 * Getter for email address
226 * @param branchEmailAddress Email address
228 public void setBranchEmailAddress (final String branchEmailAddress) {
229 this.branchEmailAddress = branchEmailAddress;
233 * Getter for house number
235 * @return House number
237 public Short getBranchHouseNumber () {
238 return this.branchHouseNumber;
242 * Setter for house number
244 * @param branchHouseNumber House number
246 public void setBranchHouseNumber (final Short branchHouseNumber) {
247 this.branchHouseNumber = branchHouseNumber;
255 public Short getBranchStore () {
256 return this.branchStore;
262 * @param branchStore Store
264 public void setBranchStore (final Short branchStore) {
265 this.branchStore = branchStore;
269 * Getter for street name
271 * @return Street name
273 public String getBranchStreet () {
274 return this.branchStreet;
278 * Setter for street name
280 * @param branchStreet Street name
282 public void setBranchStreet (final String branchStreet) {
283 this.branchStreet = branchStreet;
287 * Getter for suite number
289 * @return Suite number
291 public Short getBranchSuiteNumber () {
292 return this.branchSuiteNumber;
296 * Setter for suite number
298 * @param branchSuiteNumber Suite number
300 public void setBranchSuiteNumber (final Short branchSuiteNumber) {
301 this.branchSuiteNumber = branchSuiteNumber;
305 * Getter for owning user instance
307 * @return Owning user instance
309 public User getBranchUserOwner () {
310 return this.branchUserOwner;
314 * Setter for owning user instance
316 * @param branchUserOwner Owning user instance
318 public void setBranchUserOwner (final User branchUserOwner) {
319 this.branchUserOwner = branchUserOwner;
323 * Getter for ZIP code\
327 public Integer getBranchZipCode () {
328 return this.branchZipCode;
332 * Setter for ZIP code\
334 * @param branchZipCode ZIP code
336 public void setBranchZipCode (final Integer branchZipCode) {
337 this.branchZipCode = branchZipCode;
341 * Getter for fax number's area code
343 * @return Fax number's area code
345 public Integer getFaxAreaCode () {
346 return this.faxAreaCode;
350 * Setter for fax number's area code
352 * @param faxAreaCode Fax number's area code
354 public void setFaxAreaCode (final Integer faxAreaCode) {
355 this.faxAreaCode = faxAreaCode;
359 * Getter for fax's country instance
361 * @return Fax' country instance
363 public Country getFaxCountry () {
364 return this.faxCountry;
368 * Setter for fax's country instance
370 * @param faxCountry Fax' country instance
372 public void setFaxCountry (final Country faxCountry) {
373 this.faxCountry = faxCountry;
377 * Getter for fax number
381 public Long getFaxNumber () {
382 return this.faxNumber;
386 * Setter for fax number
388 * @param faxNumber Fax number
390 public void setFaxNumber (final Long faxNumber) {
391 this.faxNumber = faxNumber;
395 * Getter for land-line number's area code
397 * @return Land-line number's area code
399 public Integer getLandLineAreaCode () {
400 return this.landLineAreaCode;
404 * Setter for land-line number's area code
406 * @param landLineAreaCode Land-line number's area code
408 public void setLandLineAreaCode (final Integer landLineAreaCode) {
409 this.landLineAreaCode = landLineAreaCode;
413 * Getter for land-line number's country instance
415 * @return Land-line number's country instance
417 public Country getLandLineCountry () {
418 return this.landLineCountry;
422 * Setter for land-line number's country instance
424 * @param landLineCountry Land-line number's country instance
426 public void setLandLineCountry (final Country landLineCountry) {
427 this.landLineCountry = landLineCountry;
431 * Getter for land-line number
433 * @return Land-line number
435 public Long getLandLineNumber () {
436 return this.landLineNumber;
440 * Setter for land-line number
442 * @param landLineNumber Land-line number
444 public void setLandLineNumber (final Long landLineNumber) {
445 this.landLineNumber = landLineNumber;