Leiste mit Community-Erfolgen erweitern.

manjushri_wandh
manjushri_wandh
Offline
Typ
  • Alle
  • Fragen
  • Diskussionen
  • Ideen
  • Blogs
Nach Beiträgen filtern
  • 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...

    Typ

    Fragen

    Zugriffe

    1.9K

    Likes

    0

    Antworten

    0
  • 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.

    Typ

    Fragen

    Zugriffe

    1.9K

    Likes

    0

    Antworten

    0
  • 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...

    Typ

    Fragen

    Zugriffe

    1.9K

    Likes

    0

    Antworten

    0
  • 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

    Typ

    Fragen

    Zugriffe

    2.5K

    Likes

    0

    Antworten

    7
  • 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...

    Typ

    Fragen

    Zugriffe

    4.1K

    Likes

    0

    Antworten

    1
  • 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...

    Typ

    Fragen

    Zugriffe

    905

    Likes

    0

    Antworten

    0
  • 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...

    Typ

    Fragen

    Zugriffe

    1.0K

    Likes

    0

    Antworten

    3
  • 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...

    Typ

    Fragen

    Zugriffe

    1.6K

    Likes

    0

    Antworten

    1
  • 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...

    Typ

    Fragen

    Zugriffe

    708

    Likes

    0

    Antworten

    0
  • 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...

    Typ

    Fragen

    Zugriffe

    758

    Likes

    0

    Antworten

    2
Top-Badges von manjushri_wandh
Passen Sie die Badges an, die Sie in Ihrem Profil anzeigen möchten.