public interface LockStore
lock information.
Note: the existence of LockInfo does NOT mean that a node is necessarily locked. It may have timed-out, been unlocked, or be left in an invalid state for some reason. The LockInfo is a record of a requested lock - the actual values should be examined as necessary.
Implementations of this interface should be fast, ideally an in-memory map. Implementations should also be thread- and cluster-safe (if used in a cluster).
| Modifier and Type | Method and Description |
|---|---|
LockInfo |
get(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Retrieves LockInfo for as given nodeRef.
|
void |
put(org.alfresco.service.cmr.repository.NodeRef nodeToLock,
LockInfo lockInfo)
Provide LockInfo about a specific node to the LockStore.
|
void |
remove(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Remove LockInfo for the specified NodeRef.
|
void put(org.alfresco.service.cmr.repository.NodeRef nodeToLock,
LockInfo lockInfo)
nodeToLock - lockInfo - LockInfo get(org.alfresco.service.cmr.repository.NodeRef nodeRef)
The presence of LockInfo does not imply that a node is locked.
nodeRef - void remove(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.