blob: 8dcca6b6e14204dfb38eb820fd57770b5033df5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
package org.openecomp.sdc.common.datastructure;
import java.util.Set;
public class UserContext {
/**
* a pojo which holds the business logic layer to be aware of the user context as received in the authentication cookie
* Story https://jira.web.labs.att.com/browse/ASDC-232
* Author: Idan Agam
*/
private String userId;
private String firstName;
private String lastName;
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
private Set<String> userRoles;
public UserContext(String userId, Set<String> userRoles, String firstName, String lastName) {
this.userId = userId;
this.userRoles = userRoles;
this.firstName = firstName;
this.lastName = lastName;
}
public UserContext(String userId) {
this.userId = userId;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public Set<String> getUserRoles() {
return userRoles;
}
public void setUserRoles(Set<String> userRoles) {
this.userRoles = userRoles;
}
@Override
public String toString() {
return "UserContext{" + "userId='" + userId + '\'' + ", firstName='" + firstName + '\'' + ", lastname='" + lastName + '\'' + ", userRoles=" + userRoles + '}';
}
}
|