public class IOEventListenerSupport
extends neo.xredsys.api.services.AsyncEventListenerService
GenericService.StartCommand, GenericService.StopCommand
mLogger, state
Constructor and Description |
---|
IOEventListenerSupport()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(IOEvent event)
Filter events.
|
protected void |
articleCreated(Article article,
IOEvent event)
This method is called whenever an article is created
|
protected void |
articleDeleted(IOHashKey articleKey,
IOEvent event)
This method is called whenever an article is deleted
|
protected void |
articleModified(Article article,
IOEvent event)
This method is called whenever an article is modified.
|
protected void |
frontpageModified(Pool pool,
IOEvent event)
This method is called whenever a frontpage is republished
|
protected void |
handle(IOEvent event)
Handle a single event
|
boolean |
isEnabled()
Is this eventlistener active?
|
protected void |
sectionModified(Section section,
IOEvent event)
This method is called whenever a section is modified, when an article in the
section is modified or an article is added to or removed from the section
|
void |
setEnabled(boolean pEnabled)
Activate or deactivate this event listener
|
acceptEvent, getBacklog, getCollector, getEventManager, getService, handleEvent, isLocalOnly, setCollector, setEventManager, startEventListener, startService, stopEventListener, stopService
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
public boolean isEnabled()
public void setEnabled(boolean pEnabled)
protected boolean accept(IOEvent event) throws Exception
accept
in class neo.xredsys.api.services.AsyncEventListenerService
event
- the event to accepttrue
if the event is to be accepted, false
otherwiseException
- when any unknown error happensprotected void handle(IOEvent event) throws Exception
handle
in class neo.xredsys.api.services.AsyncEventListenerService
event
- the eventException
- when any unknown error happensprotected void articleCreated(Article article, IOEvent event)
protected void articleModified(Article article, IOEvent event)
protected void articleDeleted(IOHashKey articleKey, IOEvent event)
protected void sectionModified(Section section, IOEvent event)
© 1998- 2021 Escenic AS