Examples of mayBePublished()


Examples of de.innovationgate.webgate.api.WGContent.mayBePublished()

                for  (int offset = 0; offset < _resultSet.results(); offset++) {
                    try {
                        List contentList = _resultSet.getContentList(offset+1, 1);
                        if (contentList.size() >= 1) {
                            tryContent = (WGContent) contentList.get(0);
                            if (tryContent.mayBePublished(tmlContext.isbrowserinterface(), _role)) {
                                firstContent = tryContent;
                                break;
                            }
                        }
                    }
View Full Code Here

Examples of de.innovationgate.webgate.api.WGContent.mayBePublished()

        WGContent content = path.getContent();

        // Context request, if content key filled or we have a title path
        if (content != null) {

            if (!content.mayBePublished(isBrowserInterface(session) || isAuthoringMode(database.getDbReference(), session), WGContent.DISPLAYTYPE_NONE)) {
                sendNoContentNotification(path, request, response, database);
                return;
            }

            if (content.isVirtual()) {
View Full Code Here

Examples of de.innovationgate.webgate.api.WGContent.mayBePublished()

                        content = path.getContentByTitlePath(request);
                    }
                }
            }

            if (content == null || !content.mayBePublished(isBrowserInterface(request.getSession()) || isAuthoringMode(database.getDbReference(), request.getSession()), WGContent.DISPLAYTYPE_NONE)) {
                sendNoFileContainerNotification(path, request, response, database);
                return;
            }

            fileContainer = content;
View Full Code Here

Examples of de.innovationgate.webgate.api.WGContent.mayBePublished()

        db = core.openContentDB(db, request, false);
        if (db.isSessionOpen()) {
           
            LanguageBehaviour langBehaviour = LanguageBehaviourTools.retrieve(db);
            WGContent content = langBehaviour.requestSelectContentForName(db, request, "home", false);
            if (content != null && content.mayBePublished(false, WGContent.DISPLAYTYPE_NONE)) {
                return dispatcher.getPublisherURL(request) + "/" + db.getDbReference().toLowerCase() + "/home";
            }
        }
    return null;
  }
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.