Package org.apache.lenya.cms.publication

Examples of org.apache.lenya.cms.publication.DocumentDoesNotExistException


        Document doc = pageEnvelope.getDocument();
        String language = doc.getLanguage();

        if (!doc.existsInAnyLanguage()) {
            throw new DocumentDoesNotExistException("Document " + doc.getId() + " does not exist. Check sitetree, it might need to be reloaded.");
        }
        List availableLanguages = Arrays.asList(doc.getLanguages());

        if (availableLanguages.contains(language)) {
            return Collections.unmodifiableMap(Collections.EMPTY_MAP);
View Full Code Here


        SiteTree siteTree = publication.getTree(area);
        SiteTreeNode node = siteTree.getNode(id);

        if (node == null) {
            throw new DocumentDoesNotExistException("The document " + pageEnvelope.getDocument().getId() + " does not exist. Check sitetree, it might need to be reloaded.");
        }
       
        SiteTreeNode[] children = node.getChildren(language);
        if (children.length > 0) {
View Full Code Here

        Document doc = pageEnvelope.getDocument();
        String language = doc.getLanguage();

        if (!doc.existsInAnyLanguage()) {
            throw new DocumentDoesNotExistException("Document " + doc.getId()
                    + " does not exist. Check sitetree, it might need to be reloaded.");
        }
        List availableLanguages = Arrays.asList(doc.getLanguages());

        if (availableLanguages.contains(language)) {
View Full Code Here

        Document doc = pageEnvelope.getDocument();
        String language = doc.getLanguage();

        if (!doc.existsInAnyLanguage()) {
            throw new DocumentDoesNotExistException("Document " + doc.getId() + " does not exist");
        }
        List availableLanguages = Arrays.asList(doc.getLanguages());

        if (availableLanguages.contains(language)) {
            return Collections.unmodifiableMap(Collections.EMPTY_MAP);
View Full Code Here

        Document doc = pageEnvelope.getDocument();
        String language = doc.getLanguage();

        if (!doc.existsInAnyLanguage()) {
            throw new DocumentDoesNotExistException("Document " + doc.getId() + " does not exist. Check sitetree, it might need to be reloaded.");
        }
        List availableLanguages = Arrays.asList(doc.getLanguages());

        if (availableLanguages.contains(language)) {
            return Collections.unmodifiableMap(Collections.EMPTY_MAP);
View Full Code Here

        Document doc = pageEnvelope.getDocument();
        String language = doc.getLanguage();

        if (!doc.existsInAnyLanguage()) {
            throw new DocumentDoesNotExistException("Document " + doc.getId() + " does not exist");
        }
        List availableLanguages = Arrays.asList(doc.getLanguages());

        if (availableLanguages.contains(language)) {
            return Collections.unmodifiableMap(Collections.EMPTY_MAP);
View Full Code Here

TOP

Related Classes of org.apache.lenya.cms.publication.DocumentDoesNotExistException

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.