Interface PageDeleteEvent
-
- All Superinterfaces:
BaseChannelEvent
,PageEvent<PageDeleteContext>
,RuntimeExceptionEvent
public interface PageDeleteEvent extends PageEvent<PageDeleteContext>
PageDeleteEvent
which will be put on the internal Guava event bus forsynchronous
events dispatching where listeners to this event can inject logic or short-circuit processing by setting aRuntimeException
throughPageDeleteEvent#setException(java.lang.RuntimeException)
. When aRuntimeException
is set on thisPageDeleteEvent
by a listener, the org.hippoecm.hst.pagecomposer.jaxrs.services.AbstractConfigResource#publishSynchronousEvent will rethrow the exception. The reason that this has to be done via this PageDeleteEvent object is that GuavaEventBus
always catches an exception thrown by a listener, even when injecting a customSubscriberExceptionHandler
Note that listeners for
PageDeleteEvent
s must never invokeHstRequestContext#getSession()#save()
. Changes in the JCRSession
will always be persisted by the code that posted thePageDeleteEvent
to the guava event bus
-
-
Method Summary
-
Methods inherited from interface org.hippoecm.hst.pagecomposer.jaxrs.api.BaseChannelEvent
getChannel, getLogger
-
Methods inherited from interface org.hippoecm.hst.pagecomposer.jaxrs.api.PageEvent
getPageActionContext
-
Methods inherited from interface org.hippoecm.hst.pagecomposer.jaxrs.api.RuntimeExceptionEvent
getException, setException
-
-