taylor      2005/01/04 20:25:37

  Modified:    
components/registry/src/java/org/apache/jetspeed/components/portletentity
                        PersistenceBrokerPortletEntityAccess.java
  Log:
  - add portlet entity api to provide a entity id to a newly created entity
  
  Revision  Changes    Path
  1.3       +10 -3     
jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/components/portletentity/PersistenceBrokerPortletEntityAccess.java
  
  Index: PersistenceBrokerPortletEntityAccess.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/components/portletentity/PersistenceBrokerPortletEntityAccess.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PersistenceBrokerPortletEntityAccess.java 4 Jan 2005 15:53:43 -0000       
1.2
  +++ PersistenceBrokerPortletEntityAccess.java 5 Jan 2005 04:25:37 -0000       
1.3
  @@ -220,12 +220,19 @@
       public MutablePortletEntity newPortletEntityInstance( PortletDefinition 
portletDefinition )
       {
           PortletEntityImpl portletEntity = new PortletEntityImpl();
  -
           portletEntity.setPortletDefinition(portletDefinition);
  -
           return (PortletEntityImpl) portletEntity;
       }
   
  +    public MutablePortletEntity newPortletEntityInstance(PortletDefinition 
portletDefinition, String id)
  +    {
  +        PortletEntityImpl portletEntity = new PortletEntityImpl();
  +        portletEntity.setPortletDefinition(portletDefinition);
  +        portletEntity.setId(id);
  +        return (PortletEntityImpl) portletEntity;
  +    }
  +    
  +    
       public void removeFromCache( PortletEntity entity )
       {
           // TODO Auto-generated method stub
  
  
  

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

Reply via email to