cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing document title, description and author name

naresh
Champ in-the-making
Champ in-the-making
What is the best way to access a document's title, description and author name using the CMIS interface? (I am using OpenCMIS).
  • For title, I would like a short phrase, e.g. "Introduction to CMIS". I was thinking of using cmis:name, but there seems to a minor glitch. When I upload a document to Alfresco, it sets cmis:name and cmis:contentStreamFileName to the filename, e.g. cmis-intro.pdf. However when I change the document's name from Alfresco's front-end, it not only changes the cmis:name but also the cmis:contentStreamFileName. I was not expecting the latter to change and don't know if it has any bad side-effects.

  • For description, I would like a short paragraph similar to what Alfreso allows in the document metadata. Is it possible to access this via CMIS?

  • For author name, I would like the full name (<First Name> <Last Name>). I don't see this anywhere in the CMIS response. The cmis:createdBy has the username, not the full name.
Please let me know what's the best way to get this information via CMIS. Any help or guidance is much appreciated!

Thanks.
Naresh Bhatia
2 REPLIES 2

fmui
Champ in-the-making
Champ in-the-making
Hi Naresh,

Alfresco doesn't distinguish between cmis:name and cmis:contentStreamFileName. Internally it is the same property.
The description is a property at the cm:titled aspect. You need the Alfresco OpenCMIS Extension (http://apache-extras.org/p/alfresco-opencmis-extension) to access that.
The CMIS spec defines that the author name must the cmis:createdBy property value. cmis:createdBy, in turn, must unambiguously identify a user and therefore is the username and not the full name. There is currently no way to get the full name via CMIS.

Florian

naresh
Champ in-the-making
Champ in-the-making
Thank you Florian - this is very useful. I will try out the Alfresco extension.

To clarify my understanding about the document metadata that can be entered from the "Full Metadata Edit Page":

  • Name: Is this always intended to be a filename? (and reflected in cmis:name and cmis:contentStreamFileName)

  • Title: available via cm:title property in aspect

  • Description: available via cm:description property in aspect

  • Mimetype: available via cmis:contentStreamMimeType

  • Author: available via cm:author property in aspect (this seems to contain the Full author name that I needed)