Hi All,
I am looking for custom Content Model title using Alfresco AP service.
Below is my piece of model:-
<type name="img:ibEng">
<title>IB_Eng</title>
<parent>img:abcimg</parent>
<properties/>
<mandatory-aspects>
<aspect>img:uniqueDocumentAspect</aspect>
</mandatory-aspects>
</type>
I am using DictionaryService API to get title:-
QName itemType = this.serviceRegistry.getNodeService().getType(document);
String qName = itemType.getPrefixString();
System.out.println("Qname "+qName);
String[] values = qName.split(":");
String siteName = values[0];
System.out.println("Sitename "+siteName);
String folderName = this.serviceRegistry.getDictionaryService().getType(itemType).getTitle();Here folderName output must be like:- IB_Eng but it is returning as IB_Eng Type. I am not getting where it is taking "Type" from.
Thanks,
Piyush