1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.bo.role.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.ArrayList; |
20 | |
import java.util.List; |
21 | |
|
22 | |
import org.apache.commons.lang.builder.ToStringBuilder; |
23 | |
import org.kuali.rice.core.util.AttributeSet; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
public class RoleMembershipInfo implements Serializable { |
32 | |
private static final long serialVersionUID = 1L; |
33 | |
protected String roleId; |
34 | |
protected String roleMemberId; |
35 | |
protected String embeddedRoleId; |
36 | |
protected String memberId; |
37 | |
protected String memberTypeCode; |
38 | |
protected String roleSortingCode; |
39 | |
protected AttributeSet qualifier; |
40 | 0 | protected List<DelegateInfo> delegates = new ArrayList<DelegateInfo>(); |
41 | |
|
42 | |
|
43 | |
@SuppressWarnings("unused") |
44 | 0 | private RoleMembershipInfo() {} |
45 | |
|
46 | |
public RoleMembershipInfo(String roleId, String roleMemberId, String memberId, String memberTypeCode, |
47 | |
AttributeSet qualifier) { |
48 | 0 | super(); |
49 | 0 | this.roleId = roleId; |
50 | 0 | if ( memberId == null ) { |
51 | 0 | throw new IllegalArgumentException( "memberId may not be null" ); |
52 | |
} |
53 | 0 | this.memberId = memberId; |
54 | 0 | if ( memberTypeCode == null ) { |
55 | 0 | throw new IllegalArgumentException( "memberTypeCode may not be null" ); |
56 | |
} |
57 | 0 | this.memberTypeCode = memberTypeCode; |
58 | 0 | this.roleMemberId = roleMemberId; |
59 | 0 | this.qualifier = qualifier; |
60 | 0 | } |
61 | |
|
62 | |
public String getRoleId() { |
63 | 0 | return this.roleId; |
64 | |
} |
65 | |
public void setRoleId(String roleId) { |
66 | 0 | this.roleId = roleId; |
67 | 0 | } |
68 | |
public AttributeSet getQualifier() { |
69 | 0 | return this.qualifier; |
70 | |
} |
71 | |
public void setQualifier(AttributeSet qualifier) { |
72 | 0 | this.qualifier = qualifier; |
73 | 0 | } |
74 | |
public List<DelegateInfo> getDelegates() { |
75 | 0 | return this.delegates; |
76 | |
} |
77 | |
public void setDelegates(List<DelegateInfo> delegates) { |
78 | 0 | this.delegates = delegates; |
79 | 0 | } |
80 | |
|
81 | |
public String getRoleMemberId() { |
82 | 0 | return this.roleMemberId; |
83 | |
} |
84 | |
|
85 | |
|
86 | |
public void setRoleMemberId(String roleMemberId) { |
87 | 0 | this.roleMemberId = roleMemberId; |
88 | 0 | } |
89 | |
|
90 | |
|
91 | |
public String getMemberId() { |
92 | 0 | return this.memberId; |
93 | |
} |
94 | |
|
95 | |
|
96 | |
public void setMemberId(String memberId) { |
97 | 0 | this.memberId = memberId; |
98 | 0 | } |
99 | |
|
100 | |
|
101 | |
public String getMemberTypeCode() { |
102 | 0 | return this.memberTypeCode; |
103 | |
} |
104 | |
|
105 | |
|
106 | |
public void setMemberTypeCode(String memberTypeCode) { |
107 | 0 | this.memberTypeCode = memberTypeCode; |
108 | 0 | } |
109 | |
|
110 | |
public String getEmbeddedRoleId() { |
111 | 0 | return this.embeddedRoleId; |
112 | |
} |
113 | |
|
114 | |
public void setEmbeddedRoleId(String embeddedRoleId) { |
115 | 0 | this.embeddedRoleId = embeddedRoleId; |
116 | 0 | } |
117 | |
|
118 | |
|
119 | |
|
120 | |
|
121 | |
public String toString() { |
122 | 0 | return new ToStringBuilder( this ) |
123 | |
.append( "memberTypeCode", this.memberTypeCode ) |
124 | |
.append( "memberId", this.memberId ) |
125 | |
.append( "roleId", this.roleId ) |
126 | |
.append( "qualifier", this.qualifier ).toString(); |
127 | |
} |
128 | |
|
129 | |
|
130 | |
|
131 | |
|
132 | |
public String getRoleSortingCode() { |
133 | 0 | return this.roleSortingCode; |
134 | |
} |
135 | |
|
136 | |
|
137 | |
|
138 | |
|
139 | |
public void setRoleSortingCode(String roleSortingCode) { |
140 | 0 | this.roleSortingCode = roleSortingCode; |
141 | 0 | } |
142 | |
} |