As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
// define which part of the Repository to export Location location = new Location(new StoreRef("workspace", "SpacesStore"); location.setPath("/"); ExporterCrawlerParameters parameters = new ExporterCrawlerParameters(); parameters.setExportFrom(location); // setup an ACP Package Handler to export to an ACP file format ExportPackageHandler handler = new ACPExportPackageHandler(…); // now export (note: we're not interested in progress in the example) exporter.exportView(handler, parameters, null);
new
ExporterService exporterService = getRepositoryImpl().getServiceRegistry().getExporterService();
ExporterService exporter = getServiceRegistry().getExporterService();