I am new to Aem. is there any Query to find the assets based on some conditions? In my case, I need to Move the assets that are jcr:created is more than one month ago using Scheduler. That scheduler should run every week.
and
for moving we have AssetManager.moveAsset() but is there any sample code how to use that api programmatically?
path=/content/dam/wknd-events type=dam:Asset relativedaterange.property=jcr:content/jcr:lastModified relativedaterange.lowerBound=-5d (If no upperBound is specified, it is treated as 0, indicating current time) p.limit=-1
path=/content/dam/wknd-events type=dam:Asset relativedaterange.property=jcr:content/jcr:lastModified relativedaterange.lowerBound=-5d (If no upperBound is specified, it is treated as 0, indicating current time) p.limit=-1