use of org.danann.cernunnos.TaskResponse in project uPortal by Jasig.
the class CernunnosDataExporter method exportDataElement.
@Override
protected Element exportDataElement(String id) {
final RuntimeRequestResponse request = new RuntimeRequestResponse();
request.setAttribute(this.idAttributeName, id);
final ReturnValueImpl result = new ReturnValueImpl();
final TaskResponse response = new RuntimeRequestResponse(Collections.<String, Object>singletonMap("Attributes.RETURN_VALUE", result));
task.perform(request, response);
return (Element) result.getValue();
}
use of org.danann.cernunnos.TaskResponse in project uPortal by Jasig.
the class CernunnosDataImporter method importDataElement.
/* (non-Javadoc)
* @see org.apereo.portal.io.xml.crn.AbstractDom4jImporter#importDataNode(org.apereo.portal.utils.Tuple)
*/
@Override
protected void importDataElement(Tuple<String, Element> data) {
final RuntimeRequestResponse request = new RuntimeRequestResponse();
request.setAttribute(Attributes.NODE, data.second);
request.setAttribute(Attributes.LOCATION, StringUtils.trimToEmpty(data.first));
final ReturnValueImpl result = new ReturnValueImpl();
final TaskResponse response = new RuntimeRequestResponse(Collections.<String, Object>singletonMap("Attributes.RETURN_VALUE", result));
this.task.perform(request, response);
}
Aggregations