1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.document.rule;
17
18 import java.util.ArrayList;
19 import java.util.List;
20
21 import org.kuali.rice.kim.bo.ui.KimDocumentRoleMember;
22 import org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMember;
23
24
25
26
27
28
29
30 public class ActiveRoleMemberHelper {
31
32 public List<KimDocumentRoleMember> getActiveRoleMembers (List<KimDocumentRoleMember> roleMembers){
33 List<KimDocumentRoleMember> activeRoleMembers = new ArrayList<KimDocumentRoleMember>();
34 for (KimDocumentRoleMember roleMember : roleMembers)
35 {
36 if (roleMember.isActive())
37 {
38 activeRoleMembers.add(roleMember);
39 }
40 }
41 return activeRoleMembers;
42 }
43
44 public List<RoleDocumentDelegationMember> getActiveDelegationRoleMembers(List<RoleDocumentDelegationMember> roleMembers) {
45 List<RoleDocumentDelegationMember> activeRoleMembers = new ArrayList<RoleDocumentDelegationMember>();
46 for (RoleDocumentDelegationMember roleMember : roleMembers) {
47 if (roleMember.isActive()) {
48 activeRoleMembers.add(roleMember);
49 }
50 }
51 return activeRoleMembers;
52 }
53 }