Can we move assets on publish instance from one location to another
Is it possible to move an assets from one folder to another using javacode on publisher instance.
Is it possible to move an assets from one folder to another using javacode on publisher instance.
Hi @ashwinissrinivas, technically this is possible, you can use one of below APIs:
However please be aware that in general due to AEM architecture (author, publish) it is recommended to do the move operation on Author instance and propagate results of this operation to all Publish instances using replication mechanism.
If at some point you will decide to do it on Publish, be aware you will lose connection between author and publish for given asset, so e.g. you will not be able to unpublish asset.
Initiating move from Publish should use revers replication that will send data to author and then replicate changes to all other Publish servers. This scenario is much more complicated comparing to just do your changes on Author and replicate to all Publish instances.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.