Examples of cancelCheckout()


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

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

            token = okmAuth.login(username, password);

            okmDocument.cancelCheckout(token, document.getPath());

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

Examples of org.apache.chemistry.opencmis.client.api.Document.cancelCheckOut()

            addResult(checkObject(session, pwc, getAllProperties(pwc), "PWC spec compliance - test 1"));

            checkCheckedOut(pwc);

            // cancel checkout
            pwc.cancelCheckOut();

            doc.refresh();
            checkCheckedIn(doc);

            // check out again
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.api.Document.cancelCheckOut()

                        "Document content couldn't be read! Exception: " + e.getMessage(), e, true));
            }

            // cancel a possible check out
            if (checkedout) {
                workDoc.cancelCheckOut();
            }

            // remove the document
            deleteObject(doc);
        } finally {
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.api.Document.cancelCheckOut()

                versions = docCheckedOut.getAllVersions();

                f = createResult(FAILURE, "Version series should have one version but has " + versions.size() + ".");
                addResult(assertEquals(1, versions.size(), null, f));

                docCheckedOut.cancelCheckOut();
            } catch (CmisConstraintException ce) {
                addResult(createResult(WARNING, "Creating a checked out version failed! "
                        + "The repository might not support creating checked out versions. Exception: " + ce, ce, false));
            } catch (CmisInvalidArgumentException iae) {
                addResult(createResult(WARNING, "Creating a checked out version failed! "
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.api.Document.cancelCheckOut()

            addResult(checkObject(session, pwc, getAllProperties(pwc), "PWC spec compliance - test 1"));

            checkCheckedOut(pwc);

            // cancel checkout
            pwc.cancelCheckOut();

            doc.refresh();
            checkCheckedIn(doc);

            // check out again
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.api.Document.cancelCheckOut()

                    checkedout = true;

                    if (!workDoc.getAllowableActions().getAllowableActions().contains(Action.CAN_SET_CONTENT_STREAM)) {
                        addResult(createResult(SKIPPED,
                                "The test PWC does not accept a new content stream. Test skipped!"));
                        workDoc.cancelCheckOut();
                        doc.delete(true);
                        return;
                    }
                }
            }
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.api.Document.cancelCheckOut()

            try {
                pwc.checkIn(false, null, contentStream, "minor version");
            } catch (Exception e) {
                e.printStackTrace();
                System.out.println("checkin failed, trying to cancel the checkout");
                pwc.cancelCheckOut();
            }

            System.out.println("Document version history");
            {
                List<Document> versions = doc.getAllVersions();
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.api.Document.cancelCheckOut()

            // check version series
            addResult(checkVersionSeries(session, pwc.getAllVersions(SELECT_ALL_NO_CACHE_OC), propertiesToCheck,
                    "Test version series after check out"));

            // cancel checkout
            pwc.cancelCheckOut();

            doc.refresh();
            checkCheckedIn(doc);

            // check out again
View Full Code Here

Examples of org.apache.chemistry.opencmis.client.api.Document.cancelCheckOut()

                    checkedout = true;

                    if (!workDoc.getAllowableActions().getAllowableActions().contains(Action.CAN_SET_CONTENT_STREAM)) {
                        addResult(createResult(SKIPPED,
                                "The test PWC does not accept a new content stream. Test skipped!"));
                        workDoc.cancelCheckOut();
                        doc.delete(true);
                        return;
                    }
                }
            }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.impl.jaxb.VersioningServicePort.cancelCheckOut()

        VersioningServicePort port = fPortProvider.getVersioningServicePort();

        try {
            javax.xml.ws.Holder<CmisExtensionType> portExtension = convertExtensionHolder(extension);

            port.cancelCheckOut(repositoryId, objectId, portExtension);

            setExtensionValues(portExtension, extension);
        } catch (CmisException e) {
            throw convertException(e);
        } catch (Exception e) {
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.