Package javax.jcr.version

Examples of javax.jcr.version.VersionManager.checkin()


        versionManager.checkout(nodeWS1_1Sub1.getPath());

        versionManager.checkin(nodeWS1_2.getPath()); // create version 1.0
        versionManager.checkout(nodeWS1_2.getPath());

        versionManager.checkin(nodeWS1_2Sub1.getPath()); // create version 1.0
        versionManager.checkout(nodeWS1_2Sub1.getPath());

        versionManager.checkin(nodeWS1_3.getPath()); // create version 1.0
        versionManager.checkout(nodeWS1_3.getPath());
View Full Code Here


        versionManager.checkout(nodeWS1_2.getPath());

        versionManager.checkin(nodeWS1_2Sub1.getPath()); // create version 1.0
        versionManager.checkout(nodeWS1_2Sub1.getPath());

        versionManager.checkin(nodeWS1_3.getPath()); // create version 1.0
        versionManager.checkout(nodeWS1_3.getPath());

        workspaceW2.clone(workspace.getName(), mergeRootNode.getPath(), mergeRootNode.getPath(), true);

        // get nodes in workspace 2
View Full Code Here

        Node nodeWS2_2 = (Node) superuserW2.getItem(nodeWS1_2.getPath());
        Node nodeWS2_2Sub1 = (Node) superuserW2.getItem(nodeWS1_2Sub1.getPath());

        // create version branches for some of the nodes

        versionManager.checkin(nodeWS2_1.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_1.getPath()); // create version 1.0.1

        versionManager.checkin(nodeWS2_2.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_2.getPath()); // create version 1.0.1
View Full Code Here

        // create version branches for some of the nodes

        versionManager.checkin(nodeWS2_1.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_1.getPath()); // create version 1.0.1

        versionManager.checkin(nodeWS2_2.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_2.getPath()); // create version 1.0.1

        versionManager.checkin(nodeWS2_2Sub1.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_2Sub1.getPath()); // create version 1.0.1
View Full Code Here

        versionManager.checkin(nodeWS2_1.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_1.getPath()); // create version 1.0.1

        versionManager.checkin(nodeWS2_2.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_2.getPath()); // create version 1.0.1

        versionManager.checkin(nodeWS2_2Sub1.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_2Sub1.getPath()); // create version 1.0.1

        // set the nodes with version branches in expectedFailedNodes
View Full Code Here

        versionManager.checkin(nodeWS1_1.getPath()); // create version 1.0.1

        versionManager.checkin(nodeWS2_2.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_2.getPath()); // create version 1.0.1

        versionManager.checkin(nodeWS2_2Sub1.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_2Sub1.getPath()); // create version 1.0.1

        // set the nodes with version branches in expectedFailedNodes
        expectedFailedNodes[0] = nodeWS1_1;
        expectedFailedNodes[1] = nodeWS1_2;
View Full Code Here

        versionManager.checkin(nodeWS2_2.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_2.getPath()); // create version 1.0.1

        versionManager.checkin(nodeWS2_2Sub1.getPath()); // create version 1.1
        versionManager.checkin(nodeWS1_2Sub1.getPath()); // create version 1.0.1

        // set the nodes with version branches in expectedFailedNodes
        expectedFailedNodes[0] = nodeWS1_1;
        expectedFailedNodes[1] = nodeWS1_2;
        expectedFailedNodes[2] = nodeWS1_2Sub1;
View Full Code Here

            fail("A versionable node must be checked-out after persistent creation.");
        }
        if (!versionableNode.isCheckedOut()) {
            fail("A versionable node must be checked-out after persistent creation.");
        }
        versionManager.checkin(path);
    }

    /**
     * Test if Node.isCheckedOut() returns true, if the versionable node has
     * been checked out before.
View Full Code Here

     * @throws javax.jcr.RepositoryException
     */
    public void testIsCheckedOutJcr2() throws RepositoryException {
        VersionManager versionManager = versionableNode.getSession().getWorkspace().getVersionManager();
        String path = versionableNode.getPath();
        versionManager.checkin(path);
        assertTrue("VersionManager.isCheckedOut(P) must return false if the path P resolves to a checked-in node.", versionManager.isCheckedOut(path) == false);
    }

    /**
     * Test if the node's jcr:predecessors property contains an empty value array
View Full Code Here

     */
    public void testCheckinRemovesPredecessorPropertyJcr2() throws RepositoryException {

        VersionManager versionManager = versionableNode.getSession().getWorkspace().getVersionManager();
        String path = versionableNode.getPath();
        versionManager.checkin(path);
        Value[] predecessorsValue = versionableNode.getProperty(jcrPredecessors).getValues();

        assertTrue("Checkin must set the node's jcr:predecessors property to the empty array", predecessorsValue.length == 0);
    }

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.