1 16 19 20 package org.apache.pluto.core.impl; 21 22 import javax.portlet.PortletMode; 23 24 import org.apache.pluto.om.window.PortletWindow; 25 26 public class PortletModeHelper 27 { 28 public static boolean isPortletModeAllowedByPortlet(PortletWindow portletWindow, 29 PortletMode portletMode) 30 { 31 boolean supported = portletWindow.getPortletEntity().getPortletDefinition().getContentTypeSet().supportsPortletMode(portletMode); 33 34 return supported; 35 } 36 37 } 38 | Popular Tags |