Hibernate db fix
[portal.git] / portal-BE / src / main / java / org / onap / portal / domain / builder / FnUserDtoBuilder.java
1 /*
2  * ============LICENSE_START==========================================
3  * ONAP Portal
4  * ===================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ===================================================================
7  * Modifications Copyright (c) 2019 Samsung
8  * ===================================================================
9  *
10  * Unless otherwise specified, all software contained herein is licensed
11  * under the Apache License, Version 2.0 (the "License");
12  * you may not use this software except in compliance with the License.
13  * You may obtain a copy of the License at
14  *
15  *             http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  *
23  * Unless otherwise specified, all documentation contained herein is licensed
24  * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
25  * you may not use this documentation except in compliance with the License.
26  * You may obtain a copy of the License at
27  *
28  *             https://creativecommons.org/licenses/by/4.0/
29  *
30  * Unless required by applicable law or agreed to in writing, documentation
31  * distributed under the License is distributed on an "AS IS" BASIS,
32  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33  * See the License for the specific language governing permissions and
34  * limitations under the License.
35  *
36  * ============LICENSE_END============================================
37  *
38  *
39  */
40
41 package org.onap.portal.domain.builder;
42
43 import java.time.LocalDateTime;
44 import lombok.AllArgsConstructor;
45 import lombok.Getter;
46 import lombok.NoArgsConstructor;
47 import lombok.Setter;
48 import org.onap.portal.domain.dto.fn.FnUserDto;
49 import org.springframework.stereotype.Component;
50
51 @Component
52 @NoArgsConstructor
53 @AllArgsConstructor
54 @Getter
55 @Setter
56 public class FnUserDtoBuilder {
57
58        private Long userId;
59        private Long orgId;
60        private Long managerId;
61        private String firstName;
62        private String middleName;
63        private String lastName;
64        private String phone;
65        private String fax;
66        private String cellular;
67        private String email;
68        private Long addressId;
69        private String alertMethodCd;
70        private String hrid;
71        private String orgUserId;
72        private String org_code;
73        private String loginId;
74        private String loginPwd;
75        private LocalDateTime lastLoginDate;
76        private String activeYn;
77        private Long createdId;
78        private LocalDateTime createdDate;
79        private Long modifiedId;
80        private LocalDateTime modifiedDate;
81        private String isInternalYn;
82        private String addressLine1;
83        private String addressLine2;
84        private String city;
85        private String stateCd;
86        private String zipCode;
87        private String countryCd;
88        private String locationClli;
89        private String orgManagerUserId;
90        private String company;
91        private String departmentName;
92        private String jobTitle;
93        private Long timezone;
94        private String department;
95        private String businessUnit;
96        private String businessUnitName;
97        private String cost_center;
98        private String finLocCode;
99        private String siloStatus;
100        private Long languageId;
101        private boolean guest;
102
103        public FnUserDtoBuilder setUserId(Long userId) {
104               this.userId = userId;
105               return this;
106        }
107
108        public FnUserDtoBuilder setOrgId(Long orgId) {
109               this.orgId = orgId;
110               return this;
111        }
112
113        public FnUserDtoBuilder setManagerId(Long managerId) {
114               this.managerId = managerId;
115               return this;
116        }
117
118        public FnUserDtoBuilder setFirstName(String firstName) {
119               this.firstName = firstName;
120               return this;
121        }
122
123        public FnUserDtoBuilder setMiddleName(String middleName) {
124               this.middleName = middleName;
125               return this;
126        }
127
128        public FnUserDtoBuilder setLastName(String lastName) {
129               this.lastName = lastName;
130               return this;
131        }
132
133        public FnUserDtoBuilder setPhone(String phone) {
134               this.phone = phone;
135               return this;
136        }
137
138        public FnUserDtoBuilder setFax(String fax) {
139               this.fax = fax;
140               return this;
141        }
142
143        public FnUserDtoBuilder setCellular(String cellular) {
144               this.cellular = cellular;
145               return this;
146        }
147
148        public FnUserDtoBuilder setEmail(String email) {
149               this.email = email;
150               return this;
151        }
152
153        public FnUserDtoBuilder setAddressId(Long addressId) {
154               this.addressId = addressId;
155               return this;
156        }
157
158        public FnUserDtoBuilder setAlertMethodCd(String alertMethodCd) {
159               this.alertMethodCd = alertMethodCd;
160               return this;
161        }
162
163        public FnUserDtoBuilder setHrid(String hrid) {
164               this.hrid = hrid;
165               return this;
166        }
167
168        public FnUserDtoBuilder setOrgUserId(String orgUserId) {
169               this.orgUserId = orgUserId;
170               return this;
171        }
172
173        public FnUserDtoBuilder setOrg_code(String org_code) {
174               this.org_code = org_code;
175               return this;
176        }
177
178        public FnUserDtoBuilder setLoginId(String loginId) {
179               this.loginId = loginId;
180               return this;
181        }
182
183        public FnUserDtoBuilder setLoginPwd(String loginPwd) {
184               this.loginPwd = loginPwd;
185               return this;
186        }
187
188        public FnUserDtoBuilder setLastLoginDate(LocalDateTime lastLoginDate) {
189               this.lastLoginDate = lastLoginDate;
190               return this;
191        }
192
193        public FnUserDtoBuilder setActiveYn(String activeYn) {
194               this.activeYn = activeYn;
195               return this;
196        }
197
198        public FnUserDtoBuilder setCreatedId(Long createdId) {
199               this.createdId = createdId;
200               return this;
201        }
202
203        public FnUserDtoBuilder setCreatedDate(LocalDateTime createdDate) {
204               this.createdDate = createdDate;
205               return this;
206        }
207
208        public FnUserDtoBuilder setModifiedId(Long modifiedId) {
209               this.modifiedId = modifiedId;
210               return this;
211        }
212
213        public FnUserDtoBuilder setModifiedDate(LocalDateTime modifiedDate) {
214               this.modifiedDate = modifiedDate;
215               return this;
216        }
217
218        public FnUserDtoBuilder setIsInternalYn(String isInternalYn) {
219               this.isInternalYn = isInternalYn;
220               return this;
221        }
222
223        public FnUserDtoBuilder setAddressLine1(String addressLine1) {
224               this.addressLine1 = addressLine1;
225               return this;
226        }
227
228        public FnUserDtoBuilder setAddressLine2(String addressLine2) {
229               this.addressLine2 = addressLine2;
230               return this;
231        }
232
233        public FnUserDtoBuilder setCity(String city) {
234               this.city = city;
235               return this;
236        }
237
238        public FnUserDtoBuilder setStateCd(String stateCd) {
239               this.stateCd = stateCd;
240               return this;
241        }
242
243        public FnUserDtoBuilder setZipCode(String zipCode) {
244               this.zipCode = zipCode;
245               return this;
246        }
247
248        public FnUserDtoBuilder setCountryCd(String countryCd) {
249               this.countryCd = countryCd;
250               return this;
251        }
252
253        public FnUserDtoBuilder setLocationClli(String locationClli) {
254               this.locationClli = locationClli;
255               return this;
256        }
257
258        public FnUserDtoBuilder setOrgManagerUserId(String orgManagerUserId) {
259               this.orgManagerUserId = orgManagerUserId;
260               return this;
261        }
262
263        public FnUserDtoBuilder setCompany(String company) {
264               this.company = company;
265               return this;
266        }
267
268        public FnUserDtoBuilder setDepartmentName(String departmentName) {
269               this.departmentName = departmentName;
270               return this;
271        }
272
273        public FnUserDtoBuilder setJobTitle(String jobTitle) {
274               this.jobTitle = jobTitle;
275               return this;
276        }
277
278        public FnUserDtoBuilder setTimezone(Long timezone) {
279               this.timezone = timezone;
280               return this;
281        }
282
283        public FnUserDtoBuilder setDepartment(String department) {
284               this.department = department;
285               return this;
286        }
287
288        public FnUserDtoBuilder setBusinessUnit(String businessUnit) {
289               this.businessUnit = businessUnit;
290               return this;
291        }
292
293        public FnUserDtoBuilder setBusinessUnitName(String businessUnitName) {
294               this.businessUnitName = businessUnitName;
295               return this;
296        }
297
298        public FnUserDtoBuilder setCost_center(String cost_center) {
299               this.cost_center = cost_center;
300               return this;
301        }
302
303        public FnUserDtoBuilder setFinLocCode(String finLocCode) {
304               this.finLocCode = finLocCode;
305               return this;
306        }
307
308        public FnUserDtoBuilder setSiloStatus(String siloStatus) {
309               this.siloStatus = siloStatus;
310               return this;
311        }
312
313        public FnUserDtoBuilder setLanguageId(Long languageId) {
314               this.languageId = languageId;
315               return this;
316        }
317
318        public FnUserDtoBuilder setGuest(boolean guest) {
319               this.guest = guest;
320               return this;
321        }
322
323        public FnUserDto createFnUserDto() {
324               return new FnUserDto(userId, orgId, managerId, firstName, middleName, lastName, phone, fax, cellular,
325                       email, addressId, alertMethodCd, hrid, orgUserId, org_code, loginId, loginPwd, lastLoginDate,
326                       activeYn, createdId, createdDate, modifiedId, modifiedDate, isInternalYn, addressLine1,
327                       addressLine2, city, stateCd, zipCode, countryCd, locationClli, orgManagerUserId, company,
328                       departmentName, jobTitle, timezone, department, businessUnit, businessUnitName, cost_center,
329                       finLocCode, siloStatus, languageId, guest);
330        }
331 }