RE : ImageSet Creation in AEM using API | Community
Skip to main content
Level 2
March 4, 2022
Solved

RE : ImageSet Creation in AEM using API

  • March 4, 2022
  • 3 replies
  • 1973 views

I am looking for an API to use which can  create the Image sets and I found a one  and that is  deprecated "7SetHelper.html"

 

eg :

https://javadoc.io/static/com.adobe.aem/aem-sdk-api/2021.7.5658.20210723T140305Z-210600/comeg /day/cq/dam/commons/util/S7SetHelper.html

 

can anyone give me a suggestion .. 

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

Hi Sham,

Welcome to Adobe Community !!

To create an Image Set, please use Scene 7 IPS API

More information available here : 

https://experienceleague.adobe.com/docs/dynamic-media-developer-resources/image-production-api/operation-methods/operation-parameters/r-create-image-set.html?lang=en

Thanks,

Vikram Gaur

3 replies

vikram1285Adobe EmployeeAccepted solution
Adobe Employee
March 7, 2022

Hi Sham,

Welcome to Adobe Community !!

To create an Image Set, please use Scene 7 IPS API

More information available here : 

https://experienceleague.adobe.com/docs/dynamic-media-developer-resources/image-production-api/operation-methods/operation-parameters/r-create-image-set.html?lang=en

Thanks,

Vikram Gaur

sham1Author
Level 2
March 8, 2022

We have a requirement where a SpringBoot Application need to create ImageSet in AEM , we plan to use S7SetHelper and ImageSet method, but as per the documentation (https://javadoc.io/static/com.adobe.aem/aem-sdk-api/2021.7.5658.20210723T140305Z-210600/com/day/cq/dam/api/s7dam/set/ImageSet.html) - they have been depreciated and will be replaced by a new API in future release Wondering if there is new APIs providing this feature, we are blocked as we have to create ImageSets dynamically ... If no APIs has been released then do we have any other option to achieve this.

Level 2
March 8, 2022

There is an option in AEM to setup the auto batchsets creation by providing the Regex patterns based on the imagenames. 

 

Please check below help

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/dynamicmedia/batch-set-presets-dm.html?lang=en

sham1Author
Level 2
March 8, 2022

Yaa these are the steps if have the image name and details, and we would be getting the image name from the springboard application if there a API then we can pull it from there ... so this works but not for this requirement ...

sham1Author
Level 2
March 10, 2022

I'm trying to follow this example from Adobe in a different way as mentioned below....

 

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/access-jcr.html?lang=en

 

MY Code:

 

public class CreatingJcrNodes {

public static void main(String[] args) throws Exception {

try {

//Create a connection to the CQ repository running on local host
Repository repository = JcrUtils.getRepository("http://localhost:4502/crx/server");

//Create a Session
javax.jcr.Session session = repository.login( new SimpleCredentials("admin", "admin".toCharArray()));

//Create a node that represents the root node
Node root = session.getRootNode();

// Store content
Node adobe = root.addNode("adobe");
Node day = adobe.addNode("day");
day.setProperty("message", "Adobe CQ is part of the Adobe Digital Marketing Suite!");

// Retrieve content
Node node = root.getNode("adobe/day");
System.out.println(node.getPath());
System.out.println(node.getProperty("message").getString());

// Save the session changes and log out
session.save();
session.logout();
}
catch(Exception e){
e.printStackTrace();
}
}
}

 


Error : javax.jcr.RepositoryException: Unable to access a repository with the following settings:

 

I've found a number of articles both here and on other sites but none of the suggestions I've found have done anything to resolve the issue.