Investigate file locking in server API
Hi
I have a need for investigating if files in a changeset are locked on delivery. In an operation advisor, that is triggered on delivery, i shall find out, if any of the files in the delivering changeset are locked on the receiving stream.
My next need is to be able to lock files, that are delivered. I figure it done in an operation participant also triggered on delivery.
It's not easy to find anything about how to lock/unlock files by the serverside API.
Regards
Erling
Accepted answer
The client side API is outlined in another forum post: SCM Locking API.
It would probably be useful to look at that, <tt>IWorkspaceManager.applyLockOperations</tt> will call the server side <tt>IScmService.updateLocks</tt> and <tt>IWorkspaceManager.findLocks</tt> calls the server side <tt>IScmQueryService.findLocks</tt>
It would probably be useful to look at that, <tt>IWorkspaceManager.applyLockOperations</tt> will call the server side <tt>IScmService.updateLocks</tt> and <tt>IWorkspaceManager.findLocks</tt> calls the server side <tt>IScmQueryService.findLocks</tt>