Package org.alfresco.repo.webdav
Class DeleteMethod
- java.lang.Object
-
- org.alfresco.repo.webdav.WebDAVMethod
-
- org.alfresco.repo.webdav.DeleteMethod
-
- All Implemented Interfaces:
ActivityPostProducer
public class DeleteMethod extends WebDAVMethod implements ActivityPostProducer
Implements the WebDAV DELETE method- Author:
- gavinc
-
-
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.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
Constructors Constructor Description DeleteMethod()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
executeImpl()
Execute the requestprotected void
parseRequestBody()
Parse the request bodyprotected void
parseRequestHeaders()
Parse the request headersprotected void
postActivity(org.alfresco.service.cmr.model.FileInfo parent, org.alfresco.service.cmr.model.FileInfo deletedFile, String siteId)
Create a deletion activity post.void
setActivityPoster(WebDAVActivityPoster activityPoster)
-
Methods inherited from class org.alfresco.repo.webdav.WebDAVMethod
checkNode, checkNode, createXMLWriter, execute, flushXML, generateLockDiscoveryXML, generateLockDiscoveryXML, generateNamespaceDeclarations, generateResponseImpl, getActionService, getAuthenticationService, getContentService, getContextPath, getDAVHelper, getDAVLockService, getDepth, getFileFolderService, getMimetypeService, getNamespaceService, getNodeForPath, getNodeLockInfo, getNodeService, getPath, getPermissionService, getRequestBodyAsDocument, getRootNodeRef, getSearchService, getServiceRegistry, getServletPath, getSiteId, getStatusForAccessDeniedException, getTenantDomain, getTransactionService, getURLForPath, getWorkingCopy, getXMLOutputFormat, isReadOnly, parseDepthHeader, parseIfHeader, setDetails, shouldFlushXMLWriter, toString
-
-
-
-
Method Detail
-
parseRequestHeaders
protected void parseRequestHeaders() throws WebDAVServerException
Parse the request headers- Specified by:
parseRequestHeaders
in classWebDAVMethod
- Throws:
WebDAVServerException
-
parseRequestBody
protected void parseRequestBody() throws WebDAVServerException
Parse the request body- Specified by:
parseRequestBody
in classWebDAVMethod
- Throws:
WebDAVServerException
-
executeImpl
protected void executeImpl() throws WebDAVServerException, Exception
Execute the request- Specified by:
executeImpl
in classWebDAVMethod
- Throws:
WebDAVServerException
Exception
- any unhandled exception
-
postActivity
protected void postActivity(org.alfresco.service.cmr.model.FileInfo parent, org.alfresco.service.cmr.model.FileInfo deletedFile, String siteId) throws WebDAVServerException
Create a deletion activity post.- Parameters:
parent
- The FileInfo for the deleted file's parent.deletedFile
- The FileInfo for the deleted file.- Throws:
WebDAVServerException
-
setActivityPoster
public void setActivityPoster(WebDAVActivityPoster activityPoster)
- Specified by:
setActivityPoster
in interfaceActivityPostProducer
-
-