use of edu.cornell.kfs.ksr.businessobject.SecurityGroupTab in project cu-kfs by CU-CommunityApps.
the class SecurityRequestDocumentServiceImpl method buildSecurityRequestRoles.
protected void buildSecurityRequestRoles(SecurityRequestDocument document) {
List<SecurityRequestRole> requestRoles = new ArrayList<SecurityRequestRole>();
long roleRequestId = 1;
for (SecurityGroupTab groupTab : document.getSecurityGroup().getSecurityGroupTabs()) {
if (groupTab.isActive()) {
for (SecurityProvisioningGroup provisioningGroup : groupTab.getSecurityProvisioningGroups()) {
if (provisioningGroup.isActive()) {
SecurityRequestRole requestRole = new SecurityRequestRole();
requestRole.setDocumentNumber(document.getDocumentNumber());
requestRole.setRoleId(provisioningGroup.getRoleId());
requestRole.setRoleRequestId(Long.valueOf(roleRequestId));
buildSecurityRequestRoleQualifications(requestRole, document.getPrincipalId());
roleRequestId++;
requestRoles.add(requestRole);
}
}
}
}
document.setSecurityRequestRoles(requestRoles);
}
Aggregations