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