Package org.apache.lenya.cms.linking

Examples of org.apache.lenya.cms.linking.UuidToUrlRewriter


        this.useIgnore = true;
        try {
            String currentUrl = getWebappUrl(params, objectModel);
            DocumentFactory factory = DocumentUtil.getDocumentFactory(this.manager, request);
            this.linkResolver = (LinkResolver) this.manager.lookup(LinkResolver.ROLE);
            this.rewriter = new UuidToUrlRewriter(currentUrl, this.linkResolver, factory);
           
            if (factory.isDocument(currentUrl)) {
                this.rewriter.setCurrentDocument(factory.getFromURL(currentUrl));
            }
           
View Full Code Here


        try {
            DocumentFactory factory = DocumentUtil.getDocumentFactory(this.manager, request);
            LinkResolver linkResolver = (LinkResolver) this.manager.lookup(LinkResolver.ROLE);
            String currentUrl = ServletHelper.getWebappURI(request);
           
            UuidToUrlRewriter rewriter = new UuidToUrlRewriter(currentUrl, linkResolver, factory);
            if (factory.isDocument(currentUrl)) {
                rewriter.setCurrentDocument(factory.getFromURL(currentUrl));
            }
           
            return rewriter.rewrite(name);
           
        } catch (final Exception e) {
            throw new ConfigurationException("Resolving link " + name + " failed: ", e);
        }
    }
View Full Code Here

        this.useIgnore = true;
        try {
            String currentUrl = getWebappUrl(params, objectModel);
            DocumentFactory factory = DocumentUtil.getDocumentFactory(this.manager, request);
            this.linkResolver = (LinkResolver) this.manager.lookup(LinkResolver.ROLE);
            this.rewriter = new UuidToUrlRewriter(currentUrl, this.linkResolver, factory);
           
            if (factory.isDocument(currentUrl)) {
                this.rewriter.setCurrentDocument(factory.getFromURL(currentUrl));
            }
           
View Full Code Here

TOP

Related Classes of org.apache.lenya.cms.linking.UuidToUrlRewriter

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.