Examples of buildCanonicalUrl()


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

    // FIXME: if the resources differ for different languages, so iterate
    // on all languages

    String language = labels[0].getLanguage();
    String srcUrl =
      builder.buildCanonicalUrl(
        publication,
        getFirstarea(),
        srcDocumentid,
        language);
    Document srcDoc;
View Full Code Here

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

          + getFirstdocumentid());
      return;
    }

    String destUrl =
      builder.buildCanonicalUrl(
        publication,
        getSecarea(),
        destDocumentid,
        language);
    Document destDoc;
View Full Code Here

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

    Label[] labels = node.getLabels();
    for (int i = 0; i < labels.length; i++) {
      String language = labels[i].getLanguage();
      String url =
        builder.buildCanonicalUrl(
          publication,
          getFirstarea(),
          srcDocumentid,
          language);
      Document doc;
View Full Code Here

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

        String publisher,
        String rights)
        throws BuildException, DocumentBuildException, DocumentException {

        DocumentBuilder builder = getPublication().getDocumentBuilder();
        String url = builder.buildCanonicalUrl(getPublication(), area, documentId, lang);
        Document doc = builder.buildDocument(getPublication(), url);
        DublinCore dc = doc.getDublinCore();
        dc.setValue(DublinCore.ELEMENT_CREATOR, creator);
        dc.setValue(DublinCore.ELEMENT_TITLE, title);
        dc.setValue(DublinCore.ELEMENT_DESCRIPTION, description);
View Full Code Here

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

        String originalId = originalTargetDocument.getId();
        String targetId = targetDocument.getId();
        String childString = targetId.substring(originalId.length());

        DocumentBuilder builder = targetDocument.getPublication().getDocumentBuilder();
        String newTargetUrl = builder.buildCanonicalUrl(newTargetDocument.getPublication(),
                newTargetDocument.getArea(),
                newTargetDocument.getId() + childString,
                targetDocument.getLanguage());

        return newTargetUrl;
View Full Code Here

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

      String language = labels[i].getLanguage();

      String srcDocumentid = node.getAbsoluteId();
      String destDocumentid = srcDocumentid.replaceFirst(this.getFirstdocumentid(),this.getSecdocumentid());

      String srcUrl = builder.buildCanonicalUrl(publication, getFirstarea(), srcDocumentid, language);
      String destUrl = builder.buildCanonicalUrl(publication, getSecarea(), destDocumentid, language);


      Document document;
      Document newdocument;
View Full Code Here

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

      String srcDocumentid = node.getAbsoluteId();
      String destDocumentid = srcDocumentid.replaceFirst(this.getFirstdocumentid(),this.getSecdocumentid());

      String srcUrl = builder.buildCanonicalUrl(publication, getFirstarea(), srcDocumentid, language);
      String destUrl = builder.buildCanonicalUrl(publication, getSecarea(), destDocumentid, language);


      Document document;
      Document newdocument;
      WorkflowFactory factory = WorkflowFactory.newInstance();
View Full Code Here

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

     */
    protected Document getDocument(String documentId, String area, String language)
        throws ExecutionException {
        Publication publication = getPublication();
        DocumentBuilder builder = publication.getDocumentBuilder();
        String url = builder.buildCanonicalUrl(publication, area, documentId, language);
        Document document;
        try {
            document = builder.buildDocument(publication, url);
        } catch (Exception e) {
            throw new ExecutionException(e);
View Full Code Here

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

        if (language == null) {
            language = getPublication().getDefaultLanguage();
        }
        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) {
View Full Code Here

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

    DocumentBuilder builder = publication.getDocumentBuilder();

    try {
      if (labels.length < 1) {
        log("no languages found for the node with id : " + node.getId());
        url = builder.buildCanonicalUrl(publication, area, documentid);
        writeDCIdentifier(publication, url);
      } else {
        for (int i = 0; i < labels.length; i++) {
          language = labels[i].getLanguage();
          url = builder.buildCanonicalUrl(publication, area, documentid, language);
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.