You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
aemaio-aem-events-osgi-mapping Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression #124
The OSGI configuration present in AEM should support regex filter path and thus in my case use case is to send events to adobe IO only when asset uploaded in AEM is of type PDF.
For this Adobe I/O Events' OSGI Event Mapping should support regex expression in OSGI JCR Path Filter Field
Actual Behaviour
In this specific use cases only event should only be passed from AEM when the path matches the regex expression
Above code needs to be changed to support regex rather than just checking startsWith
To support current use case of startsWith
String pdfPath = "/content/dam/daiuyijava.pdf";
String regex = "/content/dam/([^/]+)";
Pattern pt = Pattern.compile(regex) ;
Matcher mt = pt.matcher(pdfPath);
System.out.println(mt.matches());
To support more fine grain cases for example only send event when it is a PDF asset
String pdfPath = "/content/dam/daiuyijava.pdf";
String regex = "/content/dam/([^/]+)+\.(pdf|PDF)";
Pattern pt = Pattern.compile(regex) ;
Matcher mt = pt.matcher(pdfPath);
System.out.println(mt.matches());
changed the title [-]Need fine grain control on AEM that which path to send event to Adobe IO and support regex expression[/-][+]Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression[/+]on Aug 19, 2022
changed the title [-]Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression[/-][+]`aem` `aio-aem-events-osgi-mapping` Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression[/+]on Aug 23, 2022
@francoisledroff Thank you, read the contributors guideline and would love to raise a PR, but would need to be invited to be a committer to the repo with write access on my email shehjkhan@gmail.com. If there is some other process, please point me to the documentation happy to follow it
Activity
[-]Need fine grain control on AEM that which path to send event to Adobe IO and support regex expression[/-][+]Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression[/+][-]Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression[/-][+]`aem` `aio-aem-events-osgi-mapping` Need fine grain control on AEM events that which path to send event to Adobe IO and support regex expression[/+]francoisledroff commentedon Aug 23, 2022
we like this idea !
we'd be happy to review your PR.
shehjad-khan commentedon Aug 29, 2022
@francoisledroff Thank you, read the contributors guideline and would love to raise a PR, but would need to be invited to be a committer to the repo with write access on my email shehjkhan@gmail.com. If there is some other process, please point me to the documentation happy to follow it
francoisledroff commentedon Sep 7, 2022
Thanks @shehjad-khan you actually don't need write access, do the following