ContentBuilder Filter | Community
Skip to main content
Level 4
Aug 4, 2021 4:22 PM UTC
Solved

ContentBuilder Filter

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.
Umesh_Thakur
Umesh_ThakurAccepted solution
New Participant
Aug 5, 2021 9:00 AM UTC

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

Hope this will help.

Umesh Thakur

2 replies

Umesh_Thakur
Umesh_ThakurAccepted solution
New Participant
Aug 5, 2021 9:00 AM UTC

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

Hope this will help.

Umesh Thakur

Translate
AEMnewbieAuthor
Level 4
Aug 5, 2021 7:32 PM UTC

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

 

 

Translate