Examples of buildDocument()


Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

        }
        DocumentBuilder builder = getPublication().getDocumentBuilder();
        String url = builder.buildCanonicalUrl(getPublication(), Publication.AUTHORING_AREA, getDocumentId(), language);
        Document document;
        try {
            document = builder.buildDocument(getPublication(), url);
            log(".execute(): " + document.getLanguage());
        } catch (DocumentBuildException e) {
            throw new BuildException(e);
        }
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

          getFirstarea(),
          srcDocumentid,
          language);
      Document srcDoc;
      try {
        srcDoc = builder.buildDocument(publication, url);
      } catch (DocumentBuildException e) {
        throw new BuildException(e);
      }

      ResourcesManager resourcesMgr = new ResourcesManager(srcDoc);
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

            String language = labels[i].getLanguage();
            DocumentBuilder builder = publication.getDocumentBuilder();

            try {
                String url = builder.buildCanonicalUrl(publication, area, documentId, language);
                Document document = builder.buildDocument(publication, url);

                String servletContext = new File(servletContextPath).getCanonicalPath();
                log("Deleting scheduler entry for document [" + document + "]");
                log("Resolving servlet [" + servletContext + "]");
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

          getFirstarea(),
          srcDocumentid,
          language);
      Document srcDoc;
      try {
        srcDoc = builder.buildDocument(publication, srcUrl);
      } catch (DocumentBuildException e) {
        throw new BuildException(e);
      }
      File srcFile = srcDoc.getFile();
      if (!srcFile.exists()) {
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

          getSecarea(),
          destDocumentid,
          language);
      Document destDoc;
      try {
        destDoc = builder.buildDocument(publication, destUrl);
      } catch (DocumentBuildException e) {
        throw new BuildException(e);
      }
      File destFile = destDoc.getFile();
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

                }
            }

            Policy policy = policyManager.getPolicy(accreditableManager, canonicalUrl);

            Document doc = builder.buildDocument(publication, canonicalUrl);

            Proxy proxy = doc.getPublication().getProxy(doc, policy.isSSLProtected());

            if (proxy != null) {
                value = proxy.getURL(doc);
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

            String childNodeId = children[0].getId();
            String childId = id + "/" + childNodeId;
            DocumentBuilder builder = publication.getDocumentBuilder();
            String url = builder.buildCanonicalUrl(publication, area, childId, language);
            Document childDocument = builder.buildDocument(publication, url);

            if (!childDocument.existsInAnyLanguage()) {
                throw new NoChildDocumentExistException("The document " + childId + " does not exist. Check sitetree, it might need to be reloaded.");
            }
            List availableLanguages = Arrays.asList(childDocument.getLanguages());
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

            for (int docIndex = 0; docIndex < documents.length; docIndex++) {
                String[] links = getInternalLinks(documents[docIndex].getFile());
               
                for (int linkIndex = 0; linkIndex < links.length; linkIndex++) {
                    if (builder.isDocument(publication, links[linkIndex])) {
                        Document targetDocument = builder.buildDocument(publication, links[linkIndex]);

                        if (targetDocument.equals(document)) {
                            if (log.isDebugEnabled()) {
                                log.debug("found link to " + document + " in " + documents[docIndex]);
                            }
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

            SiteTree sitetree = publication.getTree(Publication.LIVE_AREA);
            String[] links = getInternalLinks(this.document.getFile());
           
            for (int linkIndex = 0; linkIndex < links.length; linkIndex++) {
                if (builder.isDocument(publication, links[linkIndex])) {
                    Document targetDocument = builder.buildDocument(publication, links[linkIndex]);

                    SiteTreeNode documentNode = sitetree.getNode(targetDocument.getId());

                    if (documentNode == null || documentNode.getLabel(targetDocument.getLanguage()) == null) {
                        // the document has not been published for the given language
View Full Code Here

Examples of org.apache.lenya.cms.publication.DocumentBuilder.buildDocument()

      Document newDocument;
      WorkflowFactory factory = WorkflowFactory.newInstance();

      log("move workflow history");
      try {
        document = builder.buildDocument(publication, url);
        newDocument = builder.buildDocument(publication, newurl);
      } catch (DocumentBuildException e) {
        throw new BuildException(e);
      }
      try {
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.