use of com.evolveum.midpoint.xml.ns._public.model.model_3.ModelPortType in project midpoint by Evolveum.
the class ExportAction method executeAction.
@Override
protected void executeAction() throws Exception {
ModelPortType port = createModelPort();
Writer writer = null;
try {
writer = createWriter();
writeHeader(writer);
if (StringUtils.isNotEmpty(getParams().getOid())) {
//get
executeGet(port, writer);
} else {
//search
executeSearch(port, writer);
}
writeFooter(writer);
writer.flush();
} catch (SAXException | JAXBException | IOException | FaultMessage ex) {
handleError("Couldn't export objects", ex);
} finally {
IOUtils.closeQuietly(writer);
}
}
Aggregations