1 package org.openecomp.portalapp.portal.transport;
3 import java.util.ArrayList;
7 * ============LICENSE_START==========================================
9 * ===================================================================
10 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
11 * ===================================================================
13 * Unless otherwise specified, all software contained herein is licensed
14 * under the Apache License, Version 2.0 (the “License”);
15 * you may not use this software except in compliance with the License.
16 * You may obtain a copy of the License at
18 * http://www.apache.org/licenses/LICENSE-2.0
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
26 * Unless otherwise specified, all documentation contained herein is licensed
27 * under the Creative Commons License, Attribution 4.0 Intl. (the “License”);
28 * you may not use this documentation except in compliance with the License.
29 * You may obtain a copy of the License at
31 * https://creativecommons.org/licenses/by/4.0/
33 * Unless required by applicable law or agreed to in writing, documentation
34 * distributed under the License is distributed on an "AS IS" BASIS,
35 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36 * See the License for the specific language governing permissions and
37 * limitations under the License.
39 * ============LICENSE_END============================================
41 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
45 * User description which we receive in response from request to remote
46 * application: applicationsRestClientService.get(RemoteUserWithRoles[].class,
47 * appId, "/users"). It contains the most important info about remote
48 * application user including his roles in this application.
50 public class RemoteUserWithRoles {
54 private Long managerId;
56 private String firstName;
58 private String middleInitial;
60 private String lastName;
68 private String orgUserId;
70 private String orgCode;
72 private String orgManagerUserId;
74 private String jobTitle;
76 private String loginId;
78 private Boolean active;
80 private List<RemoteRole> roles = new ArrayList<RemoteRole>();
82 public Long getOrgId() {
86 public void setOrgId(Long orgId) {
90 public Long getManagerId() {
94 public void setManagerId(Long managerId) {
95 this.managerId = managerId;
98 public String getFirstName() {
102 public void setFirstName(String firstName) {
103 this.firstName = firstName;
106 public String getMiddleInitial() {
107 return middleInitial;
110 public void setMiddleInitial(String middleInitial) {
111 this.middleInitial = middleInitial;
114 public String getLastName() {
118 public void setLastName(String lastName) {
119 this.lastName = lastName;
122 public String getPhone() {
126 public void setPhone(String phone) {
130 public String getEmail() {
134 public void setEmail(String email) {
138 public String getHrid() {
142 public void setHrid(String hrid) {
146 public String getOrgUserId() {
150 public void setOrgUserId(String orgUserId) {
151 if(this.orgUserId == null)
152 this.orgUserId = orgUserId;
155 public String getOrgCode() {
159 public void setOrgCode(String orgCode) {
160 this.orgCode = orgCode;
163 public String getOrgManagerUserId() {
164 return orgManagerUserId;
167 public void setOrgManagerUserId(String orgManagerUserId) {
168 this.orgManagerUserId = orgManagerUserId;
171 public String getJobTitle() {
175 public void setJobTitle(String jobTitle) {
176 this.jobTitle = jobTitle;
179 public String getLoginId() {
183 public void setLoginId(String loginId) {
184 this.loginId = loginId;
187 public Boolean getActive() {
191 public void setActive(Boolean active) {
192 this.active = active;
195 public List<RemoteRole> getRoles() {
199 public void setRoles(List<RemoteRole> roles) {
204 public String toString() {
205 return "RemoteUserWithRoles [orgId=" + orgId + ", managerId=" + managerId + ", firstName=" + firstName
206 + ", middleInitial=" + middleInitial + ", lastName=" + lastName + ", phone=" + phone + ", email="
207 + email + ", hrid=" + hrid + ", orgUserId=" + orgUserId + ", orgCode=" + orgCode + ", orgManagerUserId="
208 + orgManagerUserId + ", jobTitle=" + jobTitle + ", loginId=" + loginId + ", active=" + active
209 + ", roles=" + roles + "]";