use of edu.internet2.middleware.grouperClient.ws.beans.WsGroupDetail in project uhgroupings by uhawaii-system-its-ti-iam.
the class GrouperFactoryServiceImpl method addCompositeGroup.
@Override
public WsGroupSaveResults addCompositeGroup(String username, String parentGroupPath, String compositeType, String leftGroupPath, String rightGroupPath) {
WsGroupToSave groupToSave = new WsGroupToSave();
WsGroup group = new WsGroup();
WsGroupDetail wsGroupDetail = new WsGroupDetail();
// get the left and right groups from the database/grouper
WsGroup leftGroup = makeWsFindGroupsResults(leftGroupPath).getGroupResults()[0];
WsGroup rightGroup = makeWsFindGroupsResults(rightGroupPath).getGroupResults()[0];
wsGroupDetail.setCompositeType(compositeType);
wsGroupDetail.setLeftGroup(leftGroup);
wsGroupDetail.setRightGroup(rightGroup);
group.setName(parentGroupPath);
group.setDetail(wsGroupDetail);
groupToSave.setWsGroup(group);
WsSubjectLookup lookup = makeWsSubjectLookup(username);
return new GcGroupSave().addGroupToSave(groupToSave).assignActAsSubject(lookup).execute();
}
Aggregations