Programmatically change asset name
Is this possible?
Couldn't find any methods in the API to do so.
Thanks!
Is this possible?
Couldn't find any methods in the API to do so.
Thanks!
Try calling the MoveAsset method that belongs to this API:
https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/adobe/granite/asset/api/AssetManager.html#moveAsset(java.lang.String, java.lang.String)
Parameters:
assetPath - Absolute path of the asset to be moved
destAbsPath - Absolute path at with asset is to be moved
for destAbsPath - specify the new name of the Asset.
To learn how to use the granite AssetManager API - see this article:
https://helpx.adobe.com/experience-manager/using/graniteAPI.html (tested on AEM 6)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.