Interface PageCopyEvent
-
- All Superinterfaces:
BaseChannelEvent,PageEvent<PageCopyContext>,RuntimeExceptionEvent
public interface PageCopyEvent extends PageEvent<PageCopyContext>
PageCopyEventwhich will be put on the internal Guava event bus forsynchronousevents dispatching where listeners to this event can inject logic or short-circuit processing by setting aRuntimeExceptionthroughPageCopyEvent#setException(java.lang.RuntimeException). When aRuntimeExceptionis set on thisPageCopyEventby 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 PageCopyEvent object is that GuavaEventBusalways catches an exception thrown by a listener, even when injecting a customSubscriberExceptionHandlerNote that listeners for
PageCopyEvents must never invokeHstRequestContext#getSession()#save(). Changes in the JCRSessionwill always be persisted by the code that posted thePageCopyEventto the guava event bus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description PageCopyContextgetPageCopyContext()Deprecated.-
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
-
-
-
-
Method Detail
-
getPageCopyContext
@Deprecated PageCopyContext getPageCopyContext()
Deprecated.Return the page copy context data.- Returns:
- the page copy context data
-
-