Examples of buildDocument()


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

      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 {
        if (factory.hasWorkflow(document)) {
View Full Code Here

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

        DocumentBuilder builder = publication.getDocumentBuilder();
        String url = builder.buildCanonicalUrl(publication, area, documentid, language);
        Document doc;
        try {
          doc = builder.buildDocument(publication, url);
        } catch (DocumentBuildException e) {
          throw new BuildException(e);
        }
        ResourcesManager resourcesMgr = new ResourcesManager(doc);
        File[] resources = resourcesMgr.getResources();
View Full Code Here

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

        try {
            DocumentBuilder builder = getPublication().getDocumentBuilder();

            String authoringUrl =
                builder.buildCanonicalUrl(getPublication(), Publication.AUTHORING_AREA, documentId);
            Document authoringDocument = builder.buildDocument(getPublication(), authoringUrl);
            ResourcesManager authoringManager = new ResourcesManager(authoringDocument);

            String liveUrl =
                builder.buildCanonicalUrl(getPublication(), Publication.LIVE_AREA, documentId);
            Document liveDocument = builder.buildDocument(getPublication(), liveUrl);
View Full Code Here

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

            Document authoringDocument = builder.buildDocument(getPublication(), authoringUrl);
            ResourcesManager authoringManager = new ResourcesManager(authoringDocument);

            String liveUrl =
                builder.buildCanonicalUrl(getPublication(), Publication.LIVE_AREA, documentId);
            Document liveDocument = builder.buildDocument(getPublication(), liveUrl);
            ResourcesManager liveManager = new ResourcesManager(liveDocument);
           
            // find all resource files and their associated meta files
            List resourcesList =
                new ArrayList(Arrays.asList(authoringManager.getResources()));
View Full Code Here

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

            publication,
            getSecarea(),
            destDocumentid,
            language);
        Document destDoc;
        destDoc = builder.buildDocument(publication, destUrl);
                String filename = destDoc.getFile().getCanonicalPath();
        filename = filename.substring(publicationPath.length());
                rc.reservedCheckIn(filename, getUserId(), true);
      }
    } catch (Exception e) {
View Full Code Here

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

      Document destDoc;
      WorkflowFactory factory = WorkflowFactory.newInstance();
     
      log("init workflow history");
      try {
        srcDoc = builder.buildDocument(publication, srcUrl);
        destDoc = builder.buildDocument(publication, destUrl);
      } catch (DocumentBuildException e) {
        throw new BuildException(e);
      }
View Full Code Here

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

      WorkflowFactory factory = WorkflowFactory.newInstance();
     
      log("init workflow history");
      try {
        srcDoc = builder.buildDocument(publication, srcUrl);
        destDoc = builder.buildDocument(publication, destUrl);
      } catch (DocumentBuildException e) {
        throw new BuildException(e);
      }

      log("move workflow history of "+srcDoc.getFile().getAbsolutePath()+" to " + destDoc.getFile().getAbsolutePath());
View Full Code Here

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

           
            Publication pub = getPublication();
            DocumentBuilder builder = pub.getDocumentBuilder();
           
            String oldTargetUrl = builder.buildCanonicalUrl(pub, getArea(), getOldDocumentId());
            Document oldTargetDocument = builder.buildDocument(pub, oldTargetUrl);
           
            String newTargetUrl = builder.buildCanonicalUrl(pub, getArea(), getNewDocumentId());
            Document newTargetDocument = builder.buildDocument(pub, newTargetUrl);
           
            LinkRewriter rewriter = new LinkRewriter();
View Full Code Here

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

           
            String oldTargetUrl = builder.buildCanonicalUrl(pub, getArea(), getOldDocumentId());
            Document oldTargetDocument = builder.buildDocument(pub, oldTargetUrl);
           
            String newTargetUrl = builder.buildCanonicalUrl(pub, getArea(), getNewDocumentId());
            Document newTargetDocument = builder.buildDocument(pub, newTargetUrl);
           
            LinkRewriter rewriter = new LinkRewriter();
            rewriter.rewriteLinks(oldTargetDocument, newTargetDocument, getContextPrefix());
           
        } catch (Exception e) {
View Full Code Here

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

        Publication publication = PublicationHelper.getPublication();
        DocumentBuilder builder = publication.getDocumentBuilder();
       
        String sourceUrl =
            builder.buildCanonicalUrl(publication, sourceArea, sourceDocumentId, sourceLanguage);
        Document sourceDocument = builder.buildDocument(publication, sourceUrl);
        String destinationUrl =
            builder.buildCanonicalUrl(
                publication,
                destinationArea,
                destinationDocumentId,
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.