We have a requirement to create 'referencing' and 'referenced by' links to store in metadata of an asset as it is there in OOTB References
On Researching came across the "com.day.cq.wcm.api.reference.ReferenceProvider" API to get the references.
1. Can we use this API to implement the above requirement? Does Adobe uses the same in the below case: (Refer Screenshot)
Tried:
2. We have created our own custom ReferenceProvider implementation class overriding the findReferences(Resource) method with our business logic to search all the links on our asset .
We are using fmDITA plugin in our project and Our Assets are mostly .dita documents.
We are not sure on how to utilize this custom ReferenceProvider to fetch 'referencing' and 'referenced by links in metadata properties.
3. As this ReferenceProvider API is getting implemented by multiple OOTB Implementation classes, how can we specifically call our implementation service class on our Frontend(jsp)?
Any leads on how to do it?
How does Adobe uses it?
Does these links ( referencing and referenced by) get stored anywhere in jcr?
is there any example available on how to use it?