コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.
解決済み

unable to remove jcr:mixinTypes mix:lockable property though service user

Avatar

Level 3

Dear Developers/ Architects,

        at present im using aemsdk 2023-12 version. In Previous AEM sdk version, I was able to remove  jcr:mixinTypes mix:lockable  property on page through service user which have access to remove permission on /content.

Recent version of aem sdk version, the jcr:mixinTypes property were disabled, even admin account was not able to remove this property. any suggestion on this?? is there any option to remove lockable property through service user?

 

rajathannasi_0-1706241204980.png

 

トピック

トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

Hi @raja-thannasi,

jcr:mixinTypes is protected property. If you want to modify it you have to use dedicated method from Node class:

 

node.removeMixin("mix:lockable");

 

In terms of mix:lockable mixin, you can also use LockManager api to control this specific one.

If you want to manage mixins from crx, you should use dedicated Mixins... option from context menu

crx-mixin.jpg

元の投稿で解決策を見る

2 返信

Avatar

Community Advisor

Hi @raja-thannasi 
Setting jcr:mixinTypes null can help.

 

node.setProperty('jcr:mixinTypes', null)
Arun Patidar

AEM LinksLinkedIn

Avatar

正解者
Community Advisor

Hi @raja-thannasi,

jcr:mixinTypes is protected property. If you want to modify it you have to use dedicated method from Node class:

 

node.removeMixin("mix:lockable");

 

In terms of mix:lockable mixin, you can also use LockManager api to control this specific one.

If you want to manage mixins from crx, you should use dedicated Mixins... option from context menu

crx-mixin.jpg