public interface ChannelManagerEventListener
ChannelManager
event occurs.
The channel change events are:
Channel
Channel
Modifier and Type | Method and Description |
---|---|
void |
channelCreated(ChannelManagerEvent event)
Called immediately after a channel has been created through
ChannelManager.persist(String, Channel) . |
void |
channelUpdated(ChannelManagerEvent event)
Called immediately after a channel has been updated through
ChannelManager.save(Channel) . |
void channelCreated(ChannelManagerEvent event) throws ChannelManagerEventListenerException
ChannelManager.persist(String, Channel)
.
Note that when for every ChannelManagerEventListener the channelCreated(ChannelManagerEvent)
callback
have been done, the JCR Session
that belongs to ChannelManagerEvent.getConfigRootNode()
is
saved through Session.save()
: Thus, any jcr modifications made on the backing jcr Node
from the
ChannelManagerEvent.getConfigRootNode()
are being persisted.event
- the ChannelManagerEvent
ChannelManagerEventListenerException
- an exception that an implementation may choose to throw to have the ChannelManager
log a warning or even completely short circuit the channel processing when the ChannelManagerEventListenerException
has
ChannelManagerEventListenerException.getStatus()
equal to ChannelManagerEventListenerException.Status.STOP_CHANNEL_PROCESSING
void channelUpdated(ChannelManagerEvent event) throws ChannelManagerEventListenerException
ChannelManager.save(Channel)
.
Note that when for every ChannelManagerEventListener the channelUpdated(ChannelManagerEvent)
callback
method has been done, the JCR Session
that belongs to ChannelManagerEvent.getConfigRootNode()
is
saved through Session.save()
: Thus, any jcr modifications made on the backing jcr Node
from the
ChannelManagerEvent.getConfigRootNode()
are being persisted.event
- the ChannelManagerEvent
ChannelManagerEventListenerException
- an exception that an implementation may choose to throw to have the ChannelManager
log a warning or even completely short circuit the channel processing when the ChannelManagerEventListenerException
has
ChannelManagerEventListenerException.getStatus()
equal to ChannelManagerEventListenerException.Status.STOP_CHANNEL_PROCESSING
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.