File | Line |
---|
org/kuali/rice/kim/impl/permission/PermissionServiceImpl.java | 269 |
org/kuali/rice/kim/impl/permission/PermissionServiceImpl.java | 299 |
List<String> roleIds = getRoleIdsForPermissionTemplate( namespaceCode, permissionTemplateName, permissionDetails);
if ( roleIds.isEmpty() ) {
return Collections.emptyList();
}
Collection<RoleMembership> roleMembers = roleService.getRoleMembers( roleIds,qualification);
List<Assignee> results = new ArrayList<Assignee>();
for ( RoleMembership rm : roleMembers ) {
List<DelegateType.Builder> delegateBuilderList = new ArrayList<DelegateType.Builder>();
if (!rm.getDelegates().isEmpty()) {
for (DelegateType delegate : rm.getDelegates()){
delegateBuilderList.add(DelegateType.Builder.create(delegate));
}
}
if ( MemberType.PRINCIPAL.equals(rm.getMemberType()) ) {
results.add (Assignee.Builder.create(rm.getMemberId(), null, delegateBuilderList).build());
} else { // a group membership |
File | Line |
---|
org/kuali/rice/kim/impl/role/RoleServiceImpl.java | 298 |
org/kuali/rice/kim/impl/role/RoleServiceImpl.java | 388 |
if (roleTypeService != null) {
List<RoleMembership> las = roleIdToMembershipMap.get(roleMemberBo.getRoleId());
if (las == null) {
las = new ArrayList<RoleMembership>();
roleIdToMembershipMap.put(roleMemberBo.getRoleId(), las);
}
RoleMembership mi = RoleMembership.Builder.create(
roleMemberBo.getRoleId(),
roleMemberBo.getRoleMemberId(),
roleMemberBo.getMemberId(),
roleMemberBo.getMemberType(),
roleMemberBo.getAttributes()).build();
las.add(mi);
} else {
results.add(roleMemberBo.getAttributes());
}
} else if (MemberType.ROLE.equals(roleMemberBo.getMemberType())) { |