[PORTAL-7] Rebase
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / transport / UserApplicationRoles.java
1 /*-
2  * ================================================================================
3  * ECOMP Portal SDK
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ================================================================================
19  */
20 package org.openecomp.portalapp.portal.transport;
21
22 import java.util.ArrayList;
23 import java.util.List;
24
25 /**
26  * A specific application user and his application specific roles.
27  *
28  */
29 public class UserApplicationRoles {
30
31         private Long appId;
32
33         private String orgUserId;
34
35         private String firstName;
36
37         private String lastName;
38
39         private List<RemoteRole> roles = new ArrayList<RemoteRole>();
40
41         public Long getAppId() {
42                 return appId;
43         }
44
45         public void setAppId(Long appId) {
46                 this.appId = appId;
47         }
48
49         public String getOrgUserId() {
50                 return orgUserId;
51         }
52
53         public void setOrgUserId(String orgUserId) {
54                 this.orgUserId = orgUserId;
55         }
56
57         public String getFirstName() {
58                 return firstName;
59         }
60
61         public void setFirstName(String firstName) {
62                 this.firstName = firstName;
63         }
64
65         public String getLastName() {
66                 return lastName;
67         }
68
69         public void setLastName(String lastName) {
70                 this.lastName = lastName;
71         }
72
73         public List<RemoteRole> getRoles() {
74                 return roles;
75         }
76
77         public void setRoles(List<RemoteRole> roles) {
78                 this.roles = roles;
79         }
80         
81         @Override
82         public String toString() {
83                 return "UserApplicationRoles [appId=" + appId + ", orgUserId=" + orgUserId + ", firstName=" + firstName
84                                 + ", lastName=" + lastName + ", roles=" + roles + "]";
85         }
86 }