Package org.apache.jackrabbit.vault.fs.filter

Examples of org.apache.jackrabbit.vault.fs.filter.NodeTypeItemFilter


                    if (clazz != null && clazz.length() > 0) {
                        filter = (ItemFilter) helper.create(child);
                    } else {
                        // create filter based on some attributes
                        if (attrs.getNamedItem("nodeType") != null) {
                            filter = new NodeTypeItemFilter();
                        } else if (attrs.getNamedItem("isNode") != null) {
                            filter = new IsNodeFilter();
                        } else if (attrs.getNamedItem("name") != null) {
                            filter = new NameItemFilter();
                        } else if (attrs.getNamedItem("isMandatory") != null) {
View Full Code Here


    public FileFolderAggregator() {
        getMatchFilter().addInclude(
                new FileFolderNodeFilter()
        ).seal();
        getContentFilter().addExclude(
                new NodeTypeItemFilter(JcrConstants.NT_HIERARCHYNODE, true, 1, Integer.MAX_VALUE)
        ).seal();
    }
View Full Code Here

     * If no match filter is defined, add the nt:nodeType as node type filter.
     */
    public boolean matches(Node node, String path) throws RepositoryException {
        if (getMatchFilter().isEmpty()) {
            getMatchFilter().addInclude(
                    new NodeTypeItemFilter(JcrConstants.NT_NODETYPE, true)
            );
        }
        return super.matches(node, path);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.vault.fs.filter.NodeTypeItemFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.