[ 
https://issues.apache.org/jira/browse/JCRVLT-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17146002#comment-17146002
 ] 

Tobias Bocanegra commented on JCRVLT-447:
-----------------------------------------

hmm..if you only need the docview export of a node (without the binary 
properties), you probably can do something like you suggest in your patch:

{noformat}
        VaultFileSystem jcrfs = Mounter.mount(config, metaInf.getFilter(), 
addr, opts.getRootPath(), s);
        JarExporter exporter = new JarExporter(out, opts.getCompressionLevel());
        AbstractExporter exporter = opts.isNodeOnly() ? new NodeExporter(out) : 
new JarExporter(out, opts.getCompressionLevel());
        exporter.setProperties(metaInf.getProperties());
        if (opts.getListener() != null) {
            exporter.setVerbose(opts.getListener());
        }
        if (opts.getPostProcessor() != null) {
            exporter.export(jcrfs.getRoot(), true);
            opts.getPostProcessor().process(exporter);
            exporter.close();
        } else {
            exporter.export(jcrfs.getRoot());
        }
        jcrfs.unmount();
{noformat}

> Add AbstractExporter implementation to export a single node
> -----------------------------------------------------------
>
>                 Key: JCRVLT-447
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-447
>             Project: Jackrabbit FileVault
>          Issue Type: Improvement
>          Components: Misc
>            Reporter: Manfred Baedke
>            Priority: Minor
>
> Sometimes it may be convenient to not export a full package, but only the 
> system view of the requested node. I propose adding a suitable 
> AbstractExporter implementation as linked below.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to