Package org.apache.slide.common

Examples of org.apache.slide.common.SlideToken


    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);
                lightSToken.setForceLock(false);
            }
            return getLabeledResourceUri(nsaToken, lightSToken, content, resourcePath, label);
        }
    }
View Full Code Here


     *                           the request content.
     *
     * @return     the ViolatedPrecondition (if any).
     */
    protected ViolatedPrecondition getCheckoutPreconditionViolation(NodeRevisionDescriptors cinNrds, NodeRevisionDescriptor cinNrd, boolean isForkOk) throws IllegalArgumentException, IOException, JDOMException, SlideException {
        SlideToken stok = sToken;
       
        ViolatedPrecondition violatedPrecondition = null;
       
        NodeProperty checkoutForkProperty =cinNrd.getProperty(P_CHECKOUT_FORK);
        if (checkoutForkProperty != null
View Full Code Here

     *                                for which the auto-update property was set
     *
     * @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, VetoException {
        SlideToken stok = sToken;
       
        ViolatedPrecondition violatedPrecondition = null;
       
        if ( (predSetProp != null) && (predSetProp.getValue() != null) ) {
            XMLValue predecessors = new XMLValue( (String)predSetProp.getValue() );
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

       
        XMLValue xmlValue = new XMLValue();
       
        ResourceKind resourceKind = AbstractResourceKind.determineResourceKind(nsaToken, revisionDescriptors, revisionDescriptor);
        if (resourceKind instanceof Version) {
            SlideToken sTokenNoEnlist = sToken;
            if (sToken.isForceStoreEnlistment()) {
                sTokenNoEnlist = new SlideTokenWrapper(sToken, false);
            }
           
            String resourcePath = VersioningHelper.getUri(nsaToken,
View Full Code Here

       
        XMLValue xmlValue = new XMLValue();
       
        ResourceKind resourceKind = AbstractResourceKind.determineResourceKind(nsaToken, revisionDescriptors, revisionDescriptor);
        if (resourceKind instanceof Workspace) {
            SlideToken sTokenNoEnlist = sToken;
            if (sToken.isForceStoreEnlistment()) {
                sTokenNoEnlist = new SlideTokenWrapper(sToken, false);
            }
           
            Element basicSearch = getWorkspaceCheckoutSetQueryElement(revisionDescriptors.getUri());
View Full Code Here

        Content content = nat.getContentHelper();
        Lock lock = nat.getLockHelper();
        Security security = nat.getSecurityHelper();
        Structure structure = nat.getStructureHelper();
       
        SlideToken slideToken = WebdavUtils.getSlideToken(req);
        String resourcePath = WebdavUtils.getRelativePath(req, config);
        ObjectNode object = structure.retrieve(slideToken, resourcePath);
        String name = object.getUri();
       
        // Number of characters to trim from the beginnings of filenames
View Full Code Here

        if (upperNode.hasBinding(lowerNode)) {
            return true;
        }
       
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        NodeRevisionDescriptors lowerNrds = null;
        NodeRevisionDescriptor lowerNrd = null;
        try {
            lowerNrds = content.retrieve(stoken, lowerNode.getUri());
View Full Code Here

       
    }
   
    protected boolean exists( String uriStr ) throws SlideException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        boolean destinationExists = true;
       
        try {
            content.retrieve(stoken, uriStr);
View Full Code Here

        return destinationExists;
    }
   
    protected boolean isLocked( String uriStr ) throws ServiceAccessException {
        // use a non-blocking slide token.
        SlideToken stoken = readonlySlideToken();
       
        boolean isLocked = false;
        try {
            Enumeration locks = lock.enumerateLocks (stoken, uriStr, false);
            while (locks.hasMoreElements()) {
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.