2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright (C) 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============================================
38 package org.onap.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;
102 @Column(name = "function_cd")
103 private String functionCode;
105 @Column(name = "function_name")
106 private String functionName;
109 public String getFunctionCode() {
112 public void setFunctionCode(String functionCode) {
113 this.functionCode = functionCode;
115 public String getFunctionName() {
118 public void setFunctionName(String functionName) {
119 this.functionName = functionName;
121 public Long getOrgId() {
124 public void setOrgId(Long orgId) {
127 public String getManagerId() {
130 public void setManagerId(String managerId) {
131 this.managerId = managerId;
133 public String getFirstName() {
136 public void setFirstName(String firstName) {
137 this.firstName = firstName;
139 public String getMiddleInitial() {
140 return middleInitial;
142 public void setMiddleInitial(String middleInitial) {
143 this.middleInitial = middleInitial;
145 public String getLastName() {
148 public void setLastName(String lastName) {
149 this.lastName = lastName;
151 public String getPhone() {
154 public void setPhone(String phone) {
157 public String getEmail() {
160 public void setEmail(String email) {
163 public String getHrid() {
166 public void setHrid(String hrid) {
169 public String getOrgUserId() {
172 public void setOrgUserId(String orgUserId) {
173 this.orgUserId = orgUserId;
175 public String getOrgCode() {
178 public void setOrgCode(String orgCode) {
179 this.orgCode = orgCode;
181 public String getOrgManagerUserId() {
182 return orgManagerUserId;
184 public void setOrgManagerUserId(String orgManagerUserId) {
185 this.orgManagerUserId = orgManagerUserId;
187 public String getJobTitle() {
190 public void setJobTitle(String jobTitle) {
191 this.jobTitle = jobTitle;
193 public String getLoginId() {
196 public void setLoginId(String loginId) {
197 this.loginId = loginId;
200 public Long getRoleId() {
203 public void setRoleId(Long roleId) {
204 this.roleId = roleId;
206 public String getRoleName() {
209 public void setRoleName(String roleName) {
210 this.roleName = roleName;
213 public boolean isActive() {
216 public void setActive(boolean active) {
217 this.active = active;
220 public String toString() {
221 return "EcompUserRoles [orgId=" + orgId + ", managerId=" + managerId + ", firstName=" + firstName
222 + ", middleInitial=" + middleInitial + ", lastName=" + lastName + ", phone=" + phone + ", email="
223 + email + ", hrid=" + hrid + ", orgUserId=" + orgUserId + ", orgCode=" + orgCode + ", orgManagerUserId="
224 + orgManagerUserId + ", jobTitle=" + jobTitle + ", loginId=" + loginId + ", active=" + active
225 + ", roleId=" + roleId + ", roleName=" + roleName + "]";