Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

manjushri_wandh
Community profile manjushri_wandh Level 1
Job title here
Location here
1 BADGE
Level 1

Level 1

Learn more
Joined the community 30-05-2017 8:40:40 AM
Offline
Top badges earned by manjushri_wandh
Customize the badges you want to showcase on your profile
Accessing CQ component
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager Forms
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

Views

238

Likes

0

Replies

0
Send DAM asset data from CQ to Hybris
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
Hi,I have to implement program which can fetch images from CQ/JCR and then send this image to Hybris.I have implemented program for fetching image from JCR, I am thinking of using JAX-RS for sending image from CQ to Hybris. Please find below my code@Component@Service@Path("/CQContent") public class QueryImpl implements Queryy { // Inject a Sling ResourceResolverFactory @Reference private ResourceResolverFactory resolverFactory; @Reference(policy = ReferencePolicy.STATIC) private SlingRepository ...

Views

192

Likes

0

Replies

0
Re: Accessing CQ component
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
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 URL /etc/something in eCommerce system. What about authentication?I will prefer to use Sling servlet but I still didnt understand how to read component data. Lets take example mentioned belowResource...

Views

191

Likes

0

Replies

0
Re: Accessing CQ component
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
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.

Views

178

Likes

0

Replies

0
Re: Accessing CQ component
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
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.getAdministrativeResourceResolver(null);Resource res = resourceResolver.getResource(location);Page page = res.adaptTo(Page.class);But I am not getting how I can return it within data set or JSON. If I do something...

Views

173

Likes

0

Replies

0
Accessing CQ component
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
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

Views

737

Likes

0

Replies

7
InputStream object to read from DAM Asset
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
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);SearchResult result = query.getResult();for (Hit ht : result.getHits()) { try { path = hit.getPath(); } catch (RepositoryException e) { e.printStackTrace(); } Resource assetResource = resourceResolver....

Views

1.8K

Likes

0

Replies

1
Re: Accessing JCR from remote application (i.e. Hybris)
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
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 page. How can I provide authentication details in servlet itself so that it will not redirect me to login page?Thanks,Manju

Views

125

Likes

0

Replies

0
Accessing JCR from remote application (i.e. Hybris)
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
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?category=city browser redirects me to login page of CQ. After I enter credentials for login, browser displays an image which is returned from servlet response.Can anyone please guide me how I can provide au...

Views

241

Likes

0

Replies

3
retrieve random images from JCR
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
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 map = new HashMap();map.put("path", contentPath.toString());map.put("type", "dam.Asset");map.put("property", "jcr:content/metadata/dc:format"); map.put("property.value", "image/jpeg");Is it possible to achieve this using Query Builder API? Please suggest how I can achieve the same.Thanks,Manju

Views

976

Likes

0

Replies

1
Re: CQ serving content to other applications
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
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 restful call to publish instance and not to author instance, I am considering that standard approach is, 3rd party should communicate with Publish instance and not with Author instance.Thanks a lot..

Views

108

Likes

0

Replies

0
CQ serving content to other applications
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
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 asset/content from Author instance and sending it to Hybris. Do I have to fetch content from Publish instance? e.g. URL for HTTP call is as follows, http://localhost:4502/bin/assetServlet Whether I need ...

Views

158

Likes

0

Replies

2
Re: fetch image using JCR or Query Builder
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
Hi Ove,Whether nodename is name of property? I tried executing my program with below code but query does not fetch any data. Also I didnt find any property with name 'nodename' in properties tab of CRXDEmap.put("type", "dam.Asset");map.put( "property" , "jcr:content/metadata/dc:format" );map.put( "property.value" , "image/jpeg" );map.put("property", "nodename");map.put("property.value", "ai.jpeg");I also tried this linemap.put("nodename", "ai.jpeg"); This line throws an exception.You have mentio...

Views

694

Likes

0

Replies

0
fetch image using JCR or Query Builder
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
Hi,I have implemented simple program for fetching image using JCR. ResourceResolver resourceResolver = resolverFactory.getAdministrativeResourceResolver(null);Resource res = resourceResolver.getResource("/content/dam/geometrixx-media/articles/bored.jpeg"); Asset asset = res.adaptTo(Asset.class);I am able to display image on JSP as asset.getPath() gives me path of image. But all this works fine only if I mention complete path of image. If I provide only name of the image (bored.jpeg) then it does...

Views

2.0K

Likes

0

Replies

2
Issues in Hybris Catalog Import
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
Hi,I am working on eCommerce integration with Hybris. I am working with AEM 5.6.1. I have installed following 2 packages, cq-hybris-content-5.6.100 and cq-geometrixx-hybris-content-5.6.100. I have not installed cq-hybris-server-5.6.100 package because I have standalone Hybris server running. When I am trying to import hybris catalog into CQ, import log shows an error message. "0 products created with 0 variations. 1 errors encountered.Cannot serve request to /libs/commerce/products in com.adobe....

Views

329

Likes

0

Replies

1
Re: CQ-Hybris Integration
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
Hi,As mentioned in above link I need to install 2 packages1.cq-geometrixx-hybris-content-5.6.2002.cq-commerce-hybris-update-content-5.6.200I have tried to login to http://daycare.day.com using Adobe ID but failed to do so. I also searched these packages in Package share (CRX) but I didn't fine there too. Package Share has 'cq-geometrixx-hybris-content-5.6.100' but not 5.6.200. Could you please share any link where I can find these packages?Thanks.

Views

158

Likes

0

Replies

0
CQ-Hybris Integration
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
Hi,I am a beginner in CQ and I have to integrate CQ with Hybris. I have installed Hybris 5.1 and also installed CQ/AEM 5.6.1 without embedded hybris server because I already have hybris server installed. I have read number of documents about CQ-Hybris integration on Hybris Wiki as well as on http://dev.day.com/ site. But I am not getting clear idea on how hybris and CQ are communicating with each other. I have below queries about CQ-Hybris integration.How configuration is done? I understand that...

Views

248

Likes

0

Replies

3
access component as html or jsp
Avatar
Validate 1
Level 1
manjushri_wandh
Level 1

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
manjushri_wandh
- Adobe Experience Manager
Hi,If I create CQ component e.g. Page, can I access Page component as html or jsp file? If I have my page at path content/dam/geometrixx with name test, how can i access it as html?

Views

154

Likes

0

Replies

1