Examples of UriPath


Examples of org.apache.slide.common.UriPath

                // NodeRevisionDescriptor object
                isCollection = true;
                revisionDescriptor = new NodeRevisionDescriptor(0);
               
                if (!Configuration.useBinding(token.getUri(lightSToken, object.getUri()).getStore())) {
                    revisionDescriptor.setName(new UriPath(object.getUri()).lastSegment());
                }
               
                hrefElement.setText(
                    WebdavUtils.getAbsolutePath(object.getUri(), req,
                                                getConfig()));
View Full Code Here

Examples of org.apache.slide.common.UriPath

     *
     * @return   an UriPath
     */
    public UriPath getPath() {
        if (path == null) {
            path = new UriPath(getUri());
        }
        return path;
    }
View Full Code Here

Examples of org.apache.slide.common.UriPath

     *
     * @return   a String
     *
     */
    private String lastUriSegment( String uri ) {
        return new UriPath(uri).lastSegment();
    }
View Full Code Here

Examples of org.apache.slide.common.UriPath

            ObjectNode s = new SubjectNode(c);
            s.setUuri( s.getUri() );
            addBinding( lastUriSegment(c), s );
        }
        ObjectNode p = null;
        UriPath up = new UriPath(uri);
        UriPath pup = up.parent();
        if (pup != null) {
            String pUri = pup.toString();
            p = new SubjectNode( pUri );
            p.setUuri( p.getUri() );
        }
        addParentBinding( getPath().lastSegment(), p );
    }
View Full Code Here

Examples of org.apache.slide.common.UriPath

            token = new SlideTokenWrapper(token, false);
        }
       
        if (pathOnly) {
            String[] uriTokens = object.getPath().tokens();
            UriPath path = new UriPath("/");
            Uri currentUri = namespace.getUri(token, path.toString());
            Uri objectUri = namespace.getUri(token, object.getUri());
            if (!storeOnly || currentUri.getStore() == objectUri.getStore()) {
                result.add( retrieve(token, path.toString()) );
            }
           
            for (int i = 0; i < uriTokens.length; i++) {
                path = path.child( uriTokens[i] );
                currentUri = namespace.getUri(token, path.toString());
                if (i == uriTokens.length - 1 && !includeSelf) {
                    break;
                }
                if (!storeOnly || currentUri.getStore() == objectUri.getStore()) {
                    result.add( retrieve(token, path.toString()) );
                }
            }
}
        else {
            // TODO
View Full Code Here

Examples of org.apache.slide.common.UriPath

                // NodeRevisionDescriptor object
                //isCollection = true;
                revisionDescriptor = new NodeRevisionDescriptor(0);
               
                if (!Configuration.useBinding(nsaToken.getUri(sToken, uri).getStore())) {
                    revisionDescriptor.setName(new UriPath(uri).lastSegment());
                }
            }
           
        } catch (AccessDeniedException e) {
            if (revisionDescriptor == null) {
View Full Code Here

Examples of org.apache.slide.common.UriPath

    public List getParents(SlideToken token, ObjectNode object, boolean pathOnly, boolean storeOnly, boolean includeSelf) throws ServiceAccessException, ObjectNotFoundException, LinkedObjectNotFoundException, AccessDeniedException, VetoException {
        List result = new ArrayList();

        if (pathOnly) {
            String[] uriTokens = object.getPath().tokens();
            UriPath path = new UriPath("/");
            Uri currentUri = namespace.getUri(token, path.toString());
            Uri objectUri = namespace.getUri(token, object.getUri());
            if (!storeOnly || currentUri.getStore() == objectUri.getStore()) {
                result.add( retrieve(token, path.toString()) );
            }
           
            for (int i = 0; i < uriTokens.length; i++) {
                path = path.child( uriTokens[i] );
                currentUri = namespace.getUri(token, path.toString());
                if (i == uriTokens.length - 1 && !includeSelf) {
                    break;
                }
                if (!storeOnly || currentUri.getStore() == objectUri.getStore()) {
                    result.add( retrieve(token, path.toString()) );
                }
            }
}
        else {
            // TODO
View Full Code Here

Examples of org.apache.slide.common.UriPath

     *
     * @return   an UriPath
     */
    public UriPath getPath() {
        if (path == null) {
            path = new UriPath(getUri());
        }
        return path;
    }
View Full Code Here

Examples of org.apache.slide.common.UriPath

     *
     * @return   a String
     *
     */
    private String lastUriSegment( String uri ) {
        return new UriPath(uri).lastSegment();
    }
View Full Code Here

Examples of org.apache.slide.common.UriPath

            ObjectNode s = new SubjectNode(c);
            s.setUuri( s.getUri() );
            addBinding( lastUriSegment(c), s );
        }
        ObjectNode p = null;
        UriPath up = new UriPath(uri);
        UriPath pup = up.parent();
        if (pup != null) {
            String pUri = pup.toString();
            p = new SubjectNode( pUri );
            p.setUuri( p.getUri() );
        }
        addParentBinding( getPath().lastSegment(), p );
    }
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.