2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * ===================================================================
8 * Unless otherwise specified, all software contained herein is licensed
9 * under the Apache License, Version 2.0 (the “License”);
10 * you may not use this software except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
21 * Unless otherwise specified, all documentation contained herein is licensed
22 * under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
23 * you may not use this documentation except in compliance with the License.
24 * You may obtain a copy of the License at
26 * https://creativecommons.org/licenses/by/4.0/
28 * Unless required by applicable law or agreed to in writing, documentation
29 * distributed under the License is distributed on an "AS IS" BASIS,
30 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 * See the License for the specific language governing permissions and
32 * limitations under the License.
34 * ============LICENSE_END============================================
36 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
38 package org.openecomp.portalapp.portal.transport;
40 import java.io.Serializable;
42 import javax.persistence.Column;
43 import javax.persistence.Entity;
44 import javax.persistence.Id;
47 public class EcompUserRoles implements Serializable{
49 private static final long serialVersionUID = 1L;
52 @Column(name = "org_id")
55 @Column(name = "manager_id")
56 private String managerId;
58 @Column(name = "first_name")
59 private String firstName;
61 @Column(name = "middle_name")
62 private String middleInitial;
64 @Column(name = "last_name")
65 private String lastName;
67 @Column(name = "phone")
70 @Column(name = "email")
73 @Column(name = "hrid")
76 @Column(name = "org_user_id")
77 private String orgUserId;
79 @Column(name = "org_code")
80 private String orgCode;
82 @Column(name = "org_manager_userid")
83 private String orgManagerUserId;
85 @Column(name = "job_title")
86 private String jobTitle;
88 @Column(name = "login_id")
89 private String loginId;
92 @Column(name = "app_role_id")
95 @Column(name = "role_name")
96 private String roleName;
98 @Column(name = "active_yn")
99 private boolean active;
101 public Long getOrgId() {
104 public void setOrgId(Long orgId) {
107 public String getManagerId() {
110 public void setManagerId(String managerId) {
111 this.managerId = managerId;
113 public String getFirstName() {
116 public void setFirstName(String firstName) {
117 this.firstName = firstName;
119 public String getMiddleInitial() {
120 return middleInitial;
122 public void setMiddleInitial(String middleInitial) {
123 this.middleInitial = middleInitial;
125 public String getLastName() {
128 public void setLastName(String lastName) {
129 this.lastName = lastName;
131 public String getPhone() {
134 public void setPhone(String phone) {
137 public String getEmail() {
140 public void setEmail(String email) {
143 public String getHrid() {
146 public void setHrid(String hrid) {
149 public String getOrgUserId() {
152 public void setOrgUserId(String orgUserId) {
153 this.orgUserId = orgUserId;
155 public String getOrgCode() {
158 public void setOrgCode(String orgCode) {
159 this.orgCode = orgCode;
161 public String getOrgManagerUserId() {
162 return orgManagerUserId;
164 public void setOrgManagerUserId(String orgManagerUserId) {
165 this.orgManagerUserId = orgManagerUserId;
167 public String getJobTitle() {
170 public void setJobTitle(String jobTitle) {
171 this.jobTitle = jobTitle;
173 public String getLoginId() {
176 public void setLoginId(String loginId) {
177 this.loginId = loginId;
180 public Long getRoleId() {
183 public void setRoleId(Long roleId) {
184 this.roleId = roleId;
186 public String getRoleName() {
189 public void setRoleName(String roleName) {
190 this.roleName = roleName;
193 public boolean isActive() {
196 public void setActive(boolean active) {
197 this.active = active;
200 public String toString() {
201 return "EcompUserRoles [orgId=" + orgId + ", managerId=" + managerId + ", firstName=" + firstName
202 + ", middleInitial=" + middleInitial + ", lastName=" + lastName + ", phone=" + phone + ", email="
203 + email + ", hrid=" + hrid + ", orgUserId=" + orgUserId + ", orgCode=" + orgCode + ", orgManagerUserId="
204 + orgManagerUserId + ", jobTitle=" + jobTitle + ", loginId=" + loginId + ", active=" + active
205 + ", roleId=" + roleId + ", roleName=" + roleName + "]";