Package org.apache.pluto.container.om.portlet

Examples of org.apache.pluto.container.om.portlet.ContainerRuntimeOption


    final IPortletEntity portletEntity = portletWindow.getPortletEntity();
    final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition();
    final IPortletDefinitionId portletDefinitionId = portletDefinition.getPortletDefinitionId();
    final PortletApplicationDefinition parentPortletApplicationDescriptor = this.portletDefinitionRegistry.getParentPortletApplicationDescriptor(portletDefinitionId);
   
    final ContainerRuntimeOption globalEvents = parentPortletApplicationDescriptor.getContainerRuntimeOption(GLOBAL_EVENT__CONTAINER_OPTION);
    if (globalEvents != null) {
      final QName qName = event.getQName();
      final String qNameStr = qName.toString();
      for (final String globalEvent : globalEvents.getValues()) {
        if (qNameStr.equals(globalEvent)) {
          return true;
        }
      }
    }
View Full Code Here


   * @return
   */
  protected boolean doesPortletNeedHeaderWorker(IPortletWindowId portletWindowId, HttpServletRequest request) {
    IPortletWindow portletWindow = this.portletWindowRegistry.getPortletWindow(request, portletWindowId);
    PortletDefinition portletDefinition = portletWindow.getPlutoPortletWindow().getPortletDefinition();
    ContainerRuntimeOption renderHeaderOption = portletDefinition.getContainerRuntimeOption(PORTLET_RENDER_HEADERS_OPTION);
    boolean result = false;
    if(renderHeaderOption != null) {
      result = renderHeaderOption.getValues().contains(Boolean.TRUE.toString());
    }
        logger.debug("Portlet {} need render header worker: {}", portletDefinition.getPortletName(), result);
    return result;
  }
View Full Code Here

TOP

Related Classes of org.apache.pluto.container.om.portlet.ContainerRuntimeOption

Copyright © 2018 www.massapicom. 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.