Custom Rollout Config for Rollout and Publish not working
Hi,
I have a requirement to create a custom rollout config that performs rollout (adjust some properties) and publish.
I am using AEM 6.5.
I was able to successfully roll out the pages but unable to replicate them. Reference Replicator is always throwing null pointer exception
Please find the sample code below.
public class CustomLiveAction implements LiveAction {
private static final Logger LOG = LoggerFactory.getLogger(CustomLiveAction.class);
protected final String name;
publicCustomLiveAction(final String name) {
this.name = name;
}
@Override
public String getName() {
return name;
}
@Reference
private Replicator replicator;
@Override
public void execute(final Resource source, final Resource target, final LiveRelationship relation,
final boolean autoSave, final boolean isResetRollout) throws WCMException {
if (source != null && target != null) {
//code to replicate
replicator.replicate(..);
}
}
- How to get the reference of the replicator in live-action?
- What are the other options to replicate the pages after rolling out?
- is it a best practice to publish language-masters and use Activate on blueprint activation trigger?
- is it a best practice to roll out and publish under the same operation?