Search in sources :

Example 1 with WsGroupDetail

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();
}
Also used : WsGroupDetail(edu.internet2.middleware.grouperClient.ws.beans.WsGroupDetail) WsSubjectLookup(edu.internet2.middleware.grouperClient.ws.beans.WsSubjectLookup) GcGroupSave(edu.internet2.middleware.grouperClient.api.GcGroupSave) WsGroup(edu.internet2.middleware.grouperClient.ws.beans.WsGroup) WsGroupToSave(edu.internet2.middleware.grouperClient.ws.beans.WsGroupToSave)

Aggregations

GcGroupSave (edu.internet2.middleware.grouperClient.api.GcGroupSave)1 WsGroup (edu.internet2.middleware.grouperClient.ws.beans.WsGroup)1 WsGroupDetail (edu.internet2.middleware.grouperClient.ws.beans.WsGroupDetail)1 WsGroupToSave (edu.internet2.middleware.grouperClient.ws.beans.WsGroupToSave)1 WsSubjectLookup (edu.internet2.middleware.grouperClient.ws.beans.WsSubjectLookup)1