Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
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

View solution in original post

2 Replies

Avatar

Community Advisor

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

 

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


Arun Patidar

Avatar

Correct answer by
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