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
BedrockMission!

Learn More

View all

Sign in to view all badges

gregorio_meraz
Community profile gregorio_meraz Level 1
Job title here
Location here
1 BADGE
Level 1

Level 1

Learn more
Joined the community 07-02-2019 8:53:52 AM
Offline
Top badges earned by gregorio_meraz
Customize the badges you want to showcase on your profile
Re: Set up PageEvent Handler/Listener
Avatar
Boost 1
Level 1
gregorio_meraz
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
gregorio_meraz
- Adobe Experience Manager
any idea why it wont tigger even if the topics are bindend to the module?

Views

265

Likes

0

Replies

1
Re: Set up PageEvent Handler/Listener
Avatar
Boost 1
Level 1
gregorio_meraz
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
gregorio_meraz
- Adobe Experience Manager
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

265

Likes

0

Replies

0
Re: Set up PageEvent Handler/Listener
Avatar
Boost 1
Level 1
gregorio_meraz
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
gregorio_meraz
- Adobe Experience Manager
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

265

Likes

0

Replies

0
Re: Set up PageEvent Handler/Listener
Avatar
Boost 1
Level 1
gregorio_meraz
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
gregorio_meraz
- Adobe Experience Manager
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

265

Likes

0

Replies

0
Re: Set up PageEvent Handler/Listener
Avatar
Boost 1
Level 1
gregorio_meraz
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
gregorio_meraz
- Adobe Experience Manager
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

265

Likes

0

Replies

0
Set up PageEvent Handler/Listener
Avatar
Boost 1
Level 1
gregorio_meraz
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
gregorio_meraz
- Adobe Experience Manager
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

344

Like

1

Replies

9
Likes given to
Likes from