I am trying to set the modifier and modified properties with the custom values in Alfresco using java webscript. I am using the below code for achieving this:
try{
behaviourFilter.disableBehaviour(mainNodeRef, ContentModel.ASPECT_AUDITABLE);
serviceRegistry.getNodeService().setProperty(mainNodeRef, ContentModel.PROP_MODIFIED, migValuesVO.getModified());
serviceRegistry.getNodeService().setProperty(mainNodeRef, ContentModel.PROP_MODIFIER, migValuesVO.getModifier());
}
finally{
behaviourFilter.enableBehaviour(mainNodeRef, ContentModel.ASPECT_AUDITABLE);
}
This code is working properly in Alfresco community version. This code is not setting the values I have passed to the modifier and modified when I run it in Alfresco enterprise version.
Please help me on how to set the custom values to modifier and modified properties in Alfresco.