org.alfresco.repo.webdav
Class AbstractMoveOrCopyMethod

java.lang.Object
  extended by org.alfresco.repo.webdav.WebDAVMethod
      extended by org.alfresco.repo.webdav.HierarchicalMethod
          extended by org.alfresco.repo.webdav.AbstractMoveOrCopyMethod
Direct Known Subclasses:
CopyMethod, MoveMethod

public abstract class AbstractMoveOrCopyMethod
extends HierarchicalMethod

Implements the WebDAV COPY and MOVE methods


Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.repo.webdav.WebDAVMethod
WebDAVMethod.Condition
 
Field Summary
 
Fields inherited from class org.alfresco.repo.webdav.HierarchicalMethod
m_overwrite, m_strDestinationPath
 
Fields inherited from class org.alfresco.repo.webdav.WebDAVMethod
logger, m_childToParent, m_conditions, m_davHelper, m_depth, m_parentLockInfo, m_request, m_resourceTag, m_response, m_rootNodeRef, m_strPath, m_userAgent
 
Constructor Summary
AbstractMoveOrCopyMethod()
          Default constructor
 
Method Summary
protected  void executeImpl()
          Exceute the request
protected abstract  void moveOrCopy(org.alfresco.service.cmr.model.FileFolderService fileFolderService, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef sourceParentNodeRef, org.alfresco.service.cmr.repository.NodeRef destParentNodeRef, java.lang.String name)
          Implement the move or copy, depending on the implementation
 
Methods inherited from class org.alfresco.repo.webdav.HierarchicalMethod
checkDestinationPath, getDestinationPath, hasOverWrite, parseRequestBody, parseRequestHeaders
 
Methods inherited from class org.alfresco.repo.webdav.WebDAVMethod
checkNode, checkNode, createXMLWriter, execute, flushXML, generateLockDiscoveryXML, generateLockDiscoveryXML, generateNamespaceDeclarations, getActionService, getAuthenticationService, getContentService, getDAVHelper, getDepth, getFileFolderService, getLockService, getMimetypeService, getNamespaceService, getNodeForPath, getNodeLockInfo, getNodeService, getPath, getPermissionService, getRequestBodyAsDocument, getRootNodeRef, getSearchService, getServiceRegistry, getServletPath, getStatusForAccessDeniedException, getTransactionService, getURLForPath, getWorkingCopy, isReadOnly, parseDepthHeader, parseIfHeader, setDetails, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMoveOrCopyMethod

public AbstractMoveOrCopyMethod()
Default constructor

Method Detail

moveOrCopy

protected abstract void moveOrCopy(org.alfresco.service.cmr.model.FileFolderService fileFolderService,
                                   org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
                                   org.alfresco.service.cmr.repository.NodeRef sourceParentNodeRef,
                                   org.alfresco.service.cmr.repository.NodeRef destParentNodeRef,
                                   java.lang.String name)
                            throws java.lang.Exception
Implement the move or copy, depending on the implementation

Parameters:
fileFolderService - the service to do the work
sourceNodeRef - the node to copy or move
destParentNodeRef - the destination parent
name - the name of the file or folder
Throws:
java.lang.Exception

executeImpl

protected final void executeImpl()
                          throws WebDAVServerException,
                                 java.lang.Exception
Exceute the request

Specified by:
executeImpl in class WebDAVMethod
Throws:
WebDAVServerException
java.lang.Exception - any unhandled exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.