Package org.ametys.core
Class DevMode
- java.lang.Object
-
- org.ametys.core.DevMode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DevMode.DEVMODE
Enumerator for the dev mode value
-
Field Summary
Fields Modifier and Type Field Description static String
REQUEST_PARAM_FORCE_DEVMODE
The request parameter name for forcing the dev mode for the connected user.static String
SESSION_ATTRIBUTE_DEVMODE
The session attribute name for storing the dev mode forced by the connected user.
-
Constructor Summary
Constructors Modifier Constructor Description private
DevMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DevMode.DEVMODE
getDeveloperMode()
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 Detail
-
SESSION_ATTRIBUTE_DEVMODE
public static final String SESSION_ATTRIBUTE_DEVMODE
The session attribute name for storing the dev mode forced by the connected user.
-
REQUEST_PARAM_FORCE_DEVMODE
public static final String REQUEST_PARAM_FORCE_DEVMODE
The request parameter name for forcing the dev mode for the connected user.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DevMode
private DevMode()
-
-
Method Detail
-
getDeveloperMode
public static DevMode.DEVMODE getDeveloperMode()
Check if the current config is in developer mode.- Returns:
- True if the developer mode is activated.
-
getDeveloperMode
public static DevMode.DEVMODE getDeveloperMode(Request request)
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.
-
-