Examples of PortletWindowImpl


Examples of org.apache.jetspeed.om.window.impl.PortletWindowImpl

            checkPortletWindowEntity(found);
            ((PortletWindowCtrl)found).setPortletEntity(entity);
            return found;
        }
       
        PortletWindowImpl window = new PortletWindowImpl(windowId);
        window.setPortletEntity(entity);
        if ( isValidPortletEntity(entity))
        {
            windows.put(windowId, window);
        }
        return window;       
View Full Code Here

Examples of org.apache.jetspeed.om.window.impl.PortletWindowImpl

        {
            // remove from cache if invalid entity
            checkPortletWindowEntity(found);
            return found;
        }       
        PortletWindowImpl window = new PortletWindowImpl(windowId);
        return window;               
    }
View Full Code Here

Examples of org.apache.jetspeed.om.window.impl.PortletWindowImpl

        return createPortletWindow(fragment, null);
    }
   
    private PortletWindow createPortletWindow(ContentFragment fragment, String principal) throws FailedToCreateWindowException, PortletEntityNotStoredException
    {       
        PortletWindow portletWindow = new PortletWindowImpl(fragment.getId());
        boolean temporaryWindow = false;
               
        MutablePortletEntity portletEntity = entityAccessor.getPortletEntityForFragment(fragment, principal);
        if (portletEntity == null)
        {
View Full Code Here

Examples of org.apache.pluto.driver.core.PortletWindowImpl

        PortletWindowConfig actionWindowConfig = getDriverConfiguration()
            .getPortletWindowConfig(actionWindowId);

        // Action window config will only exist if there is an action request.
        if (actionWindowConfig != null) {
            PortletWindowImpl portletWindow = new PortletWindowImpl(
                actionWindowConfig, portalURL);
            if (LOG.isDebugEnabled()) {
                LOG.debug("Processing action request for window: "
                    + portletWindow.getId().getStringId());
            }
            try {
                container.doAction(portletWindow, request, response);
            } catch (PortletContainerException ex) {
                throw new ServletException(ex);
View Full Code Here

Examples of org.apache.pluto.driver.core.PortletWindowImpl

        PortalRequestContext portalEnv = PortalRequestContext.getContext(
                (HttpServletRequest) pageContext.getRequest());
        PortalURL portalURL = portalEnv.getRequestedPortalURL();
       
        // Create the portlet window to render.
        PortletWindow window = new PortletWindowImpl(windowConfig, portalURL);
       
        // Check if someone else is maximized. If yes, don't show content.
        Map windowStates = portalURL.getWindowStates();
        for (Iterator it = windowStates.keySet().iterator(); it.hasNext(); ) {
            String windowId = (String) it.next();
            WindowState windowState = (WindowState) windowStates.get(windowId);
            if (WindowState.MAXIMIZED.equals(windowState)
                && !window.getId().getStringId().equals(windowId)) {
                return SKIP_BODY;
            }
        }
       
        // Create portal servlet request and response to wrap the original
View Full Code Here

Examples of org.apache.pluto.driver.core.PortletWindowImpl

        PortletWindowConfig actionWindowConfig = getDriverConfiguration()
            .getPortletWindowConfig(actionWindowId);

        // Action window config will only exist if there is an action request.
        if (actionWindowConfig != null) {
            PortletWindowImpl portletWindow = new PortletWindowImpl(
                actionWindowConfig, portalURL);
            if (LOG.isDebugEnabled()) {
                LOG.debug("Processing action request for window: "
                    + portletWindow.getId().getStringId());
            }
            try {
                container.doAction(portletWindow, request, response);
            } catch (PortletContainerException ex) {
                throw new ServletException(ex);
View Full Code Here

Examples of org.apache.pluto.driver.core.PortletWindowImpl

        PortalEnvironment portalEnv = PortalEnvironment.getPortalEnvironment(
            (HttpServletRequest) pageContext.getRequest());
        PortalURL portalURL = portalEnv.getRequestedPortalURL();
       
        // Create the portlet window to render.
        PortletWindow window = new PortletWindowImpl(windowConfig, portalURL);
       
        // Check if someone else is maximized. If yes, don't show content.
        Map windowStates = portalURL.getWindowStates();
        for (Iterator it = windowStates.keySet().iterator(); it.hasNext(); ) {
            String windowId = (String) it.next();
            WindowState windowState = (WindowState) windowStates.get(windowId);
            if (WindowState.MAXIMIZED.equals(windowState)
                && !window.getId().getStringId().equals(windowId)) {
                return SKIP_BODY;
            }
        }
       
        // Create portal servlet request and response to wrap the original
View Full Code Here

Examples of org.apache.pluto.driver.core.PortletWindowImpl

      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

Examples of org.apache.pluto.driver.core.PortletWindowImpl

        // Retrieve the portlet container from servlet context.
        PortletContainer container = (PortletContainer)
                servletContext.getAttribute(AttributeKeys.PORTLET_CONTAINER);
       
        // Create the portlet window to render.
        PortletWindow window = new PortletWindowImpl(container, windowConfig, portalURL);
       
        // Check if someone else is maximized. If yes, don't show content.
        Map windowStates = portalURL.getWindowStates();
        for (Iterator it = windowStates.keySet().iterator(); it.hasNext(); ) {
            String windowId = (String) it.next();
            WindowState windowState = (WindowState) windowStates.get(windowId);
            if (WindowState.MAXIMIZED.equals(windowState)
                && !window.getId().getStringId().equals(windowId)) {
                return SKIP_BODY;
            }
        }
       
        // Create portal servlet response to wrap the original
View Full Code Here

Examples of org.apache.pluto.driver.core.PortletWindowImpl

        // Retrieve the portlet container from servlet context.
        PortletContainer container = (PortletContainer)
                servletContext.getAttribute(AttributeKeys.PORTLET_CONTAINER);
       
        // Create the portlet window to render.
        PortletWindow window = new PortletWindowImpl(container, windowConfig, requestedPortalUrl);
   
    PortletMode currentMode = requestedPortalUrl.getPortletMode(window.getId().getStringId());

        //start the markup
        StringBuffer tag = new StringBuffer();
//        String strCurrentMode = currentMode.toString();       
//        tag.append("Current mode: " + currentMode.toString());
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.