Package org.apache.pluto.om.window

Examples of org.apache.pluto.om.window.PortletWindow


        if(entity == null)
        {
            throw new IllegalArgumentException("cratePortletWindow requires a non-null PortletEntity");
        }
       
        PortletWindow found = getWindowFromCache(windowId);
        if (found != null)
        {
            // remove from cache if invalid entity
            checkPortletWindowEntity(found);
            ((PortletWindowCtrl)found).setPortletEntity(entity);
View Full Code Here


        return window;       
    }

    public PortletWindow createPortletWindow(String windowId)
    {
        PortletWindow found = getWindowFromCache(windowId);
        if (found != null)
        {
            // remove from cache if invalid entity
            checkPortletWindowEntity(found);
            return found;
View Full Code Here

        return window;               
    }
   
    public PortletWindow getPortletWindow(String windowId)
    {
        PortletWindow window = getWindowFromCache(windowId);
        if (window != null)
        {
            // remove from cache if invalid entity
            checkPortletWindowEntity(window);
        }       
View Full Code Here

    }
   
    public PortletWindow getPortletWindow(ContentFragment fragment) throws FailedToRetrievePortletWindow, PortletEntityNotStoredException
    {
        ArgUtil.assertNotNull(ContentFragment.class, fragment, this, "getPortletWindow(Fragment fragment)");
        PortletWindow portletWindow = getWindowFromCache(fragment);       
        if (portletWindow == null || !checkPortletWindowEntity(portletWindow))
        {
            try
            {
                return createPortletWindow(fragment);
View Full Code Here

    public PortletWindow getPortletWindow(ContentFragment fragment, String principal) throws FailedToRetrievePortletWindow, FailedToCreateWindowException, PortletEntityNotStoredException
    {
        ArgUtil.assertNotNull(ContentFragment.class, fragment, this, "getPortletWindow(Fragment fragment, String principal)");
        ArgUtil.assertNotNull(String.class, principal, this, "getPortletWindow(Fragment fragment, String principal)");
        PortletWindow portletWindow = getWindowFromCache(fragment);
        if (portletWindow == null)
        {
            return createPortletWindow(fragment, principal);
        }       
        else
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

    public void removeWindows(PortletEntity portletEntity)
    {
        List tmpWindows = new ArrayList(windows.entrySet());
        for(int i = 0; i < tmpWindows.size(); i++)
        {
            PortletWindow window = (PortletWindow)((Map.Entry)tmpWindows.get(i)).getValue();
            if (portletEntity.getId().equals(window.getPortletEntity().getId()))
            {
                removeWindow(window);
            }
        }       
        tmpWindows.clear();
View Full Code Here

    protected void removeForPortletDefinition(PortletDefinitionComposite def)
    {
        List tmpWindows = new ArrayList(windows.entrySet());
        for (int i = 0; i < tmpWindows.size(); i++)
        {
            PortletWindow window = (PortletWindow)((Map.Entry)tmpWindows.get(i)).getValue();
            PortletDefinitionComposite windowDef = (PortletDefinitionComposite)window.getPortletEntity().getPortletDefinition();           
            if(def != null && windowDef != null && def.getUniqueName() != null && def.getUniqueName().equals(windowDef.getUniqueName()))
            {
                removeWindow(window);
            }
        }       
View Full Code Here

    protected void removeForPortletApplication(MutablePortletApplication app)
    {
        List tmpWindows = new ArrayList(windows.entrySet());
        for (int i = 0; i < tmpWindows.size(); i++)
        {
            PortletWindow window = (PortletWindow)((Map.Entry)tmpWindows.get(i)).getValue();
            PortletDefinitionComposite pd =  (PortletDefinitionComposite)window.getPortletEntity().getPortletDefinition();
            if (pd != null)
            {
                MutablePortletApplication windowApp = (MutablePortletApplication)pd.getPortletApplicationDefinition();           
                if (app.getName().equals(windowApp.getName()))
                {
View Full Code Here

        }
       
        // handle maximized state
        boolean atLeastOneHasHeaderPhase = false;
        NavigationalState nav = context.getPortalURL().getNavigationalState();
        PortletWindow window = nav.getMaximizedWindow();
        if ( null != window )
        {
            ContentFragment maxedContentFragment = page.getContentFragmentById( window.getId().toString() );
            if ( maxedContentFragment != null )
            {
                atLeastOneHasHeaderPhase = renderHeaderFragment( context, maxedContentFragment );
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.pluto.om.window.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.