Package com.ebay.soap.eBLBaseComponents

Examples of com.ebay.soap.eBLBaseComponents.GetCategoryFeaturesResponseType


    //sync and cache all categories features in memory
    private void syncAllCategoriesFeatures() throws Exception {
        if (!siteCategoriesFeaturesMap.containsKey(this.apiContext.getSite())) {
            FeaturesDownloader fd = new FeaturesDownloader(this.apiContext);
            GetCategoryFeaturesResponseType cfrt = fd.getAllCategoryFeatures();
            CategoryFeatureType[] categoryFeatures = cfrt.getCategory();
            Map<String, CategoryFeatureType> cfsMap = new HashMap<String, CategoryFeatureType>(MAP_SIZE);
            for (CategoryFeatureType cf: categoryFeatures) {
                cfsMap.put(cf.getCategoryID(), cf);
            }
            siteCategoriesFeaturesMap.put(this.apiContext.getSite(), cfsMap);
            siteFeatureDefaultMap.put(this.apiContext.getSite(), cfrt.getSiteDefaults());
            siteFeatureDefinitionsMap.put(this.apiContext.getSite(), cfrt.getFeatureDefinitions());
        }
    }
View Full Code Here


    //sync and cache all categories features in memory
    private void syncAllCategoriesFeatures() throws Exception {
        if (!siteCategoriesFeaturesMap.containsKey(this.apiContext.getSite())) {
            FeaturesDownloader fd = new FeaturesDownloader(this.apiContext);
            GetCategoryFeaturesResponseType cfrt = fd.getAllCategoryFeatures();
            CategoryFeatureType[] categoryFeatures = cfrt.getCategory();
            Map<String, CategoryFeatureType> cfsMap = new HashMap<String, CategoryFeatureType>(MAP_SIZE);
            for (CategoryFeatureType cf: categoryFeatures) {
                cfsMap.put(cf.getCategoryID(), cf);
            }
            siteCategoriesFeaturesMap.put(this.apiContext.getSite(), cfsMap);
            siteFeatureDefaultMap.put(this.apiContext.getSite(), cfrt.getSiteDefaults());
            siteFeatureDefinitionsMap.put(this.apiContext.getSite(), cfrt.getFeatureDefinitions());
        }
    }
View Full Code Here

    //we only need 'UpdateTime' field
    //req.setOutputSelector(new String[]{"UpdateTime"});
    //workaround, use CategoryVersion instead of UpdateTime here
    req.setOutputSelector(new String[]{"CategoryVersion"});
    api.execute(req);
    GetCategoryFeaturesResponseType resp = (GetCategoryFeaturesResponseType) api.execute(req);
//    Date date = resp.getUpdateTime().getTime();
//    SimpleDateFormat df = new SimpleDateFormat("yyyy_MM_dd_hh_mm_ss");
//    String time = df.format(date);
    return resp.getCategoryVersion();
  }
View Full Code Here

  }

  //get category features for a given site
  public GetCategoryFeaturesResponseType getAllCategoryFeatures() throws Exception{
    Object obj = getObject();
    GetCategoryFeaturesResponseType cfrt = (GetCategoryFeaturesResponseType)obj;
    return cfrt;
  }
View Full Code Here

TOP

Related Classes of com.ebay.soap.eBLBaseComponents.GetCategoryFeaturesResponseType

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.