portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r921515 - /portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/PageManagementService.java
Date Wed, 10 Mar 2010 19:06:53 GMT
Author: woonsan
Date: Wed Mar 10 19:06:53 2010
New Revision: 921515

URL: http://svn.apache.org/viewvc?rev=921515&view=rev
Log:
JS2-1057: Adding move operation in page management jax-rs service.

Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/PageManagementService.java

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/PageManagementService.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/PageManagementService.java?rev=921515&r1=921514&r2=921515&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/PageManagementService.java
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal/src/main/java/org/apache/jetspeed/services/rest/PageManagementService.java
Wed Mar 10 19:06:53 2010
@@ -266,6 +266,23 @@ public class PageManagementService
     }
     
     @POST
+    @Path("/move/{type}/{path:.*}")
+    public NodeBean moveNode(@Context HttpServletRequest servletRequest,
+                             @Context UriInfo uriInfo,
+                             @PathParam("type") String type,
+                             @PathParam("source") List<PathSegment> sourcePathSegments,
+                             @FormParam("target") String targetPath,
+                             @FormParam("deep") boolean deepCopy,
+                             @FormParam("merge") boolean merging,
+                             @FormParam("owner") String owner,
+                             @FormParam("copyids") boolean copyIds)
+    {
+        NodeBean nodeBean = copyNode(servletRequest, uriInfo, type, sourcePathSegments, targetPath,
deepCopy, merging, owner, copyIds);
+        deleteNode(servletRequest, uriInfo, type, sourcePathSegments);
+        return nodeBean;
+    }
+    
+    @POST
     @Path("/info/{type}/{path:.*}")
     public NodeBean updateNodeInfo(@Context HttpServletRequest servletRequest,
                                    @Context UriInfo uriInfo,



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