AssetManagers moveAsset Operation in AEMcs environment - to move asset from one path to another
Hi All,
I have a requirement to move asset/s from one path (/content/dam/sourcePath) to (/content/dam/dest) path.
I am planning to use asssetManager.moveAsset(..) operation from com.adobe.granite.asset.api.AssetManager API.
Ref.
Considering the AEM's newer architecture(AEM CS), is this the right way to implement asset move functionality?
If I have to go with given API, how does assetManager.moveAsset operation works for already published assets, whether I need to unpublish it first and then invoke moveAsset operation or it will internally first unpublish it and then perform asset move?
Any suggestions please..
Thanks