public interface WebDAVLockService
| Modifier and Type | Method and Description |
|---|---|
LockInfo |
getLockInfo(NodeRef nodeRef)
Gets the lock info for the node reference relative to the current user.
|
boolean |
isLockedAndReadOnly(NodeRef nodeRef)
Determines if the node is locked AND it's not a WRITE_LOCK for the current user.
|
void |
lock(NodeRef nodeRef,
LockInfo lockInfo) |
void |
lock(NodeRef nodeRef,
String userName,
int timeout)
Shared method for webdav/vti protocols to lock node.
|
void |
sessionDestroyed() |
void |
setCurrentSession(javax.servlet.http.HttpSession session)
Caches current session in a thread local variable.
|
void |
unlock(NodeRef nodeRef)
Shared method for webdav/vti to unlock node.
|
static final String BEAN_NAME
void sessionDestroyed()
void lock(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 unlock(NodeRef nodeRef)
nodeRef - the node to lockLockInfo getLockInfo(NodeRef nodeRef)
nodeRef - the node referenceLockService#getLockStatus(NodeRef, NodeRef)boolean isLockedAndReadOnly(NodeRef nodeRef)
void setCurrentSession(javax.servlet.http.HttpSession session)
session - Copyright © 2005–2014 Alfresco Software. All rights reserved.