Interface BeforeControllerEvent
- All Superinterfaces:
MvcEvent
- All Known Implementing Classes:
BeforeControllerEventImpl
Event triggered before the execution of the MVC controller logic(view and action).
This event allows observers to intercept the request at an early stage, typically to perform tasks such as:
- Modifying request parameters or attributes
- Injecting contextual data
- Performing pre-processing or validation
- Short-circuiting the controller execution if needed
It is part of the MVC event lifecycle and is fired before any controller-specific (view or action) is run.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface fr.paris.lutece.portal.web.cdi.mvc.event.MvcEvent
MvcEvent.ControllerInvocationType -
Method Summary
Modifier and TypeMethodDescriptionIndicates the type of controller invocation (e.g., view, action, messageBox).Returns the controller method that is about to be invoked.booleanIndicates whether the current request is in the back-office (BO) context.booleanReturns the status of the automatic security token generation and validation.
-
Method Details
-
getInvokedMethod
Method getInvokedMethod()Returns the controller method that is about to be invoked.- Returns:
- a
Methodobject representing the target controller method
-
isBackOffice
boolean isBackOffice()Indicates whether the current request is in the back-office (BO) context.- Returns:
trueif the request is part of the back-office,falseotherwise
-
getInvocationType
MvcEvent.ControllerInvocationType getInvocationType()Indicates the type of controller invocation (e.g., view, action, messageBox).- Returns:
- a
MvcEvent.ControllerInvocationTypeenum describing the nature of the method being invoked
-
isSecurityTokenEnabled
boolean isSecurityTokenEnabled()Returns the status of the automatic security token generation and validation.- Returns:
trueif the controller uses the automatic security token process,falseotherwise
-