Search in sources :

Example 1 with FilterContentPackage

use of org.apache.jackrabbit.commons.packaging.FilterContentPackage in project jackrabbit by apache.

the class TraverseNodes method execute.

public NodeIterator execute() throws Exception {
    FilterContentPackage pack = new FilterContentPackage();
    pack.addContent(getPath(), new IsNodePredicate());
    return new NodeIteratorAdapter(pack.getItems(getSession()));
}
Also used : FilterContentPackage(org.apache.jackrabbit.commons.packaging.FilterContentPackage) IsNodePredicate(org.apache.jackrabbit.commons.predicate.IsNodePredicate) NodeIteratorAdapter(org.apache.jackrabbit.commons.iterator.NodeIteratorAdapter)

Aggregations

NodeIteratorAdapter (org.apache.jackrabbit.commons.iterator.NodeIteratorAdapter)1 FilterContentPackage (org.apache.jackrabbit.commons.packaging.FilterContentPackage)1 IsNodePredicate (org.apache.jackrabbit.commons.predicate.IsNodePredicate)1