I need to create filelinks in alfresco 5.x.
Formerly with alfresco_4 I was using WebServices, with java code like
CMLCreate create =new CMLCreate("1", parentRef,null,null,null,"{http://www.alfresco.org/model/application/1.0}filelink", contentProps);
cml.setCreate(new CMLCreate[]{create});
UpdateResult[] result = WebServiceFactory.getRepositoryService().update(cml);
Now with Alfresco 5 those WebServices are obsoletes and have to use CMIS to to same thing.
I found lot of explanations and/or examples on how to create/upload files in alfresco using CMIS API, but no one telling me how to create filelink object types.
While listing existing contents in some of my directoires in the repository with
folder.getDescendants(-1);
I found the WebServiceFactory created links to be of type "I:app:filelink"
(notice the "l:" before "app")
What's that ??
Any help to achieve by program the creation of a filelink object using CMIS API should be appreciated.
Bernard