org.apache.jackrabbit.standalone.cli.core
Class Copy
java.lang.Object
org.apache.jackrabbit.standalone.cli.core.Copy
- All Implemented Interfaces:
- org.apache.commons.chain.Command
public class Copy
- extends Object
- implements org.apache.commons.chain.Command
Copy a Node.
If the source Workspace
is unset it will create a copy of the
given Node
from the current working Workspace
.
If the target path ends with '/' the source node will be copied as a child of
the target node maintaining the name.
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Constructor Summary |
Copy()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Copy
public Copy()
execute
public boolean execute(org.apache.commons.chain.Context ctx)
throws Exception
-
- Specified by:
execute
in interface org.apache.commons.chain.Command
- Throws:
Exception
getDestAbsPathKey
public String getDestAbsPathKey()
- Returns:
- the destination absolute path key
setDestAbsPathKey
public void setDestAbsPathKey(String destAbsPathKey)
- sets the destination absolute path key
- Parameters:
destAbsPathKey
- the destination absolute path key
getSrcAbsPathKey
public String getSrcAbsPathKey()
- Returns:
- the source absolute path key
setSrcAbsPathKey
public void setSrcAbsPathKey(String srcAbsPathKey)
- Sets the source absolute path key
- Parameters:
srcAbsPathKey
- the source absolute path key
getSrcWorkspaceKey
public String getSrcWorkspaceKey()
- Returns:
- the source
Workspace
key
setSrcWorkspaceKey
public void setSrcWorkspaceKey(String srcWorkspaceKey)
- Sets the source
Workspace
key
- Parameters:
srcWorkspaceKey
- the source Workspace
key
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.