04-29-2021 12:44 AM
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
04-29-2021 02:26 AM
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.
04-29-2021 02:26 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.