GenericRole.java
1.77 KB
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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.cq.projects.api.ProjectMemberRole
*/
package com.adobe.cq.projects.impl.team;
import com.adobe.cq.projects.api.ProjectMemberRole;
import com.adobe.cq.projects.impl.team.RoleClass;
public class GenericRole
implements ProjectMemberRole {
private final String id;
private final String displayName;
private final RoleClass roleClass;
private String[] defaultMembers = null;
public GenericRole(String id, String displayName, RoleClass roleClass, String[] defaultMembers) {
this.id = id;
this.displayName = displayName;
this.roleClass = roleClass;
this.defaultMembers = defaultMembers;
}
public String getId() {
return this.id;
}
public String getDisplayName() {
return this.displayName;
}
public RoleClass getRoleClass() {
return this.roleClass;
}
public String[] getDefaultMembers() {
return this.defaultMembers;
}
public void setDefaultMembers(String[] defaultMembers) {
this.defaultMembers = defaultMembers;
}
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof ProjectMemberRole)) {
return false;
}
ProjectMemberRole that = (ProjectMemberRole)o;
return this.id.equals(that.getId());
}
public int hashCode() {
return this.id.hashCode();
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("GenericRole");
sb.append("{id='").append(this.id).append('\'');
sb.append(", displayName='").append(this.displayName).append('\'');
sb.append('}');
return sb.toString();
}
}