Class 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​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      static java.lang.String jsonResponseFromRequestAttributes​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      static java.lang.String loadJWT​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      static java.lang.String setSessionCurrencyUom​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Simple event to set the users per-session currency uom value
      static java.lang.String setSessionLocale​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Simple event to set the users per-session locale setting.
      static java.lang.String setSessionTheme​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Simple event to set the user's per-session theme setting.
      static java.lang.String setSessionTimeZone​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Simple event to set the user's per-session time zone setting.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • CommonEvents

        public CommonEvents()
    • Method Detail

      • setSessionLocale

        public static java.lang.String setSessionLocale​(javax.servlet.http.HttpServletRequest request,
                                                        javax.servlet.http.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​(javax.servlet.http.HttpServletRequest request,
                                                          javax.servlet.http.HttpServletResponse response)
        Simple event to set the user's per-session time zone setting.
      • setSessionTheme

        public static java.lang.String setSessionTheme​(javax.servlet.http.HttpServletRequest request,
                                                       javax.servlet.http.HttpServletResponse response)
        Simple event to set the user's per-session theme setting.
      • setSessionCurrencyUom

        public static java.lang.String setSessionCurrencyUom​(javax.servlet.http.HttpServletRequest request,
                                                             javax.servlet.http.HttpServletResponse response)
        Simple event to set the users per-session currency uom value
      • jsonResponseFromRequestAttributes

        public static java.lang.String jsonResponseFromRequestAttributes​(javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
      • getCaptcha

        public static java.lang.String getCaptcha​(javax.servlet.http.HttpServletRequest request,
                                                  javax.servlet.http.HttpServletResponse response)
      • loadJWT

        public static java.lang.String loadJWT​(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response)
                                        throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException