Package org.ametys.core
Class DevMode
- java.lang.Object
-
- org.ametys.core.DevMode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDevMode.DEVMODEEnumerator for the dev mode value
-
Field Summary
Fields Modifier and Type Field Description static StringREQUEST_PARAM_FORCE_DEVMODEThe request parameter name for forcing the dev mode for the connected user.static StringSESSION_ATTRIBUTE_DEVMODEThe session attribute name for storing the dev mode forced by the connected user.
-
Constructor Summary
Constructors Modifier Constructor Description privateDevMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DevMode.DEVMODEgetDeveloperMode()Check if the current config is in developer mode.static DevMode.DEVMODEgetDeveloperMode(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.
-
-