Hi Yogesh,As I am beginner to CQ I dont know sending JSON will be good approach or not. What I want to implement is to fetch CQ component from JCR and display it on 3rd party eCommerce system. About 2nd approach you have mentioned above, I dont think we can directly access CQ data by just mentioning...
Can anyone please give me some hint on how I can send CQ component to 3rd party eCommerce system? Do I have to convert component into any other object and then send it through JSON? How can I create data set/JSON for CQ component?Please reply.
Hi,I understood the approach you have mentioned about accessing Sling servlet with HTTP call, but I am little bit confused about how to create data set having CQ component. e.g. in below code I have retrieved CQ Page instance from JCR.ResourceResolver resourceResolver = resolverFactory.getAdministra...
Hi,Is it possible to access CQ component through HTTP call? My requirement is to create CQ component and display the same on 3rd party eCommerce front end.Can anyone please suggest me what approach should I follow to achieve this?Thanks,Manju
Hi,I want to fetch DAM asset from JCR and obtain inputstream for a node or for an asset so that I can read that asset. I have implemented below code.querybuilder = resource.getResourceResolver().adaptTo(QueryBuilder.class);Query query = querybuilder.createQuery(PredicateGroup.create(map), session);S...
Hi,I have tried below codeResourceResolver resourceResolver = resolverFactory.getAdministrativeResourceResolver(null);session = resourceResolver.adaptTo(Session.class);But still when I access servlet with new browser (not the same browser where CQ session is available) it redirects me to CQ login pa...
Hi,I have written sling servlet to fetch DAM Asset from JCR Repository. Then retrieved InputStream from Rendition of an Asset, so that I can read an asset and write it to servlet response. I have attached servlet code. Code is working fine. When I hit URL http://localhost:4502/bin/testServlet?catego...
Hi,My task is to display random images every time user hits the browser.So I want to fetch random images from JCR. My code is as followsMap<String, String> map = new HashMap<String,String>();map.put("path", contentPath.toString());map.put("type", "dam.Asset");map.put("property", "jcr:content/metadat...
Thanks for confirmation on how to serve content to 3rd party app. I am glad that I have followed correct approach.Also I have pushed OSGi bundle on publish instance and I am able to able access it from 3rd party. Even though your reply does not explicitly mentions that standard approach is to make r...
Hi,I have implemented hybris application which makes HTTP call to CQ. On CQ side I have written sling servlet to retrieve DAM assets from JCR and send it in response to HTTP call. Hybris displays this asset on Front End. Application is working fine.But I have 1 query. As of now I am fetching DAM ass...