a1d2ae30af42694bfb40c7a75d4d79ca7eff6efb
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / transport / EcompUserRoles.java
1 /*-
2  * ============LICENSE_START==========================================
3  * ONAP Portal
4  * ===================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ===================================================================
7  *
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
12  *
13  *             http://www.apache.org/licenses/LICENSE-2.0
14  *
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.
20  *
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
25  *
26  *             https://creativecommons.org/licenses/by/4.0/
27  *
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.
33  *
34  * ============LICENSE_END============================================
35  *
36  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
37  */
38 package org.onap.portalapp.portal.transport;
39
40 import java.io.Serializable;
41
42 import javax.persistence.Column;
43 import javax.persistence.Entity;
44 import javax.persistence.Id;
45
46 @Entity
47 public class EcompUserRoles implements Serializable{
48         
49         private static final long serialVersionUID = 1L;
50         
51         @Id
52         @Column(name = "org_id")
53         private Long orgId;
54         @Id
55         @Column(name = "manager_id")
56         private String managerId;
57         @Id
58         @Column(name = "first_name")
59         private String firstName;
60         @Id
61         @Column(name = "middle_name")
62         private String middleInitial;
63         @Id
64         @Column(name = "last_name")
65         private String lastName;
66         @Id
67         @Column(name = "phone")
68         private String phone;
69         @Id
70         @Column(name = "email")
71         private String email;
72         @Id
73         @Column(name = "hrid")
74         private String hrid;
75         @Id
76         @Column(name = "org_user_id")
77         private String orgUserId;
78         @Id
79         @Column(name = "org_code")
80         private String orgCode;
81         @Id
82         @Column(name = "org_manager_userid")
83         private String orgManagerUserId;
84         @Id
85         @Column(name = "job_title")
86         private String jobTitle;
87         @Id
88         @Column(name = "login_id")
89         private String loginId;
90
91         @Id
92         @Column(name = "app_role_id")
93         private Long roleId;
94         @Id
95         @Column(name = "role_name")
96         private String roleName;
97         @Id
98         @Column(name = "active_yn")
99         private boolean active;
100         
101         @Id
102     @Column(name = "function_cd")
103     private String functionCode;
104     @Id
105     @Column(name = "function_name")
106     private String functionName;
107
108  
109         public String getFunctionCode() {
110                 return functionCode;
111         }
112         public void setFunctionCode(String functionCode) {
113                 this.functionCode = functionCode;
114         }
115         public String getFunctionName() {
116                 return functionName;
117         }
118         public void setFunctionName(String functionName) {
119                 this.functionName = functionName;
120         }
121         public Long getOrgId() {
122                 return orgId;
123         }
124         public void setOrgId(Long orgId) {
125                 this.orgId = orgId;
126         }
127         public String getManagerId() {
128                 return managerId;
129         }
130         public void setManagerId(String managerId) {
131                 this.managerId = managerId;
132         }
133         public String getFirstName() {
134                 return firstName;
135         }
136         public void setFirstName(String firstName) {
137                 this.firstName = firstName;
138         }
139         public String getMiddleInitial() {
140                 return middleInitial;
141         }
142         public void setMiddleInitial(String middleInitial) {
143                 this.middleInitial = middleInitial;
144         }
145         public String getLastName() {
146                 return lastName;
147         }
148         public void setLastName(String lastName) {
149                 this.lastName = lastName;
150         }
151         public String getPhone() {
152                 return phone;
153         }
154         public void setPhone(String phone) {
155                 this.phone = phone;
156         }
157         public String getEmail() {
158                 return email;
159         }
160         public void setEmail(String email) {
161                 this.email = email;
162         }
163         public String getHrid() {
164                 return hrid;
165         }
166         public void setHrid(String hrid) {
167                 this.hrid = hrid;
168         }
169         public String getOrgUserId() {
170                 return orgUserId;
171         }
172         public void setOrgUserId(String orgUserId) {
173                 this.orgUserId = orgUserId;
174         }
175         public String getOrgCode() {
176                 return orgCode;
177         }
178         public void setOrgCode(String orgCode) {
179                 this.orgCode = orgCode;
180         }
181         public String getOrgManagerUserId() {
182                 return orgManagerUserId;
183         }
184         public void setOrgManagerUserId(String orgManagerUserId) {
185                 this.orgManagerUserId = orgManagerUserId;
186         }
187         public String getJobTitle() {
188                 return jobTitle;
189         }
190         public void setJobTitle(String jobTitle) {
191                 this.jobTitle = jobTitle;
192         }
193         public String getLoginId() {
194                 return loginId;
195         }
196         public void setLoginId(String loginId) {
197                 this.loginId = loginId;
198         }
199         
200         public Long getRoleId() {
201                 return roleId;
202         }
203         public void setRoleId(Long roleId) {
204                 this.roleId = roleId;
205         }
206         public String getRoleName() {
207                 return roleName;
208         }
209         public void setRoleName(String roleName) {
210                 this.roleName = roleName;
211         }
212         
213         public boolean isActive() {
214                 return active;
215         }
216         public void setActive(boolean active) {
217                 this.active = active;
218         }
219         @Override
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 + "]";
226         }
227         
228
229 }