Package org.apache.jetspeed.om.window.impl

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


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


        PortletWindow found = getWindowFromCache(windowId);
        if (found != null)
        {
            return found;
        }       
        PortletWindowImpl window = new PortletWindowImpl(windowId);
        return window;               
    }
View Full Code Here

        return createPortletWindow(fragment, null);
    }
   
    private PortletWindow createPortletWindow(Fragment fragment, String principal) throws FailedToCreateWindowException
    {
        PortletWindow portletWindow = new PortletWindowImpl(fragment.getId());
               
        MutablePortletEntity portletEntity = entityAccessor.getPortletEntityForFragment(fragment, principal);
        if (portletEntity == null)
        {
            log.info("No portlet entity defined for fragment ID "+fragment.getId()+" attempting to auto-generate...");
View Full Code Here

        request.setRequestURI("/jetspeed/portal/stuff");

        portalURL.setRequest(request);
        portalURL.setCharacterEncoding("UTF-8");

        PortletWindow window = new PortletWindowImpl("111");

        HashMap parameters = new HashMap();
        parameters.put("test",new String[]{"one","two","three"});

        String portletURL = portalURL.createPortletURL(window,parameters,PortletMode.EDIT,WindowState.MAXIMIZED,true,false);
View Full Code Here

    protected void doTestUrl(PortalURL portalURL, HttpServletRequest request)
    {            
      portalURL.setRequest(request);
      portalURL.setCharacterEncoding("UTF-8");
     
      PortletWindow window = new PortletWindowImpl("111");
      NavigationalState nav = portalURL.getNavigationalState();

      // Check that they come out correctly
      assertTrue("window mode is not set", nav.getMode(window).equals(PortletMode.EDIT));
      assertTrue("window state is not set", nav.getState(window).equals(WindowState.MAXIMIZED));
View Full Code Here

        WorkerMonitor monitor = new WorkerMonitorImpl(1, 2, 1, 1);
       
        List jobs = new ArrayList(JOB_COUNT);
        for (int ix = 0; ix < JOB_COUNT; ix++)
        {
            PortletWindow window = new PortletWindowImpl("w" + String.valueOf(ix));      
            jobs.add(new MockRenderJob("Job-" + (ix + 1), 4000, window));
        }
        assertNotNull("monitor is null", monitor);
        monitor.start();
        for (int ix = 0; ix < JOB_COUNT; ix++)
View Full Code Here

            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

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

        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

        request.setRequestURI("/jetspeed/portal/stuff");

        portalURL.setRequest(request);
        portalURL.setCharacterEncoding("UTF-8");

        PortletWindow window = new PortletWindowImpl("111");

        HashMap parameters = new HashMap();
        parameters.put("test",new String[]{"one","two","three"});

        String portletURL = portalURL.createPortletURL(window,parameters,PortletMode.EDIT,WindowState.MAXIMIZED,true,false);
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.om.window.impl.PortletWindowImpl

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.