Package de.innovationgate.wgpublisher.lang

Examples of de.innovationgate.wgpublisher.lang.RequestLanguageChooser


        }
        else if (getPathType() == TYPE_TML) {
            if (this.contentKey != null) {
                URLID contentid = new URLID(this.contentKey, this.database);
                boolean isBI = WGPDispatcher.isBrowserInterface(request.getSession()) || WGPDispatcher.isAuthoringMode(database.getDbReference(), request.getSession());
                this.content = WGPDispatcher.getContentByAnyKey(contentid, database, new RequestLanguageChooser(database, request), isBI);
                if (this.content != null) {
                    // Look if we really used the parsed content URLID information.
                    if (!contentid.isCompleteFormat()) {
                        completePath = false;
                    }
View Full Code Here


          return null;
      }
     
      if (this.pathType == TYPE_TITLE_PATH) {
            TitlePathManager tpm = (TitlePathManager) this.database.getAttribute(WGACore.DBATTRIB_TITLEPATHMANAGER);
            List titlePath = tpm.buildTitlePath(this.content, mediaKey.getKey(), new RequestLanguageChooser(this.database, req));
            if (titlePath != null) {
                path.append(WGUtils.serializeCollection(titlePath, "/"));
            }
            // Cannot build a title path. We use a normal content path instead.
            else {
View Full Code Here

        TitlePathManager tpm = (TitlePathManager) database.getAttribute(WGACore.DBATTRIB_TITLEPATHMANAGER);
        TitlePath titlePathURL = getTitlePathURL();
       
        WGContent pathContent = null;
        try {
            pathContent = tpm.findContentByTitlePath(titlePathURL, database, new RequestLanguageChooser(database, request), TitlePathManager.MODE_URL);
        }
        catch (RemainingPathElementException e) {
            // Cannot happen with MODE_URL of title path manager
        }
       
View Full Code Here

        HttpSession session = req.getSession();
        boolean isBI = isBrowserInterface(session) || isAuthoringMode(database.getDbReference(), session);

        // Inner getContentByAnyKey
        return getContentByAnyKey(contentKey, database, new RequestLanguageChooser(database, req), isBI);

    }
View Full Code Here

TOP

Related Classes of de.innovationgate.wgpublisher.lang.RequestLanguageChooser

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.