Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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.

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