Search in sources :

Example 1 with WsGroupToSave

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

the class GrouperEntityGroupStore method update.

/** @see IEntityGroupStore#update(IEntityGroup) */
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

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