Package org.nuxeo.ecm.platform.url.codec

Examples of org.nuxeo.ecm.platform.url.codec.DocumentIdCodec


    public DocumentView getDocumentViewFromUrl(String url) {
        Pattern pattern = Pattern.compile(getPrefix() + ID_URL_PATTERN);
        DocumentViewCodec codec = null;
        Matcher m = pattern.matcher(url);
        if (m.matches()) {
            codec = new DocumentIdCodec();
        } else {
            pattern = Pattern.compile(getPrefix() + PATH_URL_PATTERN);
            m = pattern.matcher(url);
            if (m.matches()) {
                codec = new DocumentPathCodec();
View Full Code Here


            DocumentPathCodec pathCodec = new DocumentPathCodec();
            pathCodec.setPrefix(getPrefix());
            docView.setViewId("view_social_document");
            return pathCodec.getUrlFromDocumentView(docView);
        } else {
            DocumentIdCodec idCodec = new DocumentIdCodec();
            idCodec.setPrefix(getPrefix());
            docView.setViewId("view_social_document");
            return idCodec.getUrlFromDocumentView(docView);
        }
    }
View Full Code Here

TOP

Related Classes of org.nuxeo.ecm.platform.url.codec.DocumentIdCodec

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.