Accessing document title, description and author name
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 09:11 AM
What is the best way to access a document's title, description and author name using the CMIS interface? (I am using OpenCMIS).
Thanks.
Naresh Bhatia
- 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.
Thanks.
Naresh Bhatia
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 09:37 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 11:58 AM
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":
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)
