Package org.apache.jackrabbit.oak.core

Examples of org.apache.jackrabbit.oak.core.ReadOnlyTree


            throw new CommitFailedException(new IllegalStateException("Mandatory privileges root is missing."));
        }
    }

    private static Tree getPrivilegesTree(NodeState rootState) {
        Tree root = new ReadOnlyTree(rootState);
        Tree system = root.getChild(JcrConstants.JCR_SYSTEM);
        if (system != null) {
            return system.getChild(REP_PRIVILEGES);
        }
        return null;
    }
View Full Code Here


    //--------------------------------------------------< ValidatorProvider >---
    @Nonnull
    @Override
    public Validator getRootValidator(NodeState before, NodeState after) {

        NodeUtil rootBefore = new NodeUtil(new ReadOnlyTree(before));
        NodeUtil rootAfter = new NodeUtil(new ReadOnlyTree(after));

        return new UserValidator(rootBefore, rootAfter, this);
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.core.ReadOnlyTree

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.