org.apache.sling.servlets.post.impl.operations
Class CopyOperation
java.lang.Object
org.apache.sling.servlets.post.AbstractSlingPostOperation
org.apache.sling.servlets.post.impl.operations.CopyOperation
- All Implemented Interfaces:
- SlingPostOperation
public class CopyOperation
- extends AbstractSlingPostOperation
The CopyOperation
class implements the
copy
operation for the Sling default POST servlet.
Methods inherited from class org.apache.sling.servlets.post.AbstractSlingPostOperation |
checkoutIfNecessary, externalizePath, findVersionableAncestor, getApplyToResources, getItemPath, getVersioningConfiguration, hasItemPathPrefix, isSkipCheckin, isVersionable, orderNode, removeAndValidateWorkspace, requireItemPathPrefix, resolvePath, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopyOperation
public CopyOperation()
getOperationName
protected String getOperationName()
- Returns a short name to be used in log and status messages.
execute
protected javax.jcr.Item execute(List<Modification> changes,
javax.jcr.Item source,
String destParent,
String destName,
VersioningConfiguration versioningConfiguration)
throws javax.jcr.RepositoryException
- Actually executes the operation.
source
- The source item to act upon.destParent
- The absolute path of the parent of the target item.destName
- The name of the target item inside the
destParent
. If null
the name of
the source
is used as the target item name.
- Throws:
javax.jcr.RepositoryException
- May be thrown if an error occurrs executing
the operation.
doRun
protected final void doRun(SlingHttpServletRequest request,
HtmlResponse response,
List<Modification> changes)
throws javax.jcr.RepositoryException
- Specified by:
doRun
in class AbstractSlingPostOperation
- Throws:
javax.jcr.RepositoryException
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.