1 | |
package org.kuali.rice.kim.impl.responsibility |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
import org.apache.commons.lang.StringUtils |
20 | |
import org.kuali.rice.kim.bo.Person |
21 | |
import org.kuali.rice.kim.impl.group.GroupBo |
22 | |
import org.kuali.rice.kim.util.KimConstants |
23 | |
import org.springframework.util.AutoPopulatingList |
24 | |
|
25 | |
import org.kuali.rice.kim.impl.role.RoleBo |
26 | |
|
27 | |
|
28 | |
class UberResponsibilityBo extends ResponsibilityBo { |
29 | |
|
30 | |
private static final long serialVersionUID = 1L |
31 | |
|
32 | 0 | List<RoleBo> assignedToRoles = new AutoPopulatingList(RoleBo.class) |
33 | |
String assignedToRoleNamespaceForLookup |
34 | |
String assignedToRoleNameForLookup |
35 | |
RoleBo assignedToRole |
36 | |
String assignedToPrincipalNameForLookup |
37 | |
Person assignedToPrincipal |
38 | |
String assignedToGroupNamespaceForLookup |
39 | |
String assignedToGroupNameForLookup |
40 | |
GroupBo assignedToGroup |
41 | |
String attributeName |
42 | |
String attributeValue |
43 | |
String detailCriteria |
44 | |
|
45 | |
public String getAssignedToRolesToDisplay() { |
46 | 0 | StringBuffer assignedToRolesToDisplay = new StringBuffer() |
47 | 0 | for (RoleBo roleImpl: assignedToRoles) { |
48 | 0 | assignedToRolesToDisplay.append(getRoleDetailsToDisplay(roleImpl)) |
49 | |
} |
50 | 0 | return StringUtils.chomp(assignedToRolesToDisplay.toString(), KimConstants.KimUIConstants.COMMA_SEPARATOR) |
51 | |
} |
52 | |
|
53 | |
public String getRoleDetailsToDisplay(RoleBo roleImpl) { |
54 | 0 | return roleImpl.getNamespaceCode().trim() + " " + roleImpl.getName().trim() + KimConstants.KimUIConstants.COMMA_SEPARATOR |
55 | |
} |
56 | |
} |
57 | |
|