public interface LockService
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupsOrUsersForLock(String groupsOrUsers)
Allow to add user or group to the locking manager list which allowed to unlock all nodes
|
void |
changeLockToken(javax.jcr.Node oldNode,
javax.jcr.Node newNode)
Change lock token from old node to new node.
|
void |
changeLockToken(String srcPath,
javax.jcr.Node newNode)
Change lock token from source path to new node.
|
String |
createLockKey(javax.jcr.Node node)
Create Lock key from specific node.
|
String |
createLockKey(javax.jcr.Node node,
String userId)
Create Lock key from a specific node and user id.
|
List<String> |
getAllGroupsOrUsersForLock()
Get all the identities which allowed to unlock nodes
|
HashMap<String,Map<String,String>> |
getLockHolding()
Return a HashMap which keeping all locked nodes informations
|
Map<String,String> |
getLockInformation(String userId)
Return a Map which kept lock token of node which locked by user
|
String |
getLockToken(javax.jcr.Node node)
Get Lock token from specifiec node.
|
String |
getLockTokenOfUser(javax.jcr.Node node)
Get lock token of user from a specific node.
|
String |
getOldLockKey(String srcPath,
javax.jcr.Node node)
Get old lock key from source path and a specific node.
|
List<String> |
getPreSettingLockList()
Get all pre-setting lock list
|
void |
putToLockHoding(String userId,
Map<String,String> lockedNodesInfo)
Put all informations of locked node such as locktoken to the Map
|
void |
removeGroupsOrUsersForLock(String groupsOrUsers)
Remove user or group out of the locking manager list
|
void |
removeLocks()
Remove all locked nodes in the system.
|
void |
removeLocksOfUser(String userId)
Remove all locked nodes user
|
List<String> getPreSettingLockList() throws Exception
ExceptionList<String> getAllGroupsOrUsersForLock() throws Exception
Exceptionvoid addGroupsOrUsersForLock(String groupsOrUsers) throws Exception
groupsOrUsers - User id or group idExceptionvoid removeGroupsOrUsersForLock(String groupsOrUsers) throws Exception
groupsOrUsers - ExceptionHashMap<String,Map<String,String>> getLockHolding()
void putToLockHoding(String userId, Map<String,String> lockedNodesInfo)
userId - It is a key which will be used to get the locked informationlockedNodesInfo - A Map which kept the locked node informationMap<String,String> getLockInformation(String userId)
userId - void removeLocksOfUser(String userId)
userId - User Identity which will be used to remove all locked node which belong to he/shevoid removeLocks()
String getLockTokenOfUser(javax.jcr.Node node) throws Exception
node - a specific nodeExceptionString createLockKey(javax.jcr.Node node) throws Exception
node - a specific nodeExceptionString createLockKey(javax.jcr.Node node, String userId) throws Exception
node - a specific nodeuserId - user IDExceptionString getLockToken(javax.jcr.Node node) throws Exception
node - a specific nodeExceptionvoid changeLockToken(String srcPath, javax.jcr.Node newNode) throws Exception
srcPath - source node pathnewNode - new nodeExceptionvoid changeLockToken(javax.jcr.Node oldNode,
javax.jcr.Node newNode)
throws Exception
oldNode - old nodenewNode - new nodeExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.