unable to remove jcr:mixinTypes mix:lockable property though service user | Community
Skip to main content
raja-thannasi
Level 2
January 26, 2024
Solved

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

  • January 26, 2024
  • 2 replies
  • 850 views

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?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

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

2 replies

arunpatidar
Community Advisor
Community Advisor
January 26, 2024

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

 

node.setProperty('jcr:mixinTypes', null)
Arun Patidar
lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
January 26, 2024

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