Details of API to fetch status of a object in stream
![]() Details of API to fetch status of a object in stream.
Need to get the status of the objects in stream. whether objects are
Need to know API and corresponding methods used to perform these actions.
|
Accepted answer
![]() You can pass the list of versionables to IWorkspaceManager#findLocks(ILockSearchCriteria criteria, IProgressMonitor monitor) and it will return ILockSearchResult that indicates the versionables that are locked.
To unlock when the user is not the same as the user who has locked the file, you need to pass a custom ILockDilemmaHandler to IUnlockOperation where you override the method currentUserDoesntOwnLock and return IDilemmaHandler.CONTINUE. The lock will be released only if the user has the right permissions.
arun sudarsanam selected this answer as the correct answer
|