portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r330385 - /portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/page/PageManager.java
Date Wed, 02 Nov 2005 23:49:32 GMT
Author: taylor
Date: Wed Nov  2 15:49:30 2005
New Revision: 330385

URL: http://svn.apache.org/viewcvs?rev=330385&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-395

add apis to support page, folder model imports

Modified:
    portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/page/PageManager.java

Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/page/PageManager.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/page/PageManager.java?rev=330385&r1=330384&r2=330385&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/page/PageManager.java
(original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/page/PageManager.java
Wed Nov  2 15:49:30 2005
@@ -275,14 +275,39 @@
     public void removeListener(PageManagerEventListener listener);
     
     /** 
-     * Clone the source page creating and returning a new cloned page  
+     * Copy the source page creating and returning a new copy of the page  
      * with the same portlet and fragment collection as the source
      * All fragments are created with new fragment ids
      * 
-     * @param source The source Page object to be cloned 
+     * @param source The source Page object to be copied 
      * @param path a PSML normalized path to the new page to be created
-     * @return a new Page object cloned from the source, with new fragment ids
+     * @return a new Page object copied from the source, with new fragment ids
      */
-    public Page clonePage(Page source, String path) 
+    public Page copyPage(Page source, String path) 
         throws JetspeedException, PageNotUpdatedException;;
+
+    /** 
+     * Copy the source folder creating and returning a new copy of the folder  
+     * with the same content as the source
+     * All subobjects are created with new ids
+     * 
+     * @param source The source Folder object to be copied 
+     * @param path a PSML normalized path to the new folder to be created
+     * @return a new Folder object copied from the source, with new subobject ids
+     */
+    public Folder copyFolder(Folder source, String path) 
+        throws JetspeedException, PageNotUpdatedException;;
+
+    /** 
+     * Copy the source fragment creating and returning a new copy of the fragment  
+     * with the parameter collection as the source
+     * The fragment is created with a new fragment id
+     * 
+     * @param source The source Fragment object to be copied 
+     * @param the new fragment name, can be the same as source fragment name
+     * @return a new Fragment object copied from the source
+     */
+    public Fragment copyFragment(Fragment source, String name) 
+        throws JetspeedException, PageNotUpdatedException;;
+        
 }



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