use of edu.internet2.middleware.grouperClient.api.GcStemSave in project uhgroupings by uhawaii-system-its-ti-iam.
the class GrouperFactoryServiceImpl method makeWsStemSaveResults.
@Override
public WsStemSaveResults makeWsStemSaveResults(String username, String stemPath) {
String[] splitString = stemPath.split(":");
String splitStringName = splitString[splitString.length - 1];
WsStemToSave stemToSave = new WsStemToSave();
WsStemLookup stemLookup = new WsStemLookup();
stemLookup.setStemName(stemPath);
WsStem stem = new WsStem();
stem.setName(stemPath);
stem.setExtension(splitStringName);
stem.setDescription(splitStringName);
stem.setDisplayExtension(splitStringName);
stemToSave.setWsStem(stem);
stemToSave.setWsStemLookup(stemLookup);
WsSubjectLookup subject = makeWsSubjectLookup(username);
return new GcStemSave().addStemToSave(stemToSave).assignActAsSubject(subject).execute();
}
Aggregations