Examples of Localization


Examples of org.hoteia.qalingo.core.domain.Localization

            modelAndView.getModelMap().put(ModelConstants.COMMON_VIEW_BEAN, frontofficeViewBeanFactory.buildViewBeanCommon(requestData));
           
            final MarketPlace currentMarketPlace = requestData.getMarketPlace();
            final Market currentMarket = requestData.getMarket();
            final MarketArea currentMarketArea = requestData.getMarketArea();
            final Localization currentLocalization = requestData.getMarketAreaLocalization();
            final Customer customer = requestData.getCustomer();
            if(customer != null){
                modelAndView.getModelMap().put(ModelConstants.CUSTOMER_VIEW_BEAN, frontofficeViewBeanFactory.buildViewBeanCustomer(requestData, customer));
            }
           
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Localization

    public String buildChangeLanguageUrl(final RequestData requestData) throws Exception {
        final MarketPlace marketPlace = requestData.getMarketPlace();
        final Market market = requestData.getMarket();
        final MarketArea marketArea = requestData.getMarketArea();
        final Localization localization = requestData.getMarketAreaLocalization();
        final Retailer retailer = requestData.getMarketAreaRetailer();
        final CurrencyReferential currency = requestData.getMarketAreaCurrency();

        String url = buildDefaultPrefix(requestData) + FoUrls.CHANGE_LANGUAGE.getUrlWithoutWildcard() + "?";
        url = url + RequestConstants.REQUEST_PARAMETER_MARKET_PLACE_CODE + "=" + handleParamValue(marketPlace.getCode());
        url = url + "&" + RequestConstants.REQUEST_PARAMETER_MARKET_CODE + "=" + handleParamValue(market.getCode());
        url = url + "&" + RequestConstants.REQUEST_PARAMETER_MARKET_AREA_CODE + "=" + handleParamValue(marketArea.getCode());
        url = url + "&" + RequestConstants.REQUEST_PARAMETER_MARKET_AREA_LANGUAGE + "=" + handleParamValue(localization.getCode());
        url = url + "&" + RequestConstants.REQUEST_PARAMETER_MARKET_AREA_RETAILER_CODE + "=" + handleParamValue(retailer.getCode());
        url = url + "&" + RequestConstants.REQUEST_PARAMETER_MARKET_AREA_CURRENCY_CODE + "=" + handleParamValue(currency.getCode());
        return url;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Localization

    public String buildChangeContextUrl(final RequestData requestData) throws Exception {
        final MarketPlace marketPlace = requestData.getMarketPlace();
        final Market market = requestData.getMarket();
        final MarketArea marketArea = requestData.getMarketArea();
        final Localization localization = requestData.getMarketAreaLocalization();
        final Retailer retailer = requestData.getMarketAreaRetailer();
        final CurrencyReferential currency = requestData.getMarketAreaCurrency();
       
        String url = buildDefaultPrefix(requestData) + FoUrls.CHANGE_CONTEXT.getUrlWithoutWildcard() + "?";
        url = url + RequestConstants.REQUEST_PARAMETER_MARKET_PLACE_CODE + "=" + handleParamValue(marketPlace.getCode());
        url = url + "&" + RequestConstants.REQUEST_PARAMETER_MARKET_CODE + "=" + handleParamValue(market.getCode());
        url = url + "&" + RequestConstants.REQUEST_PARAMETER_MARKET_AREA_CODE + "=" + handleParamValue(marketArea.getCode());
        url = url + "&" + RequestConstants.REQUEST_PARAMETER_MARKET_AREA_LANGUAGE + "=" + handleParamValue(localization.getCode());
        url = url + "&" + RequestConstants.REQUEST_PARAMETER_MARKET_AREA_RETAILER_CODE + "=" + handleParamValue(retailer.getCode());
        url = url + "&" + RequestConstants.REQUEST_PARAMETER_MARKET_AREA_CURRENCY_CODE + "=" + handleParamValue(currency.getCode());
        return url;
    }
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Localization

     * @throws Exception
     * @see org.hoteia.qalingo.core.service.EmailService#buildAndSaveContactMail(Localization localization, Customer customer, String velocityPath, ContactEmailBean contactEmailBean)
     */
    public void buildAndSaveContactMail(final RequestData requestData, final String velocityPath, final ContactEmailBean contactEmailBean) throws Exception {
        try {
          final Localization localization = requestData.getMarketAreaLocalization();
          final Locale locale = localization.getLocale();
         
          // SANITY CHECK
          checkEmailAddresses(contactEmailBean);
         
          Map<String, Object> model = new HashMap<String, Object>();
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Localization

    /**
     * @see org.hoteia.qalingo.core.service.EmailService#buildAndSaveRetailerContactMail(Localization localization, Customer customer, String velocityPath, RetailerContactEmailBean retailerContactEmailBean)
     */
    public void buildAndSaveRetailerContactMail(final RequestData requestData, final Customer customer, final String velocityPath, final RetailerContactEmailBean retailerContactEmailBean) throws Exception {
        try {
          final Localization localization = requestData.getMarketAreaLocalization();
          final Locale locale = localization.getLocale();
         
          // SANITY CHECK
          checkEmailAddresses(retailerContactEmailBean);
         
          Map<String, Object> model = new HashMap<String, Object>();
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Localization

     */
    public void saveAndBuildNewsletterSubscriptionnConfirmationMail(final RequestData requestData, final String velocityPath,
                                     final NewsletterEmailBean newsletterEmailBean) throws Exception {
        try {
          final MarketArea marketArea = requestData.getMarketArea();
          final Localization localization = requestData.getMarketAreaLocalization();
          final Locale locale = localization.getLocale();
         
          // SANITY CHECK
          checkEmailAddresses(newsletterEmailBean);
         
          Map<String, Object> model = new HashMap<String, Object>();
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Localization

     * @see org.hoteia.qalingo.core.service.EmailService#saveAndBuildNewsletterUnsubscriptionConfirmationMail(Localization localization, Customer customer, String velocityPath, NewsletterEmailBean newsletterEmailBean)
     */
    public void saveAndBuildNewsletterUnsubscriptionConfirmationMail(final RequestData requestData, final String velocityPath,
                                     final NewsletterEmailBean newsletterEmailBean) throws Exception {
        try {
          final Localization localization = requestData.getMarketAreaLocalization();
          final Locale locale = localization.getLocale();
         
          // SANITY CHECK
          checkEmailAddresses(newsletterEmailBean);
         
          Map<String, Object> model = new HashMap<String, Object>();
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Localization

     * @see org.hoteia.qalingo.core.service.EmailService#buildAndSaveCustomerNewAccountMail(Localization localization, Customer customer, String velocityPath, CustomerNewAccountConfirmationEmailBean customerNewAccountConfirmationEmailBean)
     */
    public void buildAndSaveCustomerNewAccountMail(final RequestData requestData, final String velocityPath,
                             final CustomerNewAccountConfirmationEmailBean customerNewAccountConfirmationEmailBean) throws Exception {
        try {
          final Localization localization = requestData.getMarketAreaLocalization();
          final Locale locale = localization.getLocale();
         
          // SANITY CHECK
          checkEmailAddresses(customerNewAccountConfirmationEmailBean);
         
          Map<String, Object> model = new HashMap<String, Object>();
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Localization

     * @see org.hoteia.qalingo.core.service.EmailService#buildAndSaveCustomerForgottenPasswordMail(Localization localization, Customer customer, String velocityPath, CustomerForgottenPasswordEmailBean customerForgottenPasswordEmailBean)
     */
    public void buildAndSaveCustomerForgottenPasswordMail(final RequestData requestData, final Customer customer, final String velocityPath,
                                final CustomerForgottenPasswordEmailBean customerForgottenPasswordEmailBean) throws Exception {
        try {
          final Localization localization = requestData.getMarketAreaLocalization();
          final Locale locale = localization.getLocale();
         
          // SANITY CHECK
          checkEmailAddresses(customerForgottenPasswordEmailBean);
         
          Map<String, Object> model = new HashMap<String, Object>();
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Localization

   
    @Autowired
    private LocalizationService localizationService;

    public LocalizationPojo getLocalizationById(String localizationId) {
        final Localization localization = localizationService.getLocalizationById(localizationId);
        logger.debug("Found {} localization for id {}", localization, localizationId);
        return localization == null ? null : dozerBeanMapper.map(localization, LocalizationPojo.class);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.