Package org.apache.lenya.cms.publication.templating

Examples of org.apache.lenya.cms.publication.templating.PublicationTemplateManager.visit()


            DocumentFactory factory = DocumentUtil.getDocumentFactory(this.manager, request);
            if (factory.existsPublication(publicationId)) {
                Publication pub = factory.getPublication(publicationId);
                VisitingSourceResolver resolver = getSourceVisitor();
                templateManager.visit(pub, path, resolver);
                source = resolver.getSource();
            }

            if (source == null) {
                if (path.startsWith("lenya/modules/")) {
View Full Code Here


            String[] uris;

            if (factory.existsPublication(publicationId)) {
                Publication pub = factory.getPublication(publicationId);
                AllExistingSourceResolver resolver = new AllExistingSourceResolver();
                templateManager.visit(pub, path, resolver);
                uris = resolver.getUris();
            } else {
                uris = new String[0];
            }
           
View Full Code Here

            String[] uris;

            if (factory.existsPublication(pubId)) {
                Publication pub = factory.getPublication(pubId);
                AllExistingSourceResolver resolver = new AllExistingSourceResolver();
                templateManager.visit(pub, path, resolver);
                uris = resolver.getUris();
            } else {
                uris = new String[0];
            }
           
View Full Code Here

            DocumentFactory factory = DocumentUtil.getDocumentFactory(this.manager, request);
            if (factory.existsPublication(pubId)) {
                Publication pub = factory.getPublication(pubId);
                VisitingSourceResolver resolver = getSourceVisitor();
                templateManager.visit(pub, path, resolver);
                source = resolver.getSource();
            }

            if (source == null) {
                if (path.startsWith("lenya/modules/")) {
View Full Code Here

                    getLogger().debug("Publication resolved from request: [" + publication.getId()
                            + "]");
                }
            }
            ExistingSourceResolver resolver = new ExistingSourceResolver();
            templateManager.visit(publication, targetUri, resolver);
            resolvedUri = resolver.getURI();

        } catch (final Exception e) {
            String message = "Resolving path [" + name + "] failed: ";
            getLogger().error(message, e);
View Full Code Here

            PublicationTemplateManager templateManager = (PublicationTemplateManager) this._manager
                    .lookup(PublicationTemplateManager.ROLE);
            PageEnvelope envelope = getEnvelope(objectModel, name);

            ExistingUsecaseResolver resolver = new ExistingUsecaseResolver(name);
            templateManager.visit(envelope.getPublication(), resolver);

            Publication publication = resolver.getPublication();
            if (publication != null) {
                resolvedSitemapUri = PublicationTemplateManagerImpl.getBaseURI(publication) + "/"
                        + USECASE_SITEMAP;
View Full Code Here

            String publicationId = info.getPublicationId();
           
            Publication pub = factory.getPublication(publicationId, contextPath);
            if (pub.exists()) {
                ExistingSourceResolver resolver = new ExistingSourceResolver();
                templateManager.visit(pub, path, resolver);
                resolvedUri = resolver.getURI();
            }

            if (getLogger().isDebugEnabled()) {
                getLogger().debug("Resolved URI:  [" + resolvedUri + "]");
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.