Examples of supportsPortletMode()


Examples of org.apache.pluto.om.portlet.ContentTypeSet.supportsPortletMode()

        }
        else
        // help
        {
            createAction(actions, JetspeedActions.INDEX_VIEW, portlet);
            if (content.supportsPortletMode(PortletMode.EDIT))
            {
                createAction(actions, JetspeedActions.INDEX_EDIT, portlet);
            }
        }
        return actions;
View Full Code Here

Examples of org.apache.pluto.om.portlet.ContentTypeSet.supportsPortletMode()

                        {
                            currentModeAction = mappedMode.toString();
                        }
                        if ( ! equalsCurrentMode || isAjaxRequest )
                        {
                            if ( content.supportsPortletMode(customMode)
                                 && (!PortletMode.EDIT.equals(customMode) || pageActionAccess.isEditAllowed())
                                 && pageActionAccess.checkPortletMode(fragmentId, portletName, mappedMode)
                                 )
                            {
                                actionTemplates.add(new DecoratorActionTemplate(mappedMode, customMode));
View Full Code Here

Examples of org.apache.pluto.om.portlet.ContentTypeSet.supportsPortletMode()

                        {
                            currentModeAction = mappedMode.toString();
                        }
                        if ( ! equalsCurrentMode || isAjaxRequest )
                        {
                            if ( content.supportsPortletMode(customMode)
                                 && (!PortletMode.EDIT.equals(customMode) || pageActionAccess.isEditAllowed())
                                 && pageActionAccess.checkPortletMode(fragmentId, portletName, mappedMode)
                                 )
                            {
                                actionTemplates.add(new DecoratorActionTemplate(mappedMode, customMode));
View Full Code Here

Examples of org.apache.pluto.om.portlet.ContentTypeSet.supportsPortletMode()

                        {
                            currentModeAction = mappedMode.toString();
                        }
                        if ( ! equalsCurrentMode || isAjaxRequest )
                        {
                            if ( (content.supportsPortletMode(customMode) || isAutoSwitchableCustomMode(content, customMode))
                                 && (!PortletMode.EDIT.equals(customMode) || pageActionAccess.isEditAllowed())
                                 && pageActionAccess.checkPortletMode(fragmentId, portletName, mappedMode)
                                 )
                            {
                                actionTemplates.add(new DecoratorActionTemplate(mappedMode, customMode));
View Full Code Here

Examples of org.apache.pluto.om.portlet.ContentTypeSet.supportsPortletMode()

        {
            return true;
        }
        PortletDefinition portletDefinition = referencedPortletWindow.getPortletEntity().getPortletDefinition();
        ContentTypeSet contentTypes = portletDefinition.getContentTypeSet();
        return contentTypes.supportsPortletMode(requestedPortletMode);
    }
    // --------------------------------------------------------------------------------------------

    // additional methods -------------------------------------------------------------------------
    public String getParameter(String name)
View Full Code Here

Examples of org.apache.pluto.om.portlet.ContentTypeSet.supportsPortletMode()

                createAction(actions, JetspeedActions.INDEX_NORMAL, portlet);                       
            }
           
            if (mode.equals(PortletMode.VIEW.toString()))
            {
                if (content.supportsPortletMode(PortletMode.EDIT))
                {
                    createAction(actions, JetspeedActions.INDEX_EDIT, portlet);
                }
                if (content.supportsPortletMode(PortletMode.HELP))
                {           
View Full Code Here

Examples of org.apache.pluto.om.portlet.ContentTypeSet.supportsPortletMode()

            {
                if (content.supportsPortletMode(PortletMode.EDIT))
                {
                    createAction(actions, JetspeedActions.INDEX_EDIT, portlet);
                }
                if (content.supportsPortletMode(PortletMode.HELP))
                {           
                    createAction(actions, JetspeedActions.INDEX_HELP, portlet);
                }
            }
            else if (mode.equals(PortletMode.EDIT.toString()))
View Full Code Here

Examples of org.apache.pluto.om.portlet.ContentTypeSet.supportsPortletMode()

                }
            }
            else if (mode.equals(PortletMode.EDIT.toString()))
            {
                createAction(actions, JetspeedActions.INDEX_VIEW, portlet);
                if (content.supportsPortletMode(PortletMode.HELP))
                {                       
                    createAction(actions, JetspeedActions.INDEX_HELP, portlet);
                }
            }
            else // help
View Full Code Here

Examples of org.apache.pluto.om.portlet.ContentTypeSet.supportsPortletMode()

                }
            }
            else // help
            {
                createAction(actions, JetspeedActions.INDEX_VIEW, portlet);
                if (content.supportsPortletMode(PortletMode.EDIT))
                {           
                    createAction(actions, JetspeedActions.INDEX_EDIT, portlet);
                }
            }
            return actions;
View Full Code Here

Examples of org.apache.pluto.om.portlet.ContentTypeSet.supportsPortletMode()

        // generate standard page actions depending on
        // portlet capabilities
        ContentTypeSet content = portlet.getContentTypeSet();
        if (mode.equals(PortletMode.VIEW.toString()))
        {
            if (content.supportsPortletMode(PortletMode.EDIT))
            {
                createAction(actions, JetspeedActions.INDEX_EDIT, portlet);
            }
            if (content.supportsPortletMode(PortletMode.HELP))
            {           
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.