Search in sources :

Example 1 with WsStemSaveResults

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

the class GrouperFactoryServiceImplLocal method makeWsStemSaveResults.

@Override
public WsStemSaveResults makeWsStemSaveResults(String username, String stemPath) {
    WsStemSaveResults wsStemSaveResults = new WsStemSaveResults();
    WsStemSaveResult wsStemSaveResult = new WsStemSaveResult();
    WsResultMeta wsResultMeta = new WsResultMeta();
    wsResultMeta.setResultCode(SUCCESS);
    wsStemSaveResult.setResultMetadata(wsResultMeta);
    wsStemSaveResults.setResultMetadata(wsResultMeta);
    wsStemSaveResults.setResults(new WsStemSaveResult[] { wsStemSaveResult });
    return wsStemSaveResults;
}
Also used : WsResultMeta(edu.internet2.middleware.grouperClient.ws.beans.WsResultMeta) WsStemSaveResults(edu.internet2.middleware.grouperClient.ws.beans.WsStemSaveResults) WsStemSaveResult(edu.internet2.middleware.grouperClient.ws.beans.WsStemSaveResult)

Example 2 with WsStemSaveResults

use of edu.internet2.middleware.grouperClient.ws.beans.WsStemSaveResults 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 WsResultMeta (edu.internet2.middleware.grouperClient.ws.beans.WsResultMeta)1 WsStem (edu.internet2.middleware.grouperClient.ws.beans.WsStem)1 WsStemLookup (edu.internet2.middleware.grouperClient.ws.beans.WsStemLookup)1 WsStemSaveResult (edu.internet2.middleware.grouperClient.ws.beans.WsStemSaveResult)1 WsStemSaveResults (edu.internet2.middleware.grouperClient.ws.beans.WsStemSaveResults)1 WsStemToSave (edu.internet2.middleware.grouperClient.ws.beans.WsStemToSave)1 WsSubjectLookup (edu.internet2.middleware.grouperClient.ws.beans.WsSubjectLookup)1