I am trying to get all the assets inside a collection in AEM given the path of the collection.
Let's say the path of the collection is /content/dam/collections/public/-/-XZMzZlhkJKIa7-Mg15h/testing
I need to get all the assets inside this collection.
I checked under content/dam/collections the assets are not stored under this location
I even tried by writing a query in query builder in AEM giving type:dam:asset and path:"location of the collection"
I couldn't get any results.
I just need to get all the assets under the collection in Java or QueryBuilder