portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sean Taylor (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Closed: (JS2-577) PortletWindowAccessorImpl.removeWindows(PortletEntity portletEntity) Doesn't remove Portletwindows from cache
Date Thu, 28 Sep 2006 22:29:56 GMT
     [ http://issues.apache.org/jira/browse/JS2-577?page=all ]

David Sean Taylor closed JS2-577.
---------------------------------

    Resolution: Fixed

patch applied and tested

> PortletWindowAccessorImpl.removeWindows(PortletEntity portletEntity) Doesn't remove Portletwindows
from cache
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: JS2-577
>                 URL: http://issues.apache.org/jira/browse/JS2-577
>             Project: Jetspeed 2
>          Issue Type: Bug
>    Affects Versions: 2.1-dev
>            Reporter: Ethan Adams
>         Assigned To: David Sean Taylor
>
> Method uses portletEntity.getPortletWindowList() to get list of windows to remove.  Problem
is that that method always returns an empty collection.  So, the windows don't get removed
from cache.
> Not sure this is a good fix, but this is the change I made.  It seems to work.
>         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);
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message