Update license; improve coverage; add docs dir
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / transport / EcompUserRoles.java
1 /*-
2  * ============LICENSE_START==========================================
3  * ONAP Portal
4  * ===================================================================
5  * Copyright © 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.openecomp.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         public Long getOrgId() {
102                 return orgId;
103         }
104         public void setOrgId(Long orgId) {
105                 this.orgId = orgId;
106         }
107         public String getManagerId() {
108                 return managerId;
109         }
110         public void setManagerId(String managerId) {
111                 this.managerId = managerId;
112         }
113         public String getFirstName() {
114                 return firstName;
115         }
116         public void setFirstName(String firstName) {
117                 this.firstName = firstName;
118         }
119         public String getMiddleInitial() {
120                 return middleInitial;
121         }
122         public void setMiddleInitial(String middleInitial) {
123                 this.middleInitial = middleInitial;
124         }
125         public String getLastName() {
126                 return lastName;
127         }
128         public void setLastName(String lastName) {
129                 this.lastName = lastName;
130         }
131         public String getPhone() {
132                 return phone;
133         }
134         public void setPhone(String phone) {
135                 this.phone = phone;
136         }
137         public String getEmail() {
138                 return email;
139         }
140         public void setEmail(String email) {
141                 this.email = email;
142         }
143         public String getHrid() {
144                 return hrid;
145         }
146         public void setHrid(String hrid) {
147                 this.hrid = hrid;
148         }
149         public String getOrgUserId() {
150                 return orgUserId;
151         }
152         public void setOrgUserId(String orgUserId) {
153                 this.orgUserId = orgUserId;
154         }
155         public String getOrgCode() {
156                 return orgCode;
157         }
158         public void setOrgCode(String orgCode) {
159                 this.orgCode = orgCode;
160         }
161         public String getOrgManagerUserId() {
162                 return orgManagerUserId;
163         }
164         public void setOrgManagerUserId(String orgManagerUserId) {
165                 this.orgManagerUserId = orgManagerUserId;
166         }
167         public String getJobTitle() {
168                 return jobTitle;
169         }
170         public void setJobTitle(String jobTitle) {
171                 this.jobTitle = jobTitle;
172         }
173         public String getLoginId() {
174                 return loginId;
175         }
176         public void setLoginId(String loginId) {
177                 this.loginId = loginId;
178         }
179         
180         public Long getRoleId() {
181                 return roleId;
182         }
183         public void setRoleId(Long roleId) {
184                 this.roleId = roleId;
185         }
186         public String getRoleName() {
187                 return roleName;
188         }
189         public void setRoleName(String roleName) {
190                 this.roleName = roleName;
191         }
192         
193         public boolean isActive() {
194                 return active;
195         }
196         public void setActive(boolean active) {
197                 this.active = active;
198         }
199         @Override
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 + "]";
206         }
207         
208
209 }