Class CopyCommand
- java.lang.Object
-
- org.exoplatform.services.jcr.webdav.command.CopyCommand
-
public class CopyCommand extends Object
Created by The eXo Platform SAS.- Version:
- $Id: $
- Author:
- Vitaly Guly - gavrikvetal@gmail.com
-
-
Constructor Summary
Constructors Constructor Description CopyCommand()Empty constructorCopyCommand(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.Responsecopy(javax.jcr.Session destSession, String sourcePath, String destPath)Webdav COPY method implementation for the same workspace.javax.ws.rs.core.Responsecopy(javax.jcr.Session destSession, String sourceWorkspace, String sourcePath, String destPath)Webdav COPY method implementation for the different workspaces.
-
-
-
Constructor Detail
-
CopyCommand
public CopyCommand()
Empty constructor
-
CopyCommand
public CopyCommand(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
-
copy
public javax.ws.rs.core.Response copy(javax.jcr.Session destSession, String sourcePath, String destPath)Webdav COPY method implementation for the same workspace.- Parameters:
destSession- destination sessionsourcePath- source file pathdestPath- destination file path- Returns:
- the instance of javax.ws.rs.core.Response
-
copy
public javax.ws.rs.core.Response copy(javax.jcr.Session destSession, String sourceWorkspace, String sourcePath, String destPath)Webdav COPY method implementation for the different workspaces.- Parameters:
destSession- destination sessionsourceWorkspace- source workspace namesourcePath- source file pathdestPath- destination file path- Returns:
- the instance of javax.ws.rs.core.Response
-
-