public class LockMethod extends LockMethod
WebDAVMethod.Condition
createExclusive, EMPTY_NS, lockInfo, lockToken, m_timeoutDuration
logger, m_childToParent, m_conditions, m_davHelper, m_depth, m_parentLockInfo, m_request, m_resourceTag, m_response, m_rootNodeRef, m_strPath, m_userAgent
Constructor and Description |
---|
LockMethod(VtiPathHelper pathHelper) |
Modifier and Type | Method and Description |
---|---|
protected void |
attemptLock()
The main lock implementation method.
|
protected FileInfo |
createNode(org.alfresco.service.cmr.repository.NodeRef parentNodeRef,
String name,
org.alfresco.service.namespace.QName typeQName)
Create a new node
|
protected FileInfo |
getNodeForPath(org.alfresco.service.cmr.repository.NodeRef rootNodeRef,
String path)
Get the file info for the given paths
|
String |
getPath()
Returns the path, excluding the Servlet Context (if present)
|
protected org.dom4j.io.OutputFormat |
getXMLOutputFormat()
Returns the format required for an XML response.
|
protected boolean |
shouldFlushXMLWriter()
Determines whether the XMLWriter should be flushed when XML is flushed.
|
createLock, executeImpl, generateNamespaceDeclarations, generateResponse, getLockTimeout, hasLockToken, parseRequestBody, parseRequestHeaders, refreshLock
checkNode, checkNode, createXMLWriter, execute, flushXML, generateLockDiscoveryXML, generateLockDiscoveryXML, generateResponseImpl, getActionService, getAuthenticationService, getContentService, getContextPath, getDAVHelper, getDAVLockService, getDepth, getFileFolderService, getMimetypeService, getNamespaceService, getNodeLockInfo, getNodeService, getPermissionService, getRequestBodyAsDocument, getRootNodeRef, getSearchService, getServiceRegistry, getServletPath, getSiteId, getStatusForAccessDeniedException, getTenantDomain, getTransactionService, getURLForPath, getWorkingCopy, isReadOnly, parseDepthHeader, parseIfHeader, setDetails, toString
public LockMethod(VtiPathHelper pathHelper)
protected FileInfo getNodeForPath(org.alfresco.service.cmr.repository.NodeRef rootNodeRef, String path) throws FileNotFoundException
WebDAVMethod
getNodeForPath
in class WebDAVMethod
rootNodeRef
- the acting webdav rootpath
- the path to search forFileNotFoundException
- if the path doesn't refer to a valid nodeWebDAVMethod.getNodeForPath(org.alfresco.service.cmr.repository.NodeRef, java.lang.String)
protected FileInfo createNode(org.alfresco.service.cmr.repository.NodeRef parentNodeRef, String name, org.alfresco.service.namespace.QName typeQName)
LockMethod
createNode
in class LockMethod
parentNodeRef
- the parent node.name
- the name of the nodetypeQName
- the type to createLockMethod.createNode(org.alfresco.service.cmr.repository.NodeRef, java.lang.String, org.alfresco.service.namespace.QName)
public String getPath()
getPath
in class WebDAVMethod
WebDAVMethod.getPath()
protected boolean shouldFlushXMLWriter()
WebDAVMethod
shouldFlushXMLWriter
in class WebDAVMethod
true
if the XMLWriter should be flushed when XML is flushedWebDAVMethod.shouldFlushXMLWriter()
protected org.dom4j.io.OutputFormat getXMLOutputFormat()
WebDAVMethod
getXMLOutputFormat
in class WebDAVMethod
WebDAVMethod.createXMLWriter()
protected void attemptLock() throws WebDAVServerException, Exception
LockMethod
attemptLock
in class LockMethod
WebDAVServerException
Exception
Copyright © 2005–2017 Alfresco Software. All rights reserved.