The class or interface com.day.cq.dam.api.collection.SmartCollection has been deprecated | Community
Skip to main content
February 2, 2023
Solved

The class or interface com.day.cq.dam.api.collection.SmartCollection has been deprecated

  • February 2, 2023
  • 1 reply
  • 969 views

With the latest aem as cloud service sdk, com.day.cq.dam.api.collection.SmartCollection has been marked as depricated. How we can manage working with smartCollection in aem sdk?

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 Anmol_Bhardwaj

Hi @lakumar ,

You can use the com.day.cq.dam.api.AssetCollection interface instead. The AssetCollection interface provides similar functionality and can be used as a replacement for the SmartCollection class.

 

You can also use the com.day.cq.dam.api.AssetCollectionManager to manage collections and assets in AEM. The AssetCollectionManager interface provides methods for creating, retrieving, and deleting asset collections, as well as adding and removing assets from collections.

1 reply

Anmol_Bhardwaj
Community Advisor
Anmol_BhardwajCommunity AdvisorAccepted solution
Community Advisor
February 2, 2023

Hi @lakumar ,

You can use the com.day.cq.dam.api.AssetCollection interface instead. The AssetCollection interface provides similar functionality and can be used as a replacement for the SmartCollection class.

 

You can also use the com.day.cq.dam.api.AssetCollectionManager to manage collections and assets in AEM. The AssetCollectionManager interface provides methods for creating, retrieving, and deleting asset collections, as well as adding and removing assets from collections.

Adobe Employee
February 8, 2023

I'm not able to find the following interface or class
AssetCollection
AssetCollectionManager

This has the list of all the classes that is deprecated: https://developer.adobe.com/experience-manager/reference-materials/cloud-service/javadoc/deprecated-list.htmlBased on the Also based on the Java Doc SmartCollection is not deprecated. https://developer.adobe.com/experience-manager/reference-materials/cloud-service/javadoc/com/day/cq/dam/api/collection/SmartCollection.html