Usage of asset processing library apis from AEMaaCS | Community
Skip to main content
Community Advisor
September 11, 2024
Question

Usage of asset processing library apis from AEMaaCS

  • September 11, 2024
  • 1 reply
  • 537 views

I am using following code for getting resourceResolver ResourceResolver resolver = this.resolverFactory.getServiceResourceResolver(AssetComputeConstants.AUTH_INFO);

this code is in my custom core  bundle com.xxxx.mycore it is returning org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.xxxx.mycore [663] and sub service createrendition

 

 

I don't have user mapping as AssetComputeConstants.AUTH_INFO is in different bundle com.adobe.cq.dam.cq-dam-processor-nui. This bundle is available from adobe  asset processing library bundle for aws, dropbox, gcp, azure. I need to utilize the mapping services and apis from adobe's bundle in my custom bundle.

I tried to create a user mapping  link this service mapping between my bundle and adobe using service in cfg.json 

"com.xxxx.mycore:createrendition=[com.adobe.cq.dam.cq-dam-processor-nui]"

How do we use the mapping service and getResourceResolver from other bundles for our custom development in core bundle. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

joerghoh
Adobe Employee
Adobe Employee
September 15, 2024

Why do you want to use an existing service-user for code of your own? 

September 19, 2024

@joerghoh  I am trying to utilize the adobe code and services if its already available rather than reinventing wheel. I see that adobe artifact cq-dam-processor-nui   is declared in bundle with Private-Package. It is not publicly available in maven repo, it is adobe private repo in https://git.corp.adobe.com/CQ/dam/tree/master/bundles/processor-nui

 

Jar is available in console bundles, can we download jar and add to maven and use it. What is the best approach?