cancel
Showing results for 
Search instead for 
Did you mean: 

How can i modify the author of a document

eric06_
Champ in-the-making
Champ in-the-making

Hi I upload a lot of file in Nuxeo and i appear to be the author of these documents. But i'm not. is it possible to change the author ?

Regards

1 ACCEPTED ANSWER

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

By default we consider in Nuxeo DM that the author of the Nuxeo Document is the user that creates the document. I insist on the fact that we talk about the Nuxeo Document not the attached File to the Nuxeo Document. By default in Nuxeo DM we don't expose a field to specify the author of the content attach to the document (the Photographer, the cameraman, ...).

If you need to add this field you can through Nuxeo Studio override the File Document Type.

I let you watch this.

View answer in original post

8 REPLIES 8

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

By default we consider in Nuxeo DM that the author of the Nuxeo Document is the user that creates the document. I insist on the fact that we talk about the Nuxeo Document not the attached File to the Nuxeo Document. By default in Nuxeo DM we don't expose a field to specify the author of the content attach to the document (the Photographer, the cameraman, ...).

If you need to add this field you can through Nuxeo Studio override the File Document Type.

I let you watch this.

bruce_Grant
Elite Collaborator
Elite Collaborator

Or if you really want to set the author of the Nuxeo document to the author of the binary you are uploading then you can write a custom listener, extract the name of the author from your upload, and use that name to set the author field.

We strongly not recommend that, because this field is not for that point. Create your own field and Hide the Nuxeo default one is a better solution.

I strongly disagree, in most cases my customers want to preserve metadata - dates and authors from the pre-existing system. This is especially important for search and ordering. Having to create new fields would require significant effort and is imo unnecessary. Makes more sense to create a field to create actual Nuxeo document creation - if only for audit purpose.

Hello,

Hi Brigitte, the setting of the author of a document is embedded in a dublincore listener. By design, Nuxeo provides no mechanism to override this. What this means is that setting the author property in your own listener, prior to actual document creation will/can never work. So I suspect that Nuxeo has not provided any mechanism to perform this override in the Studio environment. The only real way to modify this behavious is to modify the Nuxeo listener that sets the author value. This (effectively) requires downloading the sources, making the change required and then recompiling the effected package. The downside to this is obvious - you then have to maintain this customization from hotfix to hotfix and release to release. But I have found this necessary in the past - at least as a temporary measure during mass import of content. Hope this helps.

Ok Bruce thanks for this response. I understand for the document's author (called "creator" in my example) but for a custom field separate from the nuxeo standard fields, why it doesn't work ? I don't understand why when I set the value of the property "emetteur", specific to my document type, it break the nuxeo login, unless Nuxeo use this term somewhere else

Ok, I undestand where my problem was