Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

gregorio_meraz
gregorio_meraz
Offline

Badges

Badges
1

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
1

Posts

Posts
6

Discussions

Discussions
6

Questions

Questions
0

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by gregorio_meraz
Customize the badges you want to showcase on your profile
Re: Set up PageEvent Handler/Listener - Adobe Experience Manager 08-02-2019
any idea why it wont tigger even if the topics are bindend to the module?

Views

536

Likes

0

Replies

1
Re: Set up PageEvent Handler/Listener - Adobe Experience Manager 07-02-2019
I set both topics on the configuration filebut i still dont get the event triggered upon page addition or deletion even tho i can see the event with the topic being generated correctly on /system/console/events

Views

536

Likes

0

Replies

0
Re: Set up PageEvent Handler/Listener - Adobe Experience Manager 07-02-2019
ok, seems that the topic would be: org/apache/sling/api/resource/Resource/ADDED for page additionsAnd org/apache/sling/api/resource/Resource/REMOVED

Views

536

Likes

0

Replies

0
Re: Set up PageEvent Handler/Listener - Adobe Experience Manager 07-02-2019
yes, ill post what i have currently.I dont see an option to edit the original post so ill post it here.Component( configurationPolicy = ConfigurationPolicy.REQUIRE, immediate = true, service = EventHandler.class)@Designate(ocd = APIConfiguration.class)public class CustomEventListener implements EventHandler { private static final Logger LOGGER = LoggerFactory.getLogger(CustomEventListener.class); public void handleEvent(final Event event) { LOGGER.debug("handling event"); PageEvent pgEvent = Pag...

Views

536

Likes

0

Replies

0
Re: Set up PageEvent Handler/Listener - Adobe Experience Manager 07-02-2019
Hello.So, for example, if i go to crx and i replicate any of the files we already have being html, css or js, i get a replicate type=ACTIVATE event.However, we only want to catch whenever a new page is created or deleted.Not sure if that answers your question

Views

536

Likes

0

Replies

0
Set up PageEvent Handler/Listener - Adobe Experience Manager 07-02-2019
Hello AEM CommunityIm currently working on setting up a event handler for page creations and deletions on aem to then call one of our vendors API.Ive been basing my work on a module we already have that listens to replication events.So far i was able to reproduce that behavior on my module and trigger the code upon replications. However, i only need the calls to the API on Page Publications and deletions.Ive been trying to find how to diferentiate between replications and page deletions and acti...

Views

615

Like

1

Replies

9
Likes given to
Likes from