Hi, I have a pathfield via which a dam asset would be selected (say Image). I want to have a listener attached to the pathfield which validates the size of the selected image. For that I would require asset api and resource resolver. By any chance is there a way to have these working inside a listener? I couldn't find any listener using these objects or could it be done? Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
To create an event listener for an AEM DAM handler - you use the com.day.cq.dam.commons.handler.AbstractAssetHandler API. The handler is also implemented as an OSGi bundle - not on an event of a PathField.
This is fired when an Assets is uploaded for example to the DAM. For information about how to write an AEM DAM Handler - see:
Views
Replies
Total Likes
To create an event listener for an AEM DAM handler - you use the com.day.cq.dam.commons.handler.AbstractAssetHandler API. The handler is also implemented as an OSGi bundle - not on an event of a PathField.
This is fired when an Assets is uploaded for example to the DAM. For information about how to write an AEM DAM Handler - see:
Views
Replies
Total Likes