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(..);
}
}
Solved! Go to Solution.
Views
Replies
Total Likes
the above documentation has full details.
or , please see below
Did you declare your class as @component?
The following should work with the component
the above documentation has full details.
or , please see below
Did you declare your class as @component?
The following should work with the component
Views
Replies
Total Likes
Views
Likes
Replies