use of org.alfresco.service.cmr.view.ExporterCrawlerParameters in project alfresco-remote-api by Alfresco.
the class SiteExportGet method doPeopleACPExport.
protected void doPeopleACPExport(final List<NodeRef> peopleNodes, SiteInfo site, CloseIgnoringOutputStream writeTo) throws IOException {
if (!peopleNodes.isEmpty()) {
// Build the parameters
ExporterCrawlerParameters parameters = new ExporterCrawlerParameters();
parameters.setExportFrom(new Location(peopleNodes.toArray(new NodeRef[peopleNodes.size()])));
parameters.setCrawlChildNodes(true);
parameters.setCrawlSelf(true);
parameters.setCrawlContent(true);
// And the export handler
ACPExportPackageHandler handler = new ACPExportPackageHandler(writeTo, new File(site.getShortName() + "-people.xml"), new File(site.getShortName() + "-people"), mimetypeService);
// Do the export
exporterService.exportView(handler, parameters, null);
}
}
Aggregations