public interface WebDAVLockService
Modifier and Type | Method and Description |
---|---|
LockInfo |
getLockInfo(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Gets the lock info for the node reference relative to the current user.
|
boolean |
isLockedAndReadOnly(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Determines if the node is locked AND it's not a WRITE_LOCK for the current user.
|
void |
lock(org.alfresco.service.cmr.repository.NodeRef nodeRef,
LockInfo lockInfo) |
void |
lock(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String userName,
int timeout)
Shared method for webdav/vti protocols to lock node.
|
void |
sessionDestroyed() |
void |
setCurrentSession(HttpSession session)
Caches current session in a thread local variable.
|
void |
unlock(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Shared method for webdav/vti to unlock node.
|
static final String BEAN_NAME
void sessionDestroyed()
void lock(org.alfresco.service.cmr.repository.NodeRef nodeRef, String userName, int timeout)
nodeRef
- the node to lockuserName
- the current user's user nametimeout
- the number of seconds before the locks expiresvoid lock(org.alfresco.service.cmr.repository.NodeRef nodeRef, LockInfo lockInfo)
void unlock(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the node to lockLockInfo getLockInfo(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the node referenceLockService.getLockStatus(org.alfresco.service.cmr.repository.NodeRef, java.lang.String)
boolean isLockedAndReadOnly(org.alfresco.service.cmr.repository.NodeRef nodeRef)
void setCurrentSession(HttpSession session)
session
- HttpSessionCopyright © 2005–2017 Alfresco Software. All rights reserved.