[
https://issues.apache.org/jira/browse/JCR-1259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555532#action_12555532
]
Carsten Ziegeler commented on JCR-1259:
---------------------------------------
Hi, I've attached a new patch containing most of your changes:
1) ItemFilter vs. Predicate
I replaced the ItemFilter with predicate
2) TreeWalkerListener vs. ItemVisitor
I removed the tree walker stuff and added a new abstract item visitor
implementation (like the TraversingItemVisitor) which does the same as the
former tree walker. I think we can improve this implementation over time (like
adding the visitors you're suggestion).
WDYT?
> Utility code for filtering and packaging trees
> ----------------------------------------------
>
> Key: JCR-1259
> URL: https://issues.apache.org/jira/browse/JCR-1259
> Project: Jackrabbit
> Issue Type: New Feature
> Components: jackrabbit-jcr-commons
> Reporter: Carsten Ziegeler
> Attachments: jcr-commons-filtering.zip, jcr-commons-filtering2.zip
>
>
> The attached zip contains new utility code for filtering and packaging trees
> in the repository.
> A tree can be traversed by the provided tree walker. During the traversal
> configurable filters can be applied. The filters have influence on the
> traversal, like skipping nodes or properties.
> Included filters test the node name, node type etc. Custom filters are
> possible as well.
> A tree walker notifies a tree walker listener (interface) whenever it
> traverses an item.
> The second utility code is able to package a whole tree (through a
> description) and export this in some way - the exporter is an interface and
> could e.g. be an exporter serializing the tree into a zip archiv etc.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.