Examples of mayCreateChildEntry()


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

        // 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.mayCreateChildEntry()

        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
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.