Package org.apache.ofbiz.common
Class CommonEvents
java.lang.Object
org.apache.ofbiz.common.CommonEvents
Common Services
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCaptcha
(HttpServletRequest request, HttpServletResponse response) static String
jsonResponseFromRequestAttributes
(HttpServletRequest request, HttpServletResponse response) static String
jsResponseFromRequest
(HttpServletRequest request, HttpServletResponse response) static String
loadJWT
(HttpServletRequest request, HttpServletResponse response) static String
openSourceFile
(HttpServletRequest request, HttpServletResponse response) Open the source file.static String
setSessionCurrencyUom
(HttpServletRequest request, HttpServletResponse response) Simple event to set the users per-session currency uom valuestatic String
setSessionLocale
(HttpServletRequest request, HttpServletResponse response) Simple event to set the users per-session locale setting.static String
setSessionTheme
(HttpServletRequest request, HttpServletResponse response) Simple event to set the user's per-session theme setting.static String
setSessionTimeZone
(HttpServletRequest request, HttpServletResponse response) Simple event to set the user's per-session time zone setting.
-
Constructor Details
-
CommonEvents
public CommonEvents()
-
-
Method Details
-
setSessionLocale
Simple event to set the users per-session locale setting. The user's locale setting should be passed as a "newLocale" request parameter. -
setSessionTimeZone
Simple event to set the user's per-session time zone setting. -
setSessionTheme
Simple event to set the user's per-session theme setting. -
setSessionCurrencyUom
public static String setSessionCurrencyUom(HttpServletRequest request, HttpServletResponse response) Simple event to set the users per-session currency uom value -
jsResponseFromRequest
public static String jsResponseFromRequest(HttpServletRequest request, HttpServletResponse response) -
jsonResponseFromRequestAttributes
public static String jsonResponseFromRequestAttributes(HttpServletRequest request, HttpServletResponse response) -
getCaptcha
-
loadJWT
public static String loadJWT(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
openSourceFile
Open the source file. Only when widget.dev.namedBorder=SOURCE- Parameters:
request
-response
-- Returns:
-