Class MoveCommand
- java.lang.Object
-
- org.exoplatform.services.jcr.webdav.command.MoveCommand
-
public class MoveCommand extends Object
Created by The eXo Platform SAS.- Version:
- $Id: $
- Author:
- Vitaly Guly - gavrikvetal@gmail.com
-
-
Constructor Summary
Constructors Constructor Description MoveCommand()Empty constructorMoveCommand(javax.ws.rs.core.UriBuilder uriBuilder, boolean itemExisted)Here we pass URI builder and info about pre-existence of item on the move destination path If an item existed, we must respond with NO_CONTENT (204) HTTP status.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsemove(javax.jcr.Session session, String srcPath, String destPath)Webdav Move method implementation.javax.ws.rs.core.Responsemove(javax.jcr.Session sourceSession, javax.jcr.Session destSession, String srcPath, String destPath)Webdav Move method implementation.
-
-
-
Constructor Detail
-
MoveCommand
public MoveCommand()
Empty constructor
-
MoveCommand
public MoveCommand(javax.ws.rs.core.UriBuilder uriBuilder, boolean itemExisted)Here we pass URI builder and info about pre-existence of item on the move destination path If an item existed, we must respond with NO_CONTENT (204) HTTP status. If an item did not exist, we must respond with CREATED (201) HTTP status More info can be found here.- Parameters:
uriBuilder- - provide data used in 'location' headeritemExisted- - indicates if an item existed on copy destination
-
-
Method Detail
-
move
public javax.ws.rs.core.Response move(javax.jcr.Session session, String srcPath, String destPath)Webdav Move method implementation.- Parameters:
session- current session.srcPath- source resource pathdestPath- destination resource path- Returns:
- the instance of javax.ws.rs.core.Response
-
move
public javax.ws.rs.core.Response move(javax.jcr.Session sourceSession, javax.jcr.Session destSession, String srcPath, String destPath)Webdav Move method implementation.- Parameters:
sourceSession- source sessiondestSession- destination sessionsrcPath- source resource pathdestPath- destination resource path- Returns:
- the instance of javax.ws.rs.core.Response
-
-