org.alfresco.repo.webdav
Class CopyMethod

java.lang.Object
  extended by org.alfresco.repo.webdav.WebDAVMethod
      extended by org.alfresco.repo.webdav.HierarchicalMethod
          extended by org.alfresco.repo.webdav.AbstractMoveOrCopyMethod
              extended by org.alfresco.repo.webdav.CopyMethod

public class CopyMethod
extends AbstractMoveOrCopyMethod

Implements the WebDAV COPY method


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
CopyMethod()
          Default constructor
 
Method Summary
protected  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.AbstractMoveOrCopyMethod
executeImpl
 
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

CopyMethod

public CopyMethod()
Default constructor

Method Detail

moveOrCopy

protected 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
Description copied from class: AbstractMoveOrCopyMethod
Implement the move or copy, depending on the implementation

Specified by:
moveOrCopy in class AbstractMoveOrCopyMethod
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


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