Examples of mayCreateContent()


Examples of de.innovationgate.webgate.api.WGContentType.mayCreateContent()

        // With specified content type
        if (getContenttype() != null) {
            WGContentType contentType = getTMLContext().db().getContentType(getContenttype());
            if (contentType != null) {
                return contentType.mayCreateContent() && contentType.mayCreateChildEntry(doc);
            }
            else {
                addWarning("Contenttype '" + getContenttype() + "' could not be found in database '" + getTMLContext().db().getDbReference() + "'.");
                return false;
            }
View Full Code Here

Examples of de.innovationgate.webgate.api.WGContentType.mayCreateContent()

        else {
            Iterator contentTypes = getTMLContext().db().getContentTypes().iterator();
            boolean ctFound = false;
            while (contentTypes.hasNext()) {
                WGContentType ct = (WGContentType) contentTypes.next();
                if (ct.mayCreateContent() && ct.mayCreateChildEntry(doc)) {
                    ctFound = true;
                    break;
                }
            }
            return ctFound;
View Full Code Here

Examples of de.innovationgate.webgate.api.WGLanguage.mayCreateContent()

        // Check if we are allowed to edit any language
        Iterator langs = getTMLContext().db().getLanguages().values().iterator();
        boolean langFound = false;
        while (langs.hasNext()) {
            WGLanguage lang = (WGLanguage) langs.next();
            if (lang.mayCreateContent()) {
                langFound = true;
                break;
            }
        }
        if (langFound == false) {
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.