Package org.apache.jackrabbit.oak.plugins.document.Branch

Examples of org.apache.jackrabbit.oak.plugins.document.Branch.BranchCommit


        // also consider nodes with not yet stored modifications (OAK-1107)
        Revision minRev = new Revision(minTimestamp, 0, getClusterId());
        addPathsForDiff(path, paths, getPendingModifications().getPaths(minRev));
        for (Revision r : new Revision[]{fromRev, toRev}) {
            if (r.isBranch()) {
                BranchCommit c = getBranches().getBranchCommit(r);
                if (c != null) {
                    addPathsForDiff(path, paths, c.getModifiedPaths());
                }
            }
        }
        for (String p : paths) {
            DocumentNodeState fromNode = getNode(p, fromRev);
View Full Code Here


     * @return the branch commit or {@code null} if it doesn't exist.
     */
    @CheckForNull
    BranchCommit getBranchCommit(@Nonnull Revision r) {
        for (Branch b : branches) {
            BranchCommit c = b.getCommit(r);
            if (c != null) {
                return c;
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.document.Branch.BranchCommit

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.