1 package org.openecomp.portalapp.portal.transport;
3 import java.util.ArrayList;
7 * ================================================================================
9 * ================================================================================
10 * Copyright (C) 2017 AT&T Intellectual Property
11 * ================================================================================
12 * Licensed under the Apache License, Version 2.0 (the "License");
13 * you may not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
16 * http://www.apache.org/licenses/LICENSE-2.0
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
23 * ================================================================================
27 * User description which we receive in response from request to remote
28 * application: applicationsRestClientService.get(RemoteUserWithRoles[].class,
29 * appId, "/users"). It contains the most important info about remote
30 * application user including his roles in this application.
32 public class RemoteUserWithRoles {
36 private Long managerId;
38 private String firstName;
40 private String middleInitial;
42 private String lastName;
50 private String orgUserId;
52 private String orgCode;
54 private String orgManagerUserId;
56 private String jobTitle;
58 private String loginId;
60 private Boolean active;
62 private List<RemoteRole> roles = new ArrayList<RemoteRole>();
64 public Long getOrgId() {
68 public void setOrgId(Long orgId) {
72 public Long getManagerId() {
76 public void setManagerId(Long managerId) {
77 this.managerId = managerId;
80 public String getFirstName() {
84 public void setFirstName(String firstName) {
85 this.firstName = firstName;
88 public String getMiddleInitial() {
92 public void setMiddleInitial(String middleInitial) {
93 this.middleInitial = middleInitial;
96 public String getLastName() {
100 public void setLastName(String lastName) {
101 this.lastName = lastName;
104 public String getPhone() {
108 public void setPhone(String phone) {
112 public String getEmail() {
116 public void setEmail(String email) {
120 public String getHrid() {
124 public void setHrid(String hrid) {
128 public String getOrgUserId() {
132 public void setOrgUserId(String orgUserId) {
133 if(this.orgUserId == null)
134 this.orgUserId = orgUserId;
137 public String getOrgCode() {
141 public void setOrgCode(String orgCode) {
142 this.orgCode = orgCode;
145 public String getOrgManagerUserId() {
146 return orgManagerUserId;
149 public void setOrgManagerUserId(String orgManagerUserId) {
150 this.orgManagerUserId = orgManagerUserId;
153 public String getJobTitle() {
157 public void setJobTitle(String jobTitle) {
158 this.jobTitle = jobTitle;
161 public String getLoginId() {
165 public void setLoginId(String loginId) {
166 this.loginId = loginId;
169 public Boolean getActive() {
173 public void setActive(Boolean active) {
174 this.active = active;
177 public List<RemoteRole> getRoles() {
181 public void setRoles(List<RemoteRole> roles) {
186 public String toString() {
187 return "RemoteUserWithRoles [orgId=" + orgId + ", managerId=" + managerId + ", firstName=" + firstName
188 + ", middleInitial=" + middleInitial + ", lastName=" + lastName + ", phone=" + phone + ", email="
189 + email + ", hrid=" + hrid + ", orgUserId=" + orgUserId + ", orgCode=" + orgCode + ", orgManagerUserId="
190 + orgManagerUserId + ", jobTitle=" + jobTitle + ", loginId=" + loginId + ", active=" + active
191 + ", roles=" + roles + "]";