Search in sources :

Example 1 with WsStemToSave

use of edu.internet2.middleware.grouperClient.ws.beans.WsStemToSave 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();
}
Also used : WsSubjectLookup(edu.internet2.middleware.grouperClient.ws.beans.WsSubjectLookup) WsStemLookup(edu.internet2.middleware.grouperClient.ws.beans.WsStemLookup) WsStem(edu.internet2.middleware.grouperClient.ws.beans.WsStem) WsStemToSave(edu.internet2.middleware.grouperClient.ws.beans.WsStemToSave) GcStemSave(edu.internet2.middleware.grouperClient.api.GcStemSave)

Aggregations

GcStemSave (edu.internet2.middleware.grouperClient.api.GcStemSave)1 WsStem (edu.internet2.middleware.grouperClient.ws.beans.WsStem)1 WsStemLookup (edu.internet2.middleware.grouperClient.ws.beans.WsStemLookup)1 WsStemToSave (edu.internet2.middleware.grouperClient.ws.beans.WsStemToSave)1 WsSubjectLookup (edu.internet2.middleware.grouperClient.ws.beans.WsSubjectLookup)1