Package org.apache.lenya.cms.linking

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


     * @throws Exception if an error occurs.
     */
    protected void saveDocument(String encoding, String content) throws Exception {
        org.apache.lenya.cms.publication.Document doc = getSourceDocument();
        saveXMLFile(encoding, content, doc);
        LinkConverter converter = new LinkConverter(this.manager, getLogger());
        converter.convertUrlsToUuids(doc, false);

        WorkflowUtil.invoke(this.manager, getSession(), getLogger(), doc, getEvent());
    }
View Full Code Here


     * @param document The source
     */
    protected void saveXMLFile(Document content, org.apache.lenya.cms.publication.Document document) {
        try {
            SourceUtil.writeDOM(content, document.getOutputStream());
            LinkConverter converter = new LinkConverter(this.manager, getLogger());
            converter.convertUrlsToUuids(document, false);
        } catch (Exception e) {
            addErrorMessage(e.getMessage());
        }
    }
View Full Code Here

    }

    protected void convertLinks(Publication srcPub, Area area) {
        Document[] docs = area.getDocuments();
        for (int i = 0; i < docs.length; i++) {
            LinkConverter converter = new LinkConverter(this.manager, getLogger());
            converter.convertUrlsToUuids(srcPub, docs[i], false);
        }
    }
View Full Code Here

     * @param document The source
     */
    protected void saveXMLFile(Document content, org.apache.lenya.cms.publication.Document document) {
        try {
            SourceUtil.writeDOM(content, document.getOutputStream());
            LinkConverter converter = new LinkConverter(this.manager, getLogger());
            converter.convertUrlsToUuids(document, false);
        } catch (Exception e) {
            addErrorMessage(e.getMessage());
        }
    }
View Full Code Here

     * @throws Exception if an error occurs.
     */
    protected void saveDocument(String encoding, String content) throws Exception {
        org.apache.lenya.cms.publication.Document doc = getSourceDocument();
        saveXMLFile(encoding, content, doc);
        LinkConverter converter = new LinkConverter(this.manager, getLogger());
        converter.convertUrlsToUuids(doc, false);

        WorkflowUtil.invoke(this.manager, getSession(), getLogger(), doc, getEvent());
    }
View Full Code Here

    }

    protected void convertLinks(Publication srcPub, Area area) {
        Document[] docs = area.getDocuments();
        for (int i = 0; i < docs.length; i++) {
            LinkConverter converter = new LinkConverter(this.manager, getLogger());
            converter.convertUrlsToUuids(srcPub, docs[i], false);
        }
    }
View Full Code Here

     * @param document The source
     */
    protected void saveXMLFile(Document content, org.apache.lenya.cms.publication.Document document) {
        try {
            SourceUtil.writeDOM(content, document.getOutputStream());
            LinkConverter converter = new LinkConverter(this.manager, getLogger());
            converter.convertUrlsToUuids(document, false);
        } catch (Exception e) {
            addErrorMessage(e.getMessage());
        }
    }
View Full Code Here

                }

                saveXMLFile(encoding, content, getSourceDocument().getOutputStream());
            }
            // Convert URLs back to UUIDs. convert() does a save
            LinkConverter converter = new LinkConverter(this.manager, getLogger());
            converter.convertUrlsToUuids(getSourceDocument(),false);

            xmlDoc = DocumentHelper.readDocument(getSourceDocument().getInputStream());

            if (xmlDoc != null) {
                ResourceType resourceType = getSourceDocument().getResourceType();
View Full Code Here

TOP

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

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.