As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
//Disable auditable aspect to allow change properties of cm:auditable aspect policyBehaviourFilter.disableBehaviour(nodeRef, ContentModel.ASPECT_AUDITABLE); nodeService.setProperty(nodeRef, ContentModel.PROP_CREATOR, "xxxxx"); nodeService.setProperty(nodeRef, ContentModel.PROP_MODIFIER, "xxxxx"); //Enable auditable aspect policyBehaviourFilter.enableBehaviour(nodeRef, ContentModel.ASPECT_AUDITABLE);
<bean id="xxxxxxxx" class="your class package" parent="webscript"> <property name="nodeService" ref="NodeService" /> …….. <property name="policyBehaviourFilter" ref="policyBehaviourFilter" /> </bean>