portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/components/portletentity PersistenceBrokerPortletEntityAccess.java
Date Wed, 05 Jan 2005 04:25:37 GMT
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: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message