Examples of requestSelectDatabaseLanguage()


Examples of de.innovationgate.wgpublisher.lang.LanguageBehaviour.requestSelectDatabaseLanguage()

            // Contextless request. If we have no request language we have no complete path and we must determine a language
            else {
                if (requestLanguage == null) {
                    completePath = false;
                    LanguageBehaviour langBehaviour = LanguageBehaviourTools.retrieve(database);
                    WGLanguage lang = langBehaviour.requestSelectDatabaseLanguage(database, request);
                    if (lang != null) {
                        this.requestLanguage = lang.getName();
                    }
                   
                    // Fallback to the database default language
View Full Code Here

Examples of de.innovationgate.wgpublisher.lang.LanguageBehaviour.requestSelectDatabaseLanguage()

                if (!content.isVisible() && !isBrowserInterface(request.getSession())) {
                    throw new HttpErrorException(404, "No content of name/id " + contentKey, path.getDatabaseKey());
                }
            }
            else {
                WGLanguage lang = langBehaviour.requestSelectDatabaseLanguage(database, request);
                content = database.getDummyContent(lang.getName());
            }

            // Test browsability of content
            if (!content.isDummy() && getBrowsingSecurity(database) <= BrowsingSecurity.NO_BROWSING) {
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.