Package org.apache.slide.common

Examples of org.apache.slide.common.SlideToken


     *
     * @throws     SlideException
     */
    protected ViolatedPrecondition getPreconditionViolation(String updateSourcePath, String updateSourceLabel, String resourcePath) throws SlideException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();

        ViolatedPrecondition violatedPrecondition = null;

        NodeRevisionDescriptors revisionDescriptors =
            content.retrieve(stoken, resourcePath);
View Full Code Here


     * @exception WebdavException
     */
    protected Element getPropertiesOfObject(String resourceUri)
        throws WebdavException {
       
        SlideToken lightSToken = new SlideTokenWrapper(slideToken, false);
        lightSToken.setForceLock(false);
       
        // evaluate "Label" header
        if (Configuration.useVersionControl()) {
            try {
                resourceUri = versioningHelper.getLabeledResourceUri(resourceUri, labelHeader);
View Full Code Here

        overwrite = requestHeaders.getOverwrite(true);
    }

    private void checkPreconditions() throws PreconditionViolationException, ServiceAccessException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        resp.setStatus( WebdavStatus.SC_CREATED );
        UriHandler sourceUh = UriHandler.getUriHandler(sourceUri);
        UriHandler sourceParentUh = sourceUh.getParentUriHandler();
        sourceSegment = sourceUh.getName();
View Full Code Here

    /**
     * Return true if the store should also be enlisted for a read operation.
     */
    protected boolean isForceStoreEnlistment(Uri uri) {
       
        SlideToken token = uri.getToken();
       
        if (token == null)
            return false;
       
        return token.isForceStoreEnlistment();
       
    }
View Full Code Here

        }
       
    }
   
    private boolean isCollection(HttpServletRequest req) {
        SlideToken slideToken = new SlideTokenWrapper(WebdavUtils.getSlideToken(req), false);
        slideToken.setForceSecurity(false);
        slideToken.setForceLock(false);
        return WebdavUtils.isCollection(token, slideToken, WebdavUtils.getRelativePath(req, (WebdavServletConfig)getServletConfig()));
    }
View Full Code Here

     */
    private void checkPreconditions() throws PreconditionViolationException, ServiceAccessException {
        resp.setStatus( WebdavStatus.SC_OK );
       
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
    }
View Full Code Here

     */
    private ViolatedPrecondition getPreconditionViolation(NodeRevisionDescriptors revisionDescriptors, NodeRevisionDescriptor revisionDescriptor, ResourceKind resourceKind)
        throws ServiceAccessException {
       
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        if( Configuration.useVersionControl() ) {
           
            if (resourceKind instanceof CheckedInVersionControlled) {
               
View Full Code Here

    public String getLabeledResourceUri(String resourcePath, String label) throws SlideException, LabeledRevisionNotFoundException {
        if (label == null) {
            return resourcePath;
        }
        else {
            SlideToken lightSToken = sToken;
            if (sToken.isForceStoreEnlistment() || sToken.isForceLock()) {
                lightSToken = new SlideTokenWrapper(sToken, false);
                lightSToken.setForceLock(false);
            }
            return getLabeledResourceUri(nsaToken, lightSToken, content, resourcePath, label);
        }
    }
View Full Code Here

     *
     * @return     the ViolatedPrecondition (if any).
     */
    protected ViolatedPrecondition getCheckoutPreconditionViolation(NodeRevisionDescriptors cinNrds, NodeRevisionDescriptor cinNrd, boolean isForkOk) throws IllegalArgumentException, IOException, JDOMException, SlideException {
        // use a non-blocking slide token.
        SlideToken stok = readonlySlideToken();
       
        ViolatedPrecondition violatedPrecondition = null;
       
        NodeProperty checkoutForkProperty =cinNrd.getProperty(P_CHECKOUT_FORK);
        if (checkoutForkProperty != null) {
View Full Code Here

     *
     * @return     the ViolatedPrecondition (if any).
     */
    protected ViolatedPrecondition getCheckinPreconditionViolation(NodeProperty predSetProp, NodeRevisionDescriptors vhrNrds, boolean isForkOk, NodeRevisionDescriptor autoUpdNrd ) throws LinkedObjectNotFoundException, ServiceAccessException, ObjectLockedException, RevisionDescriptorNotFoundException, JDOMException, IllegalArgumentException, ObjectNotFoundException, AccessDeniedException, IOException {
        // use a non-blocking slide token.
        SlideToken stok = readonlySlideToken();
       
        ViolatedPrecondition violatedPrecondition = null;
       
        if ( (predSetProp != null) && (predSetProp.getValue() != null) ) {
            XMLValue predecessors = new XMLValue( (String)predSetProp.getValue() );
View Full Code Here

TOP

Related Classes of org.apache.slide.common.SlideToken

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.