You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2004/06/23 03:49:56 UTC

cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/container/window PortletWindowAccessor.java

taylor      2004/06/22 18:49:56

  Modified:    jetspeed-api/src/java/org/apache/jetspeed/components/portletentity
                        PortletEntityAccessComponent.java
               jetspeed-api/src/java/org/apache/jetspeed/container/window
                        PortletWindowAccessor.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       +3 -1      jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/components/portletentity/PortletEntityAccessComponent.java
  
  Index: PortletEntityAccessComponent.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/components/portletentity/PortletEntityAccessComponent.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PortletEntityAccessComponent.java	10 Jun 2004 20:08:15 -0000	1.2
  +++ PortletEntityAccessComponent.java	23 Jun 2004 01:49:56 -0000	1.3
  @@ -43,6 +43,8 @@
        */
   	MutablePortletEntity getPortletEntity(ObjectID id);
       
  +    MutablePortletEntity getPortletEntity(String id);
  +    
   	/**
   	 * 
   	 * <p>
  
  
  
  1.2       +33 -2     jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/container/window/PortletWindowAccessor.java
  
  Index: PortletWindowAccessor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/container/window/PortletWindowAccessor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PortletWindowAccessor.java	28 May 2004 18:51:56 -0000	1.1
  +++ PortletWindowAccessor.java	23 Jun 2004 01:49:56 -0000	1.2
  @@ -16,6 +16,7 @@
   package org.apache.jetspeed.container.window;
   
   import org.apache.jetspeed.om.page.Fragment;
  +import org.apache.pluto.om.entity.PortletEntity;
   import org.apache.pluto.om.window.PortletWindow;
   
   /**
  @@ -34,8 +35,38 @@
        */
       PortletWindow getPortletWindow(Fragment fragment);
       
  +    /**
  +     * Get the portlet window for a fragment and given principal
  +     * @param fragment
  +     * @param principal
  +     * @return
  +     */
       PortletWindow getPortletWindow(Fragment fragment, String principal);
   
  +    /**
  +     * Lookup a portlet window in the cache
  +     * If not found, return null
  +     * 
  +     * @param windowId 
  +     * @return the window from the cache or null
  +     */
       PortletWindow getPortletWindow(String windowId);
  -    
  +
  +    /**
  +     * Given a portlet entity, create a portlet window for that entity.
  +     * 
  +     * @param entity
  +     * @param windowId
  +     * @return new window
  +     */
  +    PortletWindow createPortetWindow(PortletEntity entity, String windowId);
  +
  +    /**
  +     * Create a temporary portlet window
  +     * This window does not have an entity associated with it.
  +     * 
  +     * @param windowId
  +     * @return
  +     */
  +    PortletWindow createPortetWindow(String windowId);
   }
  
  
  

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