public class PersistedJcrEventDistributionTrigger extends AbstractJcrEventTrigger implements DistributionTrigger
DistributionTrigger that listens for certain events and persists them
under a specific path in the repo| Modifier 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, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregister, unregisterpublic 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
AbstractJcrEventTriggerprocessEvent in class AbstractJcrEventTriggerevent - an Event to be processedDistributionRequest originated by processing the event,
or null if no request could be generatedjavax.jcr.RepositoryExceptionpublic void enable()
enable in class AbstractJcrEventTriggerCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.