taylor      2004/06/22 18:49:36

  Modified:    portal/src/java/org/apache/jetspeed/container/window/impl
                        PortletWindowAccessorImpl.java
  Log:
  added methods to window acccessor component to create windows for jahia and j1 to 
create
  windows to wrapper window ids and entities without the j2 fragment model
  
  Revision  Changes    Path
  1.3       +27 -1     
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/window/impl/PortletWindowAccessorImpl.java
  
  Index: PortletWindowAccessorImpl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/window/impl/PortletWindowAccessorImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PortletWindowAccessorImpl.java    10 Jun 2004 20:15:11 -0000      1.2
  +++ PortletWindowAccessorImpl.java    23 Jun 2004 01:49:36 -0000      1.3
  @@ -32,6 +32,7 @@
   import org.apache.jetspeed.om.window.impl.PortletWindowImpl;
   import org.apache.jetspeed.util.JetspeedObjectID;
   import org.apache.pluto.om.common.ObjectID;
  +import org.apache.pluto.om.entity.PortletEntity;
   import org.apache.pluto.om.window.PortletWindow;
   import org.apache.pluto.om.window.PortletWindowCtrl;
   import org.apache.pluto.om.window.PortletWindowList;
  @@ -63,6 +64,31 @@
       {
       }
   
  +    public PortletWindow createPortetWindow(PortletEntity entity, String windowId)
  +    {
  +        PortletWindow found = getWindowFromCache(windowId);
  +        if (found != null)
  +        {
  +            return found;
  +        }
  +        
  +        PortletWindowImpl window = new PortletWindowImpl(windowId);
  +        window.setPortletEntity(entity);
  +        windows.put(windowId, window);
  +        return window;        
  +    }
  +
  +    public PortletWindow createPortetWindow(String windowId)
  +    {
  +        PortletWindow found = getWindowFromCache(windowId);
  +        if (found != null)
  +        {
  +            return found;
  +        }        
  +        PortletWindowImpl window = new PortletWindowImpl(windowId);
  +        return window;                
  +    }
  +    
       public PortletWindow getPortletWindow(String windowId)
       {
           return getWindowFromCache(windowId);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to