I need to be able to disable the auditable aspect when creating associations so that I can manually set the modified property on the source and target nodes. However, I do not always want this behavior. I need to be able to disable the auditable aspect for some associations and not others. This would be dependent on the REST endpoint that is called and not the content itself.
Thank you for the reply. Unfortunately this does not get me exactly what I need. Basically I am simply attempting to prevent Alfresco from setting the cm:modified property on a node. I want to be able to set that property myself so that I can save multiple nodes that all share the same cm:modfied time.
From what I can tell, onCreateAssocation() acts as an event listener, getting called every time nodeService.createAssociation() is invoked. What I would like to do is disable the auditable behavior from my code when I call nodeService.createAssociation() so that I can manually set the cm:modified time. It doesn't seem like I can do much from within the onCreateAssociation() method because it only takes an AssociationRef as a parameter.
Is there a way to simply disable the auditable behavior one time and have it remain off indefinitely?