public static SiteCodeType getSiteCodeType()

in ebaystore/src/main/java/org/apache/ofbiz/ebaystore/EbayStoreHelper.java [131:165]


    public static SiteCodeType getSiteCodeType(String productStoreId, Locale locale, Delegator delegator) {
        Map<String, Object> context = new HashMap<>();
        context.put("locale", locale);
        context.put("productStoreId", productStoreId);
        Map<String, Object> config = EbayHelper.buildEbayConfig(context, delegator);
        String siteId = (String) config.get("siteID");
        if (siteId != null) {
            if ("0".equals(siteId)) return SiteCodeType.US;
            if ("2".equals(siteId)) return SiteCodeType.CANADA;
            if ("3".equals(siteId)) return SiteCodeType.UK;
            if ("15".equals(siteId)) return SiteCodeType.AUSTRALIA;
            if ("16".equals(siteId)) return SiteCodeType.AUSTRIA;
            if ("23".equals(siteId)) return SiteCodeType.BELGIUM_FRENCH;
            if ("71".equals(siteId)) return SiteCodeType.FRANCE;
            if ("77".equals(siteId)) return SiteCodeType.GERMANY;
            if ("100".equals(siteId)) return SiteCodeType.E_BAY_MOTORS;
            if ("101".equals(siteId)) return SiteCodeType.ITALY;
            if ("123".equals(siteId)) return SiteCodeType.BELGIUM_DUTCH;
            if ("146".equals(siteId)) return SiteCodeType.NETHERLANDS;
            if ("189".equals(siteId)) return SiteCodeType.SPAIN;
            if ("193".equals(siteId)) return SiteCodeType.SWITZERLAND;
            if ("196".equals(siteId)) return SiteCodeType.TAIWAN;
            if ("201".equals(siteId)) return SiteCodeType.HONG_KONG;
            if ("203".equals(siteId)) return SiteCodeType.INDIA;
            if ("205".equals(siteId)) return SiteCodeType.IRELAND;
            if ("207".equals(siteId)) return SiteCodeType.MALAYSIA;
            if ("210".equals(siteId)) return SiteCodeType.CANADA_FRENCH;
            if ("211".equals(siteId)) return SiteCodeType.PHILIPPINES;
            if ("212".equals(siteId)) return SiteCodeType.POLAND;
            if ("216".equals(siteId)) return SiteCodeType.SINGAPORE;
            if ("218".equals(siteId)) return SiteCodeType.SWEDEN;
            if ("223".equals(siteId)) return SiteCodeType.CHINA;
        }
        return SiteCodeType.US;
    }