public class PersistedJcrEventDistributionTrigger extends AbstractJcrEventTrigger implements DistributionTrigger
DistributionTrigger
that listens for certain events and persists them
under a specific path in the repoModifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NUGGETS_PATH |
Constructor and Description |
---|
PersistedJcrEventDistributionTrigger(org.apache.sling.jcr.api.SlingRepository repository,
org.apache.sling.commons.scheduler.Scheduler scheduler,
org.apache.sling.api.resource.ResourceResolverFactory resolverFactory,
String path,
String servicename,
String nuggetsPath) |
Modifier and Type | Method and Description |
---|---|
void |
enable() |
protected org.apache.sling.distribution.DistributionRequest |
processEvent(javax.jcr.observation.Event event)
process the received event and generates a distribution request
|
disable, register, unregister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
register, unregister
public static final String DEFAULT_NUGGETS_PATH
public PersistedJcrEventDistributionTrigger(org.apache.sling.jcr.api.SlingRepository repository, org.apache.sling.commons.scheduler.Scheduler scheduler, org.apache.sling.api.resource.ResourceResolverFactory resolverFactory, String path, String servicename, String nuggetsPath)
protected org.apache.sling.distribution.DistributionRequest processEvent(javax.jcr.observation.Event event) throws javax.jcr.RepositoryException
AbstractJcrEventTrigger
processEvent
in class AbstractJcrEventTrigger
event
- an Event
to be processedDistributionRequest
originated by processing the event,
or null
if no request could be generatedjavax.jcr.RepositoryException
public void enable()
enable
in class AbstractJcrEventTrigger
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.