You can use the Adobe Experience Manager com.adobe.granite.asset.api.AssetManager API to manage your digital assets located in the AEM DAM. Using this API, you can perform tasks such as checking to determine if assets exist, moving assets, retrieving assets, and so on.
https://helpx.adobe.com/experience-manager/using/graniteAPI.html
Nice Article!!!