2 * Copyright (C) 2017 RRoland 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.employee;
20 import javax.enterprise.context.RequestScoped;
21 import javax.inject.Named;
22 import org.mxchange.jcontacts.model.contact.Contact;
23 import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
24 import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
25 import org.mxchange.jcontactsbusiness.model.department.Department;
26 import org.mxchange.jcontactsbusiness.model.employee.AdminCompanyEmployeeSessionBeanRemote;
27 import org.mxchange.jcontactsbusiness.model.headquarters.HeadquartersData;
28 import org.mxchange.jfinancials.beans.BaseFinancialsBean;
29 import org.mxchange.jphone.model.phonenumbers.mobileprovider.MobileProvider;
30 import org.mxchange.jusercore.model.user.User;
33 * A request-scoped bean for administrative purposes for company employees.
35 * @author Roland Häder<roland@mxchange.org>
37 @Named ("adminCompanyEmployeeController")
39 public class FinancialsAdminCompanyEmployeeWebRequestBean extends BaseFinancialsBean implements FinancialsAdminCompanyEmployeeWebRequestController {
44 private static final long serialVersionUID = 12_886_968_547_360L;
47 * EJB for administrative company employee purposes
49 @EJB (lookup = "java:global/jfinancials-ejb/adminCompanyEmployee!org.mxchange.jcontactsbusiness.model.employee.AdminCompanyEmployeeSessionBeanRemote")
50 private AdminCompanyEmployeeSessionBeanRemote adminCompanyEmployeeBean;
53 * Assigned branch office
55 private BranchOffice employeeBranchOffice;
58 * Assigned basic data instance
60 private BusinessBasicData employeeCompany;
63 * Department where employee works (alternative to headquarters)
65 private Department employeeDepartment;
68 * Employee's business email address
70 private String employeeEmailAddress;
73 * Employee's Headquarters data, if he is working there
75 private HeadquartersData employeeHeadquarters;
78 * Assigned personal data of the employee
80 private Contact employeePersonalContact;
83 * Employee's phone extension (on top of a "main number")
85 private Long employeePhoneExtension;
88 * Employee's staff number
90 private Long employeeStaffNumber;
93 * Assigned user account
95 private User employeeUserOwner;
98 * Mobile number for employee's business mobile
100 private Long mobileNumber;
103 * Mobile provider instance for employee's business mobile
105 private MobileProvider mobileProvider;
108 * Default constructor
110 public FinancialsAdminCompanyEmployeeWebRequestBean () {
111 // Call super constructor
116 * Getter for employee's assigned branch office
118 * @return Employee's assigned branch office
120 public BranchOffice getEmployeeBranchOffice () {
121 return this.employeeBranchOffice;
125 * Setter for employee's assigned branch office
127 * @param employeeBranchOffice Employee's assigned branch office
129 public void setEmployeeBranchOffice (final BranchOffice employeeBranchOffice) {
130 this.employeeBranchOffice = employeeBranchOffice;
134 * Getter for employee's assigned basic company data
136 * @return Employee's assigned basic company data
138 public BusinessBasicData getEmployeeCompany () {
139 return this.employeeCompany;
143 * Setter for employee's assigned basic company data
145 * @param employeeCompany Employee's assigned basic company data
147 public void setEmployeeCompany (final BusinessBasicData employeeCompany) {
148 this.employeeCompany = employeeCompany;
152 * Getter for employee's assigned department
154 * @return Employee's assigned department
156 public Department getEmployeeDepartment () {
157 return this.employeeDepartment;
161 * Setter for employee's assigned department
163 * @param employeeDepartment Employee's assigned department
165 public void setEmployeeDepartment (final Department employeeDepartment) {
166 this.employeeDepartment = employeeDepartment;
170 * Getter for employee's business email address
172 * @return Employee's business email address
174 public String getEmployeeEmailAddress () {
175 return this.employeeEmailAddress;
179 * Setter for employee's business email address
181 * @param employeeEmailAddress Employee's business email address
183 public void setEmployeeEmailAddress (final String employeeEmailAddress) {
184 this.employeeEmailAddress = employeeEmailAddress;
188 * Getter for employee's assigned headquarters (if no branch office)
190 * @return Employee's assigned headquarters
192 public HeadquartersData getEmployeeHeadquarters () {
193 return this.employeeHeadquarters;
197 * Setter for employee's assigned headquarters (if no branch office)
199 * @param employeeHeadquarters Employee's assigned headquarters
201 public void setEmployeeHeadquarters (final HeadquartersData employeeHeadquarters) {
202 this.employeeHeadquarters = employeeHeadquarters;
206 * Getter for employee's personal contact data
208 * @return Employee's personal contact data
210 public Contact getEmployeePersonalContact () {
211 return this.employeePersonalContact;
215 * Setter for employee's personal contact data
217 * @param employeePersonalContact Employee's personal contact data
219 public void setEmployeePersonalContact (final Contact employeePersonalContact) {
220 this.employeePersonalContact = employeePersonalContact;
224 * Getter for employee's phone extension
226 * @return Employee's phone extension
228 public Long getEmployeePhoneExtension () {
229 return this.employeePhoneExtension;
233 * Getter for employee's phone extension
235 * @param employeePhoneExtension Employee's phone extension
237 public void setEmployeePhoneExtension (final Long employeePhoneExtension) {
238 this.employeePhoneExtension = employeePhoneExtension;
242 * Getter for employee's staff number
244 * @return Employee's staff number
246 public Long getEmployeeStaffNumber () {
247 return this.employeeStaffNumber;
251 * Setter for employee's staff number
253 * @param employeeStaffNumber Employee's staff number
255 public void setEmployeeStaffNumber (final Long employeeStaffNumber) {
256 this.employeeStaffNumber = employeeStaffNumber;
260 * Getter for employee's user "owner"
262 * @return Employee's user "owner"
264 public User getEmployeeUserOwner () {
265 return this.employeeUserOwner;
269 * Setter for employee's user "owner"
271 * @param employeeUserOwner Employee's user "owner"
273 public void setEmployeeUserOwner (final User employeeUserOwner) {
274 this.employeeUserOwner = employeeUserOwner;
278 * Getter for mobile number
280 * @return Mobile number
282 public Long getMobileNumber () {
283 return this.mobileNumber;
287 * Setter for mobile number
289 * @param mobileNumber Mobile number
291 public void setMobileNumber (final Long mobileNumber) {
292 this.mobileNumber = mobileNumber;
296 * Getter for mobile provider instance
298 * @return Mobile provider instance
300 public MobileProvider getMobileProvider () {
301 return this.mobileProvider;
305 * Setter for mobile provider instance
307 * @param mobileProvider Mobile provider instance
309 public void setMobileProvider (final MobileProvider mobileProvider) {
310 this.mobileProvider = mobileProvider;