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();
}
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;
}
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;
}
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);
}
Aggregations