Search in sources :

Example 1 with WsGroupLookup

use of edu.internet2.middleware.grouperClient.ws.beans.WsGroupLookup in project uhgroupings by uhawaii-system-its-ti-iam.

the class GrouperFactoryServiceImpl method addEmptyGroup.

@Override
public WsGroupSaveResults addEmptyGroup(String username, String path) {
    WsGroupToSave groupToSave = new WsGroupToSave();
    WsGroupLookup groupLookup = makeWsGroupLookup(path);
    WsGroup group = new WsGroup();
    group.setName(path);
    groupToSave.setWsGroup(group);
    groupToSave.setWsGroupLookup(groupLookup);
    WsSubjectLookup subjectLookup = makeWsSubjectLookup(username);
    return new GcGroupSave().addGroupToSave(groupToSave).assignActAsSubject(subjectLookup).execute();
}
Also used : 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) WsGroupLookup(edu.internet2.middleware.grouperClient.ws.beans.WsGroupLookup)

Example 2 with WsGroupLookup

use of edu.internet2.middleware.grouperClient.ws.beans.WsGroupLookup in project uhgroupings by uhawaii-system-its-ti-iam.

the class GrouperFactoryServiceImpl method makeWsGroupLookup.

/**
 * @param group: group to be looked up
 * @return a WsGroupLookup with group as the group name
 */
@Override
public WsGroupLookup makeWsGroupLookup(String group) {
    WsGroupLookup groupLookup = new WsGroupLookup();
    groupLookup.setGroupName(group);
    return groupLookup;
}
Also used : WsGroupLookup(edu.internet2.middleware.grouperClient.ws.beans.WsGroupLookup)

Example 3 with WsGroupLookup

use of edu.internet2.middleware.grouperClient.ws.beans.WsGroupLookup in project uhgroupings by uhawaii-system-its-ti-iam.

the class GrouperFactoryServiceImplLocal method makeWsGroupLookup.

/**
 * @param group: group to be looked up
 * @return a WsGroupLookup with group as the group name
 */
@Override
public WsGroupLookup makeWsGroupLookup(String group) {
    WsGroupLookup groupLookup = new WsGroupLookup();
    groupLookup.setGroupName(group);
    return groupLookup;
}
Also used : WsGroupLookup(edu.internet2.middleware.grouperClient.ws.beans.WsGroupLookup)

Example 4 with WsGroupLookup

use of edu.internet2.middleware.grouperClient.ws.beans.WsGroupLookup in project uPortal by Jasig.

the class GrouperEntityGroupStore method update.

/**
 * @see IEntityGroupStore#update(IEntityGroup)
 */
@Override
public void update(IEntityGroup group) throws GroupsException {
    // assume key is fully qualified group name
    String groupName = group.getLocalKey();
    String description = group.getDescription();
    // the name is the displayExtension
    String displayExtension = group.getName();
    WsGroupToSave wsGroupToSave = new WsGroupToSave();
    wsGroupToSave.setCreateParentStemsIfNotExist("T");
    wsGroupToSave.setWsGroupLookup(new WsGroupLookup(groupName, null));
    WsGroup wsGroup = new WsGroup();
    wsGroup.setName(groupName);
    wsGroup.setDisplayExtension(displayExtension);
    wsGroup.setDescription(description);
    wsGroupToSave.setWsGroup(wsGroup);
    new GcGroupSave().addGroupToSave(wsGroupToSave).execute();
    updateMembers(group);
}
Also used : GcGroupSave(edu.internet2.middleware.grouperClient.api.GcGroupSave) WsGroup(edu.internet2.middleware.grouperClient.ws.beans.WsGroup) WsGroupToSave(edu.internet2.middleware.grouperClient.ws.beans.WsGroupToSave) WsGroupLookup(edu.internet2.middleware.grouperClient.ws.beans.WsGroupLookup)

Aggregations

WsGroupLookup (edu.internet2.middleware.grouperClient.ws.beans.WsGroupLookup)4 GcGroupSave (edu.internet2.middleware.grouperClient.api.GcGroupSave)2 WsGroup (edu.internet2.middleware.grouperClient.ws.beans.WsGroup)2 WsGroupToSave (edu.internet2.middleware.grouperClient.ws.beans.WsGroupToSave)2 WsSubjectLookup (edu.internet2.middleware.grouperClient.ws.beans.WsSubjectLookup)1