Expand my Community achievements bar.

SOLVED

Can we move assets on publish instance from one location to another

Avatar

Level 2

Is it possible to move an assets from one folder to another using javacode on publisher instance.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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.

Avatar

Level 2

Got it @lukasz-m thank you so much for the detailed explanations. As per one of the requirement I wanted the clarity if this is possible.