Package org.jayasoft.woj.portal.utils.context

Examples of org.jayasoft.woj.portal.utils.context.Context


      } else {
        call.setValue("merchant_id", "047959265100018");//0+jayasoft siret
      }

            String locale = "en";
            Context ctx = ContextHolder.getContext();
            if (ctx!=null) {
                locale = ctx.getLocale().getLanguage();
            }
            call.setValue("language", locale);
      call.setValue("order_id", String.valueOf(o.getId()));
      call.setValue("customer_id", String.valueOf(o.getBuyer().getId()));
      call.setValue("merchant_country", "fr");
View Full Code Here


     * Sets the applicative context regarding the given http request
     * @param request the http request
     */
    public static void setContext(HttpServletRequest request) {
        User u = (User) request.getSession().getAttribute(Params.LOGIN.SESSION.USER);
        Context c = Context.newContext(u, (Locale)request.getSession().getAttribute(Params.GENERAL.SESSION.LOCALE));
        ContextHolder.setContext(c);
    }
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.portal.utils.context.Context

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.