Package org.apache.slide.webdav.util

Examples of org.apache.slide.webdav.util.VersioningHelper


                    throw new ForbiddenException(
                        resourcePath,
                        new Exception("The resource path has been excluded from version-control") );
            }
           
            VersioningHelper vh = VersioningHelper.getVersioningHelper(
                slideToken, token, req, resp, getConfig() );
            if( existingVersionPath == null )
                vh.versionControl( resourcePath );
            else
                vh.versionControl( resourcePath, existingVersionPath );
        }
        catch (PreconditionViolationException e) {
            sendPreconditionViolation(e);
            throw e;
        }
View Full Code Here


                    checkinLocktokenProperty =
                        revisionDescriptor.getProperty(DeltavConstants.I_CHECKIN_LOCKTOKEN);
                }
                if ( (checkinLocktokenProperty != null) && (checkinLocktokenProperty.getValue() != null) &&
                    lockId.equals(checkinLocktokenProperty.getValue().toString()) ) {
                    VersioningHelper versionHelper = VersioningHelper.getVersioningHelper(slideToken, token, req, resp, config);
                    versionHelper.checkin(revisionDescriptors, revisionDescriptor, false, false, true);
                }
            }
           
            // Checking if the resource at the URI isn't a lock-null
            // resource, in which case we must attempt to delete it
View Full Code Here

            sendError( statusCode, e );
            throw new WebdavException( statusCode );
        }

        try {
            VersioningHelper vh = VersioningHelper.getVersioningHelper(
                slideToken, token, req, resp, getConfig() );
            vh.mkworkspace( resourcePath );
        }
        catch (PreconditionViolationException e) {
            sendPreconditionViolation(e);
            throw e;
        }
View Full Code Here

        String serverURL = HTTP_PROTOCOL + req.getServerName()+ ":" + req.getServerPort();
       
        try {
            Element hrefElement = new Element(E_HREF, DNSP);
           
            VersioningHelper vHelp =  VersioningHelper.getVersioningHelper(
                lightSToken, token, req, resp, getConfig() );
            String resourcePath = object.getUri();
           
            revisionDescriptors =
                content.retrieve(lightSToken, resourcePath);
View Full Code Here

TOP

Related Classes of org.apache.slide.webdav.util.VersioningHelper

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.