/**
 * Most of the code in the Qalingo project is copyrighted Hoteia and licensed
 * under the Apache License Version 2.0 (release version 0.8.0)
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *                   Copyright (c) Hoteia, 2012-2014
 * http://www.hoteia.com - http://twitter.com/hoteia - contact@hoteia.com
 *
 */
package org.hoteia.qalingo.core.pojo;

import java.io.Serializable;

public class UrlParameterMapping implements Serializable {

    /**
     * Generated UID
     */
    private static final long serialVersionUID = 633605376073973865L;

    private String marketPlaceCode = null;
    private String marketCode = null;
    private String marketAreaCode = null;
    private String localizationCode = null;
    private String retailerCode = null;
    private String currencyCode = null;
	
	public UrlParameterMapping() {
    }
	
	public String getMarketPlaceCode() {
        return marketPlaceCode;
    }
	
	public void setMarketPlaceCode(String marketPlaceCode) {
        this.marketPlaceCode = marketPlaceCode;
    }

    public String getMarketCode() {
        return marketCode;
    }

    public void setMarketCode(String marketCode) {
        this.marketCode = marketCode;
    }

    public String getMarketAreaCode() {
        return marketAreaCode;
    }

    public void setMarketAreaCode(String marketAreaCode) {
        this.marketAreaCode = marketAreaCode;
    }

    public String getLocalizationCode() {
        return localizationCode;
    }

    public void setLocalizationCode(String localizationCode) {
        this.localizationCode = localizationCode;
    }

    public String getRetailerCode() {
        return retailerCode;
    }

    public void setRetailerCode(String retailerCode) {
        this.retailerCode = retailerCode;
    }

    public String getCurrencyCode() {
        return currencyCode;
    }

    public void setCurrencyCode(String currencyCode) {
        this.currencyCode = currencyCode;
    }
	
}
@@ -412,16 +412,64 @@
 ble;%0D%0A%0D%0A
+import org.apache.commons.lang3.StringUtils;%0D%0A%0D%0A
 public c
@@ -1102,24 +1102,35 @@
 PlaceCode = 
+handleCode(
 marketPlaceC
@@ -1124,32 +1124,33 @@
 (marketPlaceCode
+)
 ;%0D%0A    %7D%0D%0A%0D%0A    
@@ -1293,24 +1293,35 @@
 arketCode = 
+handleCode(
 marketCode;%0D
@@ -1310,32 +1310,33 @@
 eCode(marketCode
+)
 ;%0D%0A    %7D%0D%0A%0D%0A    
@@ -1503,16 +1503,27 @@
 aCode = 
+handleCode(
 marketAr
@@ -1520,32 +1520,33 @@
 e(marketAreaCode
+)
 ;%0D%0A    %7D%0D%0A%0D%0A    
@@ -1723,16 +1723,27 @@
 nCode = 
+handleCode(
 localiza
@@ -1742,32 +1742,33 @@
 localizationCode
+)
 ;%0D%0A    %7D%0D%0A%0D%0A    
@@ -1925,16 +1925,27 @@
 rCode = 
+handleCode(
 retailer
@@ -1940,32 +1940,33 @@
 ode(retailerCode
+)
 ;%0D%0A    %7D%0D%0A%0D%0A    
@@ -2123,25 +2123,257 @@
 yCode = 
-currencyC
+handleCode(currencyCode);%0D%0A    %7D%0D%0A    %0D%0A    protected String handleCode(String code)%7B%0D%0A        if(StringUtils.isNotEmpty(code))%7B%0D%0A            code = code.replace(%22-%22, %22_%22);%0D%0A            code = code.toUpperCase();%0D%0A        %7D%0D%0A        return c
 ode;%0D%0A  

fix Url param code SEO with -/_