On 06/22/2010 11:12 AM, JoannaD wrote:
>
> Hi all
>
> Is there any way of modifying the creation details (or any other property)
> of a page/doc without really causing/trigerring an update?
>
> What I intend to do is modify the creator and the creation date as they were
> messed up during import but I need the author and the date to remain
> unchanged..

You can do that using programming rights. The author + date update is 
triggered by the contentDirty and metadataDirty flags of the 
XWikiDocument class. So, you need to:

- make the changes you need -- setCreator
- reset cd and md -- setContentDirty(false)
- save the document

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to