You could use wm.server.ns:getAllLockedNodes.
But doing so, I will be using WmRoot package which I think I’m not supposed to use. Is there any other way apart from using WmRoot to accomplish this? Thank you.
You can use the services in WmRoot at your own risk. You must check if the service wm.server.ns:getAllLockedNodes exists in wM 6.x and 8.x IS’s. If not you will find something similar to this.
Thanks for the reply.
But we have set of rules in our project that does not allow use of any WmRoot services.
I do not need any information on user who locked the item. I just need the package name if any locks are present in it. But I do not see any inbuilt service to do so. So is there any place in IS where I can get to see if a package is locked?
Unfortunately there is no OOTB services to do this but if you are allowed to write custom java service in your project then you can refer the wM IS Java API.
However you can see the nodes locked in a package on IS administration page somewhere in packages management.
Ok Thank you all. I will try to go through java API or request the project to use WmRoot.
Sure you could use Java API, because services in WmRoot use it too, but these APIs are not public, so you will have a higher risk then using WmRoot services.
Using services in WmRoot could be very useful and saves huge time costing, just be careful when upgrade to new version.
I’m allowed to use WmRoot. So the first problem is solved.
But the locked elements are show as document names. I have attached screenshot of the output. I need the document names(locked element names) into a temporary string. How can I get the these names into a string? Thank you.