REPO-164 / REPO-1086 - V1 REST API: Lock Node

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129643 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ancuta Morarasu
2016-08-18 12:11:24 +00:00
parent 54ace720da
commit d471969302
3 changed files with 61 additions and 2 deletions

View File

@@ -101,6 +101,17 @@ public class VirtualLockServiceExtension extends SpringBeanExtension<LockService
lockChildren);
}
@Override
public void lock(NodeRef nodeRef, LockType lockType, int timeToExpire, Lifetime lifetime, boolean lockChildren)
throws UnableToAquireLockException
{
getTrait().lock(smartStore.materializeIfPossible(nodeRef),
lockType,
timeToExpire,
lifetime,
lockChildren);
}
@Override
public void lock(Collection<NodeRef> nodeRefs, LockType lockType, int timeToExpire)
throws UnableToAquireLockException