Interface ChannelManagerEventListener
-
public interface ChannelManagerEventListener
Allows implementers to register callback methods that will be executed when aChannelManager
event occurs.The channel change events are:
- creating a
Channel
- updating a
Channel
- Version:
- $Id$
- creating a
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
channelCreated(ChannelManagerEvent event)
Called immediately after a channel has been created throughChannelManager.persist(Session, String, Channel)
.void
channelUpdated(ChannelManagerEvent event)
Called immediately after a channel has been updated throughChannelManager.save(Session, String, Channel)
.
-
-
-
Method Detail
-
channelCreated
void channelCreated(ChannelManagerEvent event) throws ChannelManagerEventListenerException
Called immediately after a channel has been created throughChannelManager.persist(Session, String, Channel)
. Note that when for every ChannelManagerEventListener thechannelCreated(ChannelManagerEvent)
callback have been done, the JCRSession
that belongs toChannelManagerEvent.getConfigRootNode()
is saved throughSession.save()
: Thus, any jcr modifications made on the backing jcrNode
from theChannelManagerEvent.getConfigRootNode()
are being persisted.- Parameters:
event
- theChannelManagerEvent
- Throws:
ChannelManagerEventListenerException
- an exception that an implementation may choose to throw to have theChannelManager
log a warning or even completely short circuit the channel processing when theChannelManagerEventListenerException
hasChannelManagerEventListenerException.getStatus()
equal toChannelManagerEventListenerException.Status.STOP_CHANNEL_PROCESSING
-
channelUpdated
void channelUpdated(ChannelManagerEvent event) throws ChannelManagerEventListenerException
Called immediately after a channel has been updated throughChannelManager.save(Session, String, Channel)
. Note that when for every ChannelManagerEventListener thechannelUpdated(ChannelManagerEvent)
callback method has been done, the JCRSession
that belongs toChannelManagerEvent.getConfigRootNode()
is saved throughSession.save()
: Thus, any jcr modifications made on the backing jcrNode
from theChannelManagerEvent.getConfigRootNode()
are being persisted.- Parameters:
event
- theChannelManagerEvent
- Throws:
ChannelManagerEventListenerException
- an exception that an implementation may choose to throw to have theChannelManager
log a warning or even completely short circuit the channel processing when theChannelManagerEventListenerException
hasChannelManagerEventListenerException.getStatus()
equal toChannelManagerEventListenerException.Status.STOP_CHANNEL_PROCESSING
-
-