What would be the best way to add filter to custom content builder ? I would like to process content from certain path and drop the rest .
Solved! Go to Solution.
Views
Replies
Total Likes
take help from regex pattern along with string's various methods like replace(),split(), startsWith(), endsWith() etc.
Hope this will help.
Umesh Thakur
take help from regex pattern along with string's various methods like replace(),split(), startsWith(), endsWith() etc.
Hope this will help.
Umesh Thakur
But where would that filter need to. be added ...
( immediate = true, service = ContentBuilder.class, property= { "name=solr", "service.ranking:Integer=1001" })
@Designate( ocd = SolrContentBuilderConfig.class )
@ServiceDescription("Solr Content Builder")
public class SolrContentBuilder implements ContentBuilder {
public static final String TITLE = "Solr Index Agent";
private String name;
@activate
protected void activate(final SolrContentBuilderConfig config) { this.name = config.getSolrName(); } public ReplicationContent create(Session session, ReplicationAction action, ReplicationContentFactory factory) { return create(session, action, factory, null); } public ReplicationContent create(Session session, ReplicationAction action, ReplicationContentFactory factory, Map<String, Object> parameters) { return ReplicationContent.VOID; } public String getName() { return name; } public String getTitle() { return TITLE; } }
Views
Replies
Total Likes
Views
Likes
Replies