Lockmanager

Avatar

Avatar

selvaganesh

Avatar

selvaganesh

selvaganesh

27-11-2018

I am using lockmanager in code to lock/unlock the page. I am able to lock a page with user session, but when unlocking with user session it always fails (not the owner of lock). Is there anyway to create lock-superuser in aem and use that session to unlock it ?

I referred https://docs.adobe.com/docs/en/spec/jsr170/javadocs/jcr-2.0/javax/jcr/lock/LockManager.html#unlock(j...

LockManager (Content Repository for Java Technology API Version 2.0)

View Entire Topic

Avatar

Avatar

vipins5188

Avatar

vipins5188

vipins5188

27-11-2018

System user wont work even though it is part of administrators group. You have to have only admin user session . And that you can get only by slingRepository.loginAdministrative(null);