Package org.ametys.core
Class DevMode
java.lang.Object
org.ametys.core.DevMode
Static class for retrieving and setting the development mode of the application.
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DevMode.DEVMODE
Check if the current config is in developer mode.static DevMode.DEVMODE
getDeveloperMode
(Request request) Check if the current config is in developer mode for the current request.
-
Field Details
-
SESSION_ATTRIBUTE_DEVMODE
The session attribute name for storing the dev mode forced by the connected user. -
REQUEST_PARAM_FORCE_DEVMODE
The request parameter name for forcing the dev mode for the connected user.- See Also:
-
-
Method Details
-
getDeveloperMode
Check if the current config is in developer mode.- Returns:
- True if the developer mode is activated.
-
getDeveloperMode
Check if the current config is in developer mode for the current request.- Parameters:
request
- The current request. Can be null.- Returns:
- True if the developer mode is activated.
-