Hi,
I wanted to capture asset activation event and do some changes. I'm trying using ResourceChangeListener and with property name hints but the event is getting captured for all change events such as image edits. I wanted the event to be captured only on Asset activation. Any help?
@Component(service = ResourceChangeListener.class,
property = {
ResourceChangeListener.PATHS + "=/content/dam/",
ResourceChangeListener.CHANGES + "=CHANGED",
ResourceChangeListener.PROPERTY_NAMES_HINT + "=*cq:lastReplicationAction"
},
Thanks in advance!