Examples of cancelMerge()


Examples of javax.jcr.Node.cancelMerge()

                    NodeId vId = idFactory.createNodeId(value.getString());
                    l.remove(vId);
                }
                cancel = l.isEmpty();
                if (cancel) {
                    node.cancelMerge(version);
                } else {
                    node.doneMerge(version);
                }
                return null;
            }
View Full Code Here

Examples of javax.jcr.Node.cancelMerge()

                }
                Value[] mergeFailed = n.getProperty(JcrConstants.JCR_MERGEFAILED).getValues();

                // resolve all remaining merge conflicts with 'cancel'
                for (int i = 0; i < mergeFailed.length; i++) {
                    n.cancelMerge((Version)getRepositorySession().getNodeByUUID(mergeFailed[i].getString()));
                }
                // adjust removeProperty set
                removePropertyNames.remove(AUTO_MERGE_SET);

            } else if (setProperties.contains(AUTO_MERGE_SET) && setProperties.contains(PREDECESSOR_SET)){
View Full Code Here

Examples of javax.jcr.Node.cancelMerge()

                        // if it is not present in the predecessor set and the
                        // the conflict is resolved by 'cancelMerge'.
                        if (predecSet.contains(href)) {
                            n.doneMerge(version);
                        } else {
                            n.cancelMerge(version);
                        }
                    }
                }
                // adjust setProperty set
                setProperties.remove(AUTO_MERGE_SET);
View Full Code Here

Examples of javax.jcr.Node.cancelMerge()

                    NodeId vId = idFactory.createNodeId(value.getString());
                    l.remove(vId);
                }
                cancel = l.isEmpty();
                if (cancel) {
                    node.cancelMerge(version);
                } else {
                    node.doneMerge(version);
                }
                return null;
            }
View Full Code Here

Examples of javax.jcr.Node.cancelMerge()

    /**
     * @see javax.jcr.version.VersionManager#cancelMerge(String, Version)
     */
    public void cancelMerge(String absPath, Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException {
        Node n = itemManager.getNode(resolver.getQPath(absPath));
        n.cancelMerge(version);
    }

    /**
     * @see javax.jcr.version.VersionManager#createConfiguration(String, Version)
     */
 
View Full Code Here

Examples of javax.jcr.Node.cancelMerge()

                    NodeId vId = idFactory.createNodeId(values[i].getString());
                    l.remove(vId);
                }
                cancel = l.isEmpty();
                if (cancel) {
                    node.cancelMerge(version);
                } else {
                    node.doneMerge(version);
                }
                return null;
            }
View Full Code Here

Examples of javax.jcr.Node.cancelMerge()

                    if (!n.hasProperty(JcrConstants.JCR_MERGEFAILED)) {
                        throw new DavException(DavServletResponse.SC_CONFLICT, "Attempt to resolve non-existing merge conflicts.");
                    }
                    Value[] mergeFailed = n.getProperty(JcrConstants.JCR_MERGEFAILED).getValues();
                    for (int j = 0; j < mergeFailed.length; j++) {
                        n.cancelMerge((Version)getRepositorySession().getNodeByUUID(mergeFailed[j].getString()));
                    }
                    // remove this entry from the changeList
                    changeList.remove(propEntry);
                } else if (propEntry instanceof DavProperty) {
                    if (AUTO_MERGE_SET.equals(((DavProperty)propEntry).getName())) {
View Full Code Here

Examples of javax.jcr.Node.cancelMerge()

                        // merge-set but not added to the predecessors 'cancelMerge'
                        // must be called.
                        if (predecSet.contains(href)) {
                            n.doneMerge(version);
                        } else {
                            n.cancelMerge(version);
                        }
                    }
                }
                // after successful resolution of merge-conflicts according to
                // DAV:auto-merge-set and DAV:predecessor-set remove these entries
View Full Code Here

Examples of javax.jcr.Node.cancelMerge()

                    if (!n.hasProperty(JcrConstants.JCR_MERGEFAILED)) {
                        throw new DavException(DavServletResponse.SC_CONFLICT, "Attempt to resolve non-existing merge conflicts.");
                    }
                    Value[] mergeFailed = n.getProperty(JcrConstants.JCR_MERGEFAILED).getValues();
                    for (int j = 0; j < mergeFailed.length; j++) {
                        n.cancelMerge((Version)getRepositorySession().getNodeByUUID(mergeFailed[j].getString()));
                    }
                    // remove this entry from the changeList
                    changeList.remove(propEntry);
                } else if (propEntry instanceof DavProperty) {
                    if (AUTO_MERGE_SET.equals(((DavProperty)propEntry).getName())) {
View Full Code Here

Examples of javax.jcr.Node.cancelMerge()

                        // merge-set but not added to the predecessors 'cancelMerge'
                        // must be called.
                        if (predecSet.contains(href)) {
                            n.doneMerge(version);
                        } else {
                            n.cancelMerge(version);
                        }
                    }
                }
                // after successful resolution of merge-conflicts according to
                // DAV:auto-merge-set and DAV:predecessor-set remove these entries
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.