Package org.apache.ofbiz.common
Class CommonEvents
- java.lang.Object
-
- org.apache.ofbiz.common.CommonEvents
-
public class CommonEvents extends java.lang.Object
Common Services
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description CommonEvents()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getCaptcha(HttpServletRequest request, HttpServletResponse response)
static java.lang.String
getJSONuiLabel(HttpServletRequest request, HttpServletResponse response)
static java.lang.String
getJSONuiLabelArray(HttpServletRequest request, HttpServletResponse response)
static java.lang.String
jsonResponseFromRequestAttributes(HttpServletRequest request, HttpServletResponse response)
static java.lang.String
loadJWT(HttpServletRequest request, HttpServletResponse response)
static java.lang.String
setSessionCurrencyUom(HttpServletRequest request, HttpServletResponse response)
Simple event to set the users per-session currency uom valuestatic java.lang.String
setSessionLocale(HttpServletRequest request, HttpServletResponse response)
Simple event to set the users per-session locale setting.static java.lang.String
setSessionTheme(HttpServletRequest request, HttpServletResponse response)
Simple event to set the user's per-session theme setting.static java.lang.String
setSessionTimeZone(HttpServletRequest request, HttpServletResponse response)
Simple event to set the user's per-session time zone setting.
-
-
-
Method Detail
-
setSessionLocale
public static java.lang.String setSessionLocale(HttpServletRequest request, HttpServletResponse response)
Simple event to set the users per-session locale setting. The user's locale setting should be passed as a "newLocale" request parameter.
-
setSessionTimeZone
public static java.lang.String setSessionTimeZone(HttpServletRequest request, HttpServletResponse response)
Simple event to set the user's per-session time zone setting.
-
setSessionTheme
public static java.lang.String setSessionTheme(HttpServletRequest request, HttpServletResponse response)
Simple event to set the user's per-session theme setting.
-
setSessionCurrencyUom
public static java.lang.String setSessionCurrencyUom(HttpServletRequest request, HttpServletResponse response)
Simple event to set the users per-session currency uom value
-
jsonResponseFromRequestAttributes
public static java.lang.String jsonResponseFromRequestAttributes(HttpServletRequest request, HttpServletResponse response)
-
getJSONuiLabelArray
public static java.lang.String getJSONuiLabelArray(HttpServletRequest request, HttpServletResponse response) throws java.io.UnsupportedEncodingException, java.io.IOException
- Throws:
java.io.UnsupportedEncodingException
java.io.IOException
-
getJSONuiLabel
public static java.lang.String getJSONuiLabel(HttpServletRequest request, HttpServletResponse response) throws java.io.UnsupportedEncodingException, java.io.IOException
- Throws:
java.io.UnsupportedEncodingException
java.io.IOException
-
getCaptcha
public static java.lang.String getCaptcha(HttpServletRequest request, HttpServletResponse response)
-
loadJWT
public static java.lang.String loadJWT(HttpServletRequest request, HttpServletResponse response) throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
-
-