この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
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 ?
LockManager (Content Repository for Java Technology API Version 2.0)
解決済! 解決策の投稿を見る。
表示
返信
いいね!の合計
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);
表示
返信
いいね!の合計
In AEM,only either admin or lock owner can unlock the page/node.
and how did you obtain the lock LockManager (Content Repository for Java Technology API Version 2.0)
表示
返信
いいね!の合計
As Arun said in AEM only admin or lock owner can unlock the page.No other user can unlock it.
However there is a way to unlock the page using admin session in AEM
You can use adminSession = slingRepository.loginAdministrative(null); and get admin session and use that to unlock the page. It will wokr ,we are using the same. But this is deprecated api in newer version but still working as expected.
表示
返信
いいね!の合計
Even admin session failed to unlock. I am getting the session from a system user who is admin.
表示
返信
いいね!の合計
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);
表示
返信
いいね!の合計
Remember to use slingRepository.loginAdministrative - you must whitelist bundle
表示
返信
いいね!の合計