Package org.apache.pluto.container

Examples of org.apache.pluto.container.PortletWindow


            PortletResponse response,
            FilterManager filterManager,
            Integer methodID)
    throws PortletException, IOException, PortletContainerException {

        PortletWindow portletWindow = context.getPortletWindow();
        String appName = portletWindow.getPortletDefinition().getApplication().getName();
        ServletContext servletContext = portletContextService.getPortletContext(appName).getServletContext();

        String uri =  PREFIX + portletWindow.getPortletDefinition().getPortletName();
        if (LOG.isDebugEnabled()) {
            LOG.debug("Dispatching to portlet servlet at: " + uri);
        }

        RequestDispatcher dispatcher = servletContext.getRequestDispatcher(uri);
View Full Code Here


            Collection<PortletWindowConfig> portlets = getAllPortlets(driverConfig);

            // iterate all portlets in the portal
            for (PortletWindowConfig config : portlets) {
                PortletWindow window = new PortletWindowImpl(container, config, portalURL);
                if (portletNames != null) {
                    for (String portlet : portletNames) {
                        if (portlet.equals(config.getId())) {
/* PLUTO-569: multi-threaded (event) request processing isn't thread save with the Pluto Portal Driver handling of request attributes
   as they all are stored/managed within the single underlying HttpServletRequest.
View Full Code Here

        request.removeAttribute(PortletInvokerService.FILTER_MANAGER);

        requestContext.init(portletConfig, getServletContext(), request, response);
        responseContext.init(request, response);

        PortletWindow window = requestContext.getPortletWindow();

        PortletInvocationEvent event = new PortletInvocationEvent(portletRequest, window, methodId.intValue());

        notify(event, true, null);
View Full Code Here

public class RequestAttributeServiceImplTest {

  @Test
  public void testNull() {
    MockHttpServletRequest httpServletRequest  = new MockHttpServletRequest();
    PortletWindow plutoPortletWindow = mock(PortletWindow.class);
   
    RequestAttributeServiceImpl service = new RequestAttributeServiceImpl();
    Assert.assertNull(service.getAttribute(httpServletRequest, plutoPortletWindow, null));
    Assert.assertNull(service.getAttribute(httpServletRequest, plutoPortletWindow, "someotherattribute"));
  }
View Full Code Here

   
    Map<String, List<Object>> attributes = new HashMap<String, List<Object>>();
    attributes.put("attribute1", Arrays.asList(new Object[] { "value1", "value2", "value3" }));
    NamedPersonImpl personAttributes = new NamedPersonImpl("username", attributes);
   
    PortletWindow plutoPortletWindow = mock(PortletWindow.class);
    IPortletWindow portletWindow = mock(IPortletWindow.class);
    IPortletEntity portletEntity = mock(IPortletEntity.class);
    when(portletWindow.getPortletEntity()).thenReturn(portletEntity);
    IPortletDefinition portletDefinition = mock(IPortletDefinition.class);
    when(portletEntity.getPortletDefinition()).thenReturn(portletDefinition);
View Full Code Here

    }

    @Override
    public PortletPreferences createPortletPreferences(final PortletRequestContext requestContext, boolean render) {
        final HttpServletRequest containerRequest = requestContext.getContainerRequest();
        final PortletWindow plutoPortletWindow = requestContext.getPortletWindow();
        final IPortletWindow portletWindow = portletWindowRegistry.convertPortletWindow(containerRequest, plutoPortletWindow);
        final IPortletEntity portletEntity = portletWindow.getPortletEntity();
       
        final boolean configMode = IPortletRenderer.CONFIG.equals(portletWindow.getPortletMode());
        if (configMode) {
View Full Code Here

      Collection<PortletWindowConfig> portlets = getAllPortlets(driverConfig);

      // iterate all portlets in the portal
      for (PortletWindowConfig config : portlets) {
        PortletWindow window = new PortletWindowImpl(container, config, portalURL);
        if (portletNames != null) {
          for (String portlet : portletNames) {
            if (portlet.equals(config.getId())) {

              // the thread now is a new one, with possible
View Full Code Here

TOP

Related Classes of org.apache.pluto.container.PortletWindow

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.