Examples of checkIn()


Examples of com.dotmarketing.portlets.contentlet.business.ContentletAPI.checkin()

        testContent.setHost( defaultHost.getIdentifier() );
        testContent.setLanguageId(1);

        contentletAPI.setContentletProperty( testContent, field, "03/05/2014" );

        testContent = contentletAPI.checkin( testContent, null, permissionAPI.getPermissions( testStructure ), user, false );
        APILocator.getVersionableAPI().setLive(testContent);

      //And add it to the index
      indexAPI.addContentToIndex( testContent );
View Full Code Here

Examples of com.openkm.ws.client.OKMDocument.checkin()

            bpDocument.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMDocument");

            token = okmAuth.login(username, password);

            okmDocument.setContent(token, document.getPath(), FileUtil.readFile(document.getLocalFilename()));
            okmDocument.checkin(token, document.getPath(),"");

            // Logout OpenKM
            okmAuth.logout(token);
            token = "";
        } catch (Exception ex) {
View Full Code Here

Examples of javax.jcr.Node.checkin()

    private boolean checkin(final ResourceResolver resolver, final String path) throws RepositoryException {
        final Resource rsrc = resolver.getResource(path);
        final Node node = (rsrc == null ? null : rsrc.adaptTo(Node.class));
        if (node != null) {
            if (node.isCheckedOut() && isVersionable(node)) {
                node.checkin();
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of javax.jcr.Node.checkin()

                response.setStatus(HttpServletResponse.SC_NOT_FOUND,
                    "Missing source " + resource + " for checkout");
                return;
            }

            node.checkin();
            changes.add(Modification.onCheckin(resource.getPath()));

        } else {

            while (res.hasNext()) {
View Full Code Here

Examples of javax.jcr.Node.checkin()

            while (res.hasNext()) {
                Resource resource = res.next();
                Node node = resource.adaptTo(Node.class);
                if (node != null) {
                    node.checkin();
                    changes.add(Modification.onCheckin(resource.getPath()));
                }
            }

        }
View Full Code Here

Examples of javax.jcr.Node.checkin()

    public void testAccessVersionHistory() throws Exception {
        Node n = createVersionableNode(superuser.getNode(path));
        allow(n.getPath(), versionPrivileges);

        Node testNode = testSession.getNode(n.getPath());
        testNode.checkin();
        testNode.checkout();

        // accessing the version history must be allowed if the versionable node
        // is readable to the editing test session.
        VersionHistory vh = testNode.getVersionHistory();
View Full Code Here

Examples of javax.jcr.Node.checkin()

    public void testAccessVersionHistoryVersionableNodeNotAccessible() throws Exception {
        Node n = createVersionableNode(superuser.getNode(path));
        allow(n.getPath(), versionPrivileges);

        Node testNode = testSession.getNode(n.getPath());
        testNode.checkin();
        testNode.checkout();

        VersionHistory vh = testNode.getVersionHistory();
        String vhPath = vh.getPath();
        String vhUUID = vh.getIdentifier();
View Full Code Here

Examples of javax.jcr.Node.checkin()

    @Test
    public void testAccessVersionHistoryVersionableNodeRemoved() throws Exception {
        Node n = createVersionableNode(superuser.getNode(path));
        allow(n.getPath(), versionPrivileges);

        n.checkin();
        n.checkout();

        String versionablePath = n.getPath();
        VersionHistory vh = n.getVersionHistory();
        String vhPath = vh.getPath();
View Full Code Here

Examples of javax.jcr.Node.checkin()

    public void testAddVersionLabel() throws Exception {
        Node n = createVersionableNode(superuser.getNode(path));
        allow(n.getPath(), versionPrivileges);

        Node testNode = testSession.getNode(n.getPath());
        Version v = testNode.checkin();
        testNode.checkout();
        Version v2 = testNode.checkin();
        testNode.checkout();

        // -> VersionHistory.addVersionLabel must be allowed
View Full Code Here

Examples of javax.jcr.Node.checkin()

        allow(n.getPath(), versionPrivileges);

        Node testNode = testSession.getNode(n.getPath());
        Version v = testNode.checkin();
        testNode.checkout();
        Version v2 = testNode.checkin();
        testNode.checkout();

        // -> VersionHistory.addVersionLabel must be allowed
        VersionHistory history = testNode.getVersionHistory();
        history.addVersionLabel(v.getName(), "testLabel", false);
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.