portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r326419 - in /portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page: impl/DatabasePageManager.java psml/CastorXmlPageManager.java
Date Wed, 19 Oct 2005 07:00:35 GMT
Author: taylor
Date: Wed Oct 19 00:00:32 2005
New Revision: 326419

URL: http://svn.apache.org/viewcvs?rev=326419&view=rev
Log:
helper for creating portlet fragments

Modified:
    portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/impl/DatabasePageManager.java
    portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/psml/CastorXmlPageManager.java

Modified: portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/impl/DatabasePageManager.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/impl/DatabasePageManager.java?rev=326419&r1=326418&r2=326419&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/impl/DatabasePageManager.java
(original)
+++ portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/impl/DatabasePageManager.java
Wed Oct 19 00:00:32 2005
@@ -129,6 +129,11 @@
         return delegator.newFragment();    
     }
 
+    public Fragment newPortletFragment()
+    {
+        return delegator.newPortletFragment();
+    }
+    
     /* (non-Javadoc)
      * @see org.apache.jetspeed.page.PageManager#newProperty()
      */

Modified: portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/psml/CastorXmlPageManager.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/psml/CastorXmlPageManager.java?rev=326419&r1=326418&r2=326419&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/psml/CastorXmlPageManager.java
(original)
+++ portals/jetspeed-2/trunk/components/page-manager/src/java/org/apache/jetspeed/page/psml/CastorXmlPageManager.java
Wed Oct 19 00:00:32 2005
@@ -128,6 +128,15 @@
         return fragment;
     }
 
+    public Fragment newPortletFragment()
+    {
+        // FragmentImpl requires generated ids
+        FragmentImpl fragment = (FragmentImpl)super.newFragment();
+        fragment.setType(Fragment.PORTLET);
+        fragment.setId(generator.getNextPeid());
+        return fragment;
+    }
+        
     /**
      * <p>
      * getPage



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


Mime
View raw message