public class CopyCommand extends Object
| Constructor and Description |
|---|
CopyCommand()
Empty constructor
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
copy(javax.jcr.Session destSession,
String sourcePath,
String destPath)
Webdav COPY method implementation for the same workspace.
|
javax.ws.rs.core.Response |
copy(javax.jcr.Session destSession,
String sourceWorkspace,
String sourcePath,
String destPath)
Webdav COPY method implementation for the different workspaces.
|
public CopyCommand()
public CopyCommand(javax.ws.rs.core.UriBuilder uriBuilder,
boolean itemExisted)
uriBuilder - - provide data used in 'location' headeritemExisted - - indicates if an item existed on copy destinationpublic javax.ws.rs.core.Response copy(javax.jcr.Session destSession,
String sourcePath,
String destPath)
destSession - destination sessionsourcePath - source file pathdestPath - destination file pathpublic javax.ws.rs.core.Response copy(javax.jcr.Session destSession,
String sourceWorkspace,
String sourcePath,
String destPath)
destSession - destination sessionsourceWorkspace - source workspace namesourcePath - source file pathdestPath - destination file pathCopyright © 2016 eXo Platform SAS. All Rights Reserved.