ContentBuilder Filter | Community
Skip to main content
Level 4
August 4, 2021
Solved

ContentBuilder Filter

  • August 4, 2021
  • 1 reply
  • 802 views

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 . 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by 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

1 reply

Umesh_Thakur
Community Advisor
Umesh_ThakurCommunity AdvisorAccepted solution
Community Advisor
August 5, 2021

take help from regex pattern along with string's various methods like replace(),split(), startsWith(), endsWith() etc.

Hope this will help.

Umesh Thakur

AEMnewbieAuthor
Level 4
August 5, 2021

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; } }