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 PortletEntityAccessComponentImpl.java
Date Wed, 05 Jan 2005 04:25:29 GMT
taylor      2005/01/04 20:25:29

  Modified:    jetspeed-api/src/java/org/apache/jetspeed/components/portletentity
                        PortletEntityAccessComponent.java
               components/registry/src/java/org/apache/jetspeed/components/portletentity
                        PortletEntityAccessComponentImpl.java
  Log:
  - add portlet entity api to provide a entity id to a newly created entity
  
  Revision  Changes    Path
  1.7       +2 -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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PortletEntityAccessComponent.java	29 Oct 2004 14:13:49 -0000	1.6
  +++ PortletEntityAccessComponent.java	5 Jan 2005 04:25:29 -0000	1.7
  @@ -96,6 +96,7 @@
   	 * @return
   	 */
   	MutablePortletEntity newPortletEntityInstance(PortletDefinition portletDefinition);
  +    MutablePortletEntity newPortletEntityInstance(PortletDefinition portletDefinition,
String id);
   	
   	/**
   	 * 
  
  
  
  1.26      +8 -0      jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/components/portletentity/PortletEntityAccessComponentImpl.java
  
  Index: PortletEntityAccessComponentImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/components/portletentity/PortletEntityAccessComponentImpl.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- PortletEntityAccessComponentImpl.java	4 Jan 2005 15:53:53 -0000	1.25
  +++ PortletEntityAccessComponentImpl.java	5 Jan 2005 04:25:29 -0000	1.26
  @@ -386,6 +386,14 @@
               persistenceStore.getTransaction().rollback();
               throw ioe;
           }
  +    }
   
  +    public MutablePortletEntity newPortletEntityInstance(PortletDefinition portletDefinition,
String id)
  +    {
  +        PortletEntityImpl portletEntity = new PortletEntityImpl();
  +        portletEntity.setPortletDefinition(portletDefinition);
  +        portletEntity.setId(id);
  +        return (PortletEntityImpl) portletEntity;
       }
  +    
   }
  
  
  

---------------------------------------------------------------------
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