Examples of existsInAnyLanguage()


Examples of org.apache.lenya.cms.publication.Document.existsInAnyLanguage()

            PageEnvelopeFactory.getInstance().getPageEnvelope(objectModel);

        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

Examples of org.apache.lenya.cms.publication.Document.existsInAnyLanguage()

            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());

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

Examples of org.apache.lenya.cms.publication.Document.existsInAnyLanguage()

        DocumentBuilder builder = publication.getDocumentBuilder();
        String url = null;
        try {
            if (builder.isDocument(publication, webappUrl)) {
                Document document = builder.buildDocument(publication, webappUrl);
                if (document.existsInAnyLanguage()) {
                    url = "/" + document.getArea() + document.getId();
                    if (getLogger().isDebugEnabled()) {
                        getLogger().debug("    Document exists");
                        getLogger().debug("    Document ID: [" + document.getId() + "]");
                    }
View Full Code Here

Examples of org.apache.lenya.cms.publication.Document.existsInAnyLanguage()

                value = "";
                PageEnvelope envelope = getEnvelope(objectModel);
                Document document = envelope.getDocument();
                if (document.exists()) {
                    Document parent = DocumentHelper.getParentDocument(document);
                    if (parent != null && parent.existsInAnyLanguage()) {
                        parent = DocumentHelper.getExistingLanguageVersion(parent);
                        value = parent.getDublinCore().getTitle();
                    }
                }
            }
View Full Code Here

Examples of org.apache.lenya.cms.publication.Document.existsInAnyLanguage()

        String url = null;
        try {
            DocumentIdentityMap map = new DocumentIdentityMap(getServiceManager(), getLogger());
            if (map.isDocument(webappUrl)) {
                Document document = map.getFromURL(webappUrl);
                if (document.existsInAnyLanguage()) {
                    url = "/" + document.getArea() + document.getId();
                    if (getLogger().isDebugEnabled()) {
                        getLogger().debug("    Document exists");
                        getLogger().debug("    Document ID: [" + document.getId() + "]");
                    }
View Full Code Here

Examples of org.apache.lenya.cms.publication.Document.existsInAnyLanguage()

                objectModel);

        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());
View Full Code Here

Examples of org.apache.lenya.cms.publication.Document.existsInAnyLanguage()

            PageEnvelopeFactory.getInstance().getPageEnvelope(objectModel);

        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)) {
View Full Code Here

Examples of org.apache.lenya.cms.publication.Document.existsInAnyLanguage()

        DocumentBuilder builder = publication.getDocumentBuilder();
        String url = null;
        try {
            if (builder.isDocument(publication, webappUrl)) {
                Document document = builder.buildDocument(publication, webappUrl);
                if (document.existsInAnyLanguage()) {
                    url = "/" + document.getArea() + document.getId();
                    if (getLogger().isDebugEnabled()) {
                        getLogger().debug("    Document exists");
                        getLogger().debug("    Document ID: [" + document.getId() + "]");
                    }
View Full Code Here

Examples of org.apache.lenya.cms.publication.Document.existsInAnyLanguage()

        DocumentBuilder builder = publication.getDocumentBuilder();
        String url = null;
        try {
            if (builder.isDocument(publication, webappUrl)) {
                Document document = builder.buildDocument(publication, webappUrl);
                if (document.existsInAnyLanguage()) {
                    url = "/" + document.getArea() + document.getId();
                    if (getLogger().isDebugEnabled()) {
                        getLogger().debug("    Document exists");
                        getLogger().debug("    Document ID: [" + document.getId() + "]");
                    }
View Full Code Here

Examples of org.apache.lenya.cms.publication.Document.existsInAnyLanguage()

        DocumentBuilder builder = publication.getDocumentBuilder();
        String url = null;
        try {
            if (builder.isDocument(publication, webappUrl)) {
                Document document = builder.buildDocument(publication, webappUrl);
                if (document.existsInAnyLanguage()) {
                    url = "/" + document.getArea() + document.getId();
                    if (getLogger().isDebugEnabled()) {
                        getLogger().debug("    Document exists");
                        getLogger().debug("    Document ID: [" + document.getId() + "]");
                    }
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.