org.apache.sling.servlets.post.impl.operations
Class MoveOperation

java.lang.Object
  extended by org.apache.sling.servlets.post.AbstractSlingPostOperation
      extended by org.apache.sling.servlets.post.impl.operations.MoveOperation
All Implemented Interfaces:
SlingPostOperation

public class MoveOperation
extends AbstractSlingPostOperation

The MoveOperation class implements the move operation for the Sling default POST servlet.


Field Summary
 
Fields inherited from class org.apache.sling.servlets.post.AbstractSlingPostOperation
log
 
Fields inherited from interface org.apache.sling.servlets.post.SlingPostOperation
PROP_OPERATION_NAME, SERVICE_NAME
 
Constructor Summary
MoveOperation()
           
 
Method Summary
protected  void doRun(SlingHttpServletRequest request, HtmlResponse response, List<Modification> changes)
           
protected  javax.jcr.Item execute(List<Modification> changes, javax.jcr.Item source, String destParent, String destName, VersioningConfiguration versioningConfiguration)
          Actually executes the operation.
protected  String getOperationName()
          Returns a short name to be used in log and status messages.
 
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
 

Constructor Detail

MoveOperation

public MoveOperation()
Method Detail

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.