Hi All,
I want to find title from the Qname or Itemtype as i need to use it in CMIS Query for searching. Like in Our Content Model we have itemtype as :-
<type name="alf:staff"> <title>alf (staff)</title> <parent>alf:gmrAlf</parent>
i am getting type name writing java code as:-
QName itemType = this.serviceRegistry.getNodeService().getType(document); String qName = itemType.getPrefixString();
Where qName is providing me with its type name now i want to get title from the content model for this particular type. Is there any service or relation available which will provide me with title of this itemtype.
I am looking for alf (staff) from type alf:staff.
Thanks and Regards,
Piyush
Solved! Go to Solution.
You can use the DictionaryService to obtain type/aspect/property definitions to retrieve title / description values. You can use the NamespaceService as a resolver with QName.toPrefixString(namespaceService) to turn long type names into short/prefixed names.
You can use the DictionaryService to obtain type/aspect/property definitions to retrieve title / description values. You can use the NamespaceService as a resolver with QName.toPrefixString(namespaceService) to turn long type names into short/prefixed names.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.