]> git.mxchange.org Git - jfinancials-war.git/blob
e936038b45bf5a500208afe355c17d75f349243c
[jfinancials-war.git] /
1 /*
2  * Copyright (C) 2017 RRoland 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.employee;
18
19 import javax.ejb.EJB;
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;
31
32 /**
33  * A request-scoped bean for administrative purposes for company employees.
34  * <p>
35  * @author Roland Häder<roland@mxchange.org>
36  */
37 @Named ("adminCompanyEmployeeController")
38 @RequestScoped
39 public class FinancialsAdminCompanyEmployeeWebRequestBean extends BaseFinancialsBean implements FinancialsAdminCompanyEmployeeWebRequestController {
40
41         /**
42          * Serial number
43          */
44         private static final long serialVersionUID = 12_886_968_547_360L;
45
46         /**
47          * EJB for administrative company employee purposes
48          */
49         @EJB (lookup = "java:global/jfinancials-ejb/adminCompanyEmployee!org.mxchange.jcontactsbusiness.model.employee.AdminCompanyEmployeeSessionBeanRemote")
50         private AdminCompanyEmployeeSessionBeanRemote adminCompanyEmployeeBean;
51
52         /**
53          * Assigned branch office
54          */
55         private BranchOffice employeeBranchOffice;
56
57         /**
58          * Assigned basic data instance
59          */
60         private BusinessBasicData employeeCompany;
61
62         /**
63          * Department where employee works (alternative to headquarters)
64          */
65         private Department employeeDepartment;
66
67         /**
68          * Employee's business email address
69          */
70         private String employeeEmailAddress;
71
72         /**
73          * Employee's Headquarters data, if he is working there
74          */
75         private HeadquartersData employeeHeadquarters;
76
77         /**
78          * Assigned personal data of the employee
79          */
80         private Contact employeePersonalContact;
81
82         /**
83          * Employee's phone extension (on top of a "main number")
84          */
85         private Long employeePhoneExtension;
86
87         /**
88          * Employee's staff number
89          */
90         private Long employeeStaffNumber;
91
92         /**
93          * Assigned user account
94          */
95         private User employeeUserOwner;
96
97         /**
98          * Mobile number for employee's business mobile
99          */
100         private Long mobileNumber;
101
102         /**
103          * Mobile provider instance for employee's business mobile
104          */
105         private MobileProvider mobileProvider;
106
107         /**
108          * Default constructor
109          */
110         public FinancialsAdminCompanyEmployeeWebRequestBean () {
111                 // Call super constructor
112                 super();
113         }
114
115         /**
116          * Getter for employee's assigned branch office
117          * <p>
118          * @return Employee's assigned branch office
119          */
120         public BranchOffice getEmployeeBranchOffice () {
121                 return this.employeeBranchOffice;
122         }
123
124         /**
125          * Setter for employee's assigned branch office
126          * <p>
127          * @param employeeBranchOffice Employee's assigned branch office
128          */
129         public void setEmployeeBranchOffice (final BranchOffice employeeBranchOffice) {
130                 this.employeeBranchOffice = employeeBranchOffice;
131         }
132
133         /**
134          * Getter for employee's assigned basic company data
135          * <p>
136          * @return Employee's assigned basic company data
137          */
138         public BusinessBasicData getEmployeeCompany () {
139                 return this.employeeCompany;
140         }
141
142         /**
143          * Setter for employee's assigned basic company data
144          * <p>
145          * @param employeeCompany Employee's assigned basic company data
146          */
147         public void setEmployeeCompany (final BusinessBasicData employeeCompany) {
148                 this.employeeCompany = employeeCompany;
149         }
150
151         /**
152          * Getter for employee's assigned department
153          * <p>
154          * @return Employee's assigned department
155          */
156         public Department getEmployeeDepartment () {
157                 return this.employeeDepartment;
158         }
159
160         /**
161          * Setter for employee's assigned department
162          * <p>
163          * @param employeeDepartment Employee's assigned department
164          */
165         public void setEmployeeDepartment (final Department employeeDepartment) {
166                 this.employeeDepartment = employeeDepartment;
167         }
168
169         /**
170          * Getter for employee's business email address
171          * <p>
172          * @return Employee's business email address
173          */
174         public String getEmployeeEmailAddress () {
175                 return this.employeeEmailAddress;
176         }
177
178         /**
179          * Setter for employee's business email address
180          * <p>
181          * @param employeeEmailAddress Employee's business email address
182          */
183         public void setEmployeeEmailAddress (final String employeeEmailAddress) {
184                 this.employeeEmailAddress = employeeEmailAddress;
185         }
186
187         /**
188          * Getter for employee's assigned headquarters (if no branch office)
189          * <p>
190          * @return Employee's assigned headquarters
191          */
192         public HeadquartersData getEmployeeHeadquarters () {
193                 return this.employeeHeadquarters;
194         }
195
196         /**
197          * Setter for employee's assigned headquarters (if no branch office)
198          * <p>
199          * @param employeeHeadquarters Employee's assigned headquarters
200          */
201         public void setEmployeeHeadquarters (final HeadquartersData employeeHeadquarters) {
202                 this.employeeHeadquarters = employeeHeadquarters;
203         }
204
205         /**
206          * Getter for employee's personal contact data
207          * <p>
208          * @return Employee's personal contact data
209          */
210         public Contact getEmployeePersonalContact () {
211                 return this.employeePersonalContact;
212         }
213
214         /**
215          * Setter for employee's personal contact data
216          * <p>
217          * @param employeePersonalContact Employee's personal contact data
218          */
219         public void setEmployeePersonalContact (final Contact employeePersonalContact) {
220                 this.employeePersonalContact = employeePersonalContact;
221         }
222
223         /**
224          * Getter for employee's phone extension
225          * <p>
226          * @return Employee's phone extension
227          */
228         public Long getEmployeePhoneExtension () {
229                 return this.employeePhoneExtension;
230         }
231
232         /**
233          * Getter for employee's phone extension
234          * <p>
235          * @param employeePhoneExtension Employee's phone extension
236          */
237         public void setEmployeePhoneExtension (final Long employeePhoneExtension) {
238                 this.employeePhoneExtension = employeePhoneExtension;
239         }
240
241         /**
242          * Getter for employee's staff number
243          * <p>
244          * @return Employee's staff number
245          */
246         public Long getEmployeeStaffNumber () {
247                 return this.employeeStaffNumber;
248         }
249
250         /**
251          * Setter for employee's staff number
252          * <p>
253          * @param employeeStaffNumber Employee's staff number
254          */
255         public void setEmployeeStaffNumber (final Long employeeStaffNumber) {
256                 this.employeeStaffNumber = employeeStaffNumber;
257         }
258
259         /**
260          * Getter for employee's user "owner"
261          * <p>
262          * @return Employee's user "owner"
263          */
264         public User getEmployeeUserOwner () {
265                 return this.employeeUserOwner;
266         }
267
268         /**
269          * Setter for employee's user "owner"
270          * <p>
271          * @param employeeUserOwner Employee's user "owner"
272          */
273         public void setEmployeeUserOwner (final User employeeUserOwner) {
274                 this.employeeUserOwner = employeeUserOwner;
275         }
276
277         /**
278          * Getter for mobile number
279          * <p>
280          * @return Mobile number
281          */
282         public Long getMobileNumber () {
283                 return this.mobileNumber;
284         }
285
286         /**
287          * Setter for mobile number
288          * <p>
289          * @param mobileNumber Mobile number
290          */
291         public void setMobileNumber (final Long mobileNumber) {
292                 this.mobileNumber = mobileNumber;
293         }
294
295         /**
296          * Getter for mobile provider instance
297          * <p>
298          * @return Mobile provider instance
299          */
300         public MobileProvider getMobileProvider () {
301                 return this.mobileProvider;
302         }
303
304         /**
305          * Setter for mobile provider instance
306          * <p>
307          * @param mobileProvider Mobile provider instance
308          */
309         public void setMobileProvider (final MobileProvider mobileProvider) {
310                 this.mobileProvider = mobileProvider;
311         }
312
313 }