cancel
Showing results for 
Search instead for 
Did you mean: 

protected attributes

vincent-kali
Star Contributor
Star Contributor
Hi,

Could somebody tell me how to override protected attributes of ContentModel like PROP_CREATOR or PROP_MODIFIER ?
We're trying to replicate some content between two alfresco servers using a 'service' account, that's why I need to set these
specific properties.

Thanks,
Vincent

2 REPLIES 2

kaynezhang
World-Class Innovator
World-Class Innovator
cm:creator, cm:modifier, cm:created, cm:modified, are auditable properties which are maintained by alfresco by default,if you want to set cm:modifier and other auditable related properties,you should disable auditable aspect first ,about how to auditable aspect please refer to
http://forums.alfresco.com/forum/developer-discussions/content-modeling/protected-attributes-1031201...

But please note that setting auditable properties will affect index,so it is not recommended.

Thanks a lot for your response.
Vincent.