19-05-2016 03:07 PM
Hi,
We are trying to modify some objects as part of a batch script via java, some of which are protected after the validation workflow has completed on them,
Calling the unlock() method fails on these objects. Can somebody please help?
Code snippet
public void secureUnlock(){
System.out.println("Check lock status: "+m.getProp(Site.MA_GenericLocalName) +" status= " +lock.status());
if(lock.active()){
System.out.println("Unlocking: "+m.getProp(Site.MA_GenericLocalName));
lock.unlock();
shouldBeLocked = true;
}
}
Solved! Go to Solution.
19-05-2016 03:44 PM
Hello smitakasinath
It is important to understand if this lock is a concurrency lock or an immutability lock
See KB http://community.mega.com/t5/custom/page/page-id/mega-kb-solution?sid=501D00000012bxuIAA