My model looks like this:
I have two folders(HTMLs) & (Images). Tons of files are inserted inside images folder and small part of business use case I am trying to implement is that when client asks for say chapter1.html then all the associated images for that chapter1.html should be fetched from the Alfresco Repository and sent.
I am using CMIS and able to do most of the stuff that it provides. I have gone through most of the tutorials and code snippets and could create the relationship in this way:
testCreateRelationship(): works fine but again returns empty when getRelationships() called with setIncludeRelationships set on Context.
testBelarus(): it doesnt work and throws following exception (org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Bad Request).
I used the code snippet given here in 'Relationships' section http://chemistry.apache.org/java/developing/guide.html and was successful in creating it but again finding it difficult to fetch the referred Images for that particular HTML
Please suggest some solution as this is the only thing stopping me from going to Alfresco in prod.
If I am doing it in wrong way (creating relationships) and if there is a better solution for my requirements(Using custom model/alfcmis:nodeRef/cmiscustom:docprop_string, etc), please suggest.
Any help is appreciated.
Thanks