Package org.hoteia.qalingo.core.solr.bean

Examples of org.hoteia.qalingo.core.solr.bean.StoreSolr


            throw new IllegalArgumentException("Id  cannot be blank or null.");
        }
        if (logger.isDebugEnabled()) {
            logger.debug("Indexing store " + store.getId() + " : " + store.getName() + " : " + store.getCity());
        }
        StoreSolr storeSolr = new StoreSolr();
        storeSolr.setId(store.getId());
        storeSolr.setCode(store.getCode());
        storeSolr.setName(store.getName());
        storeSolr.setCity(store.getCity());
        storeSolr.setCountryCode(store.getCountryCode());
        storeSolr.setPostalCode(store.getPostalCode());
        storeSolr.setType(store.getType());
        storeSolrServer.addBean(storeSolr);
        storeSolrServer.commit();
    }
View Full Code Here


     */
    public List<SearchStoreItemViewBean> buildListViewBeanSearchStoreItem(final RequestData requestData, final StoreResponseBean storeResponseBean) throws Exception {
        final List<SearchStoreItemViewBean> searchStoreItems = new ArrayList<SearchStoreItemViewBean>();
        List<StoreSolr> stores = storeResponseBean.getStoreSolrList();
        for (Iterator<StoreSolr> iterator = stores.iterator(); iterator.hasNext();) {
            StoreSolr storeSolr = (StoreSolr) iterator.next();
            SearchStoreItemViewBean searchItemViewBean = buildViewBeanSearchStoreItem(requestData, storeSolr);
            if(searchItemViewBean != null){
                searchStoreItems.add(searchItemViewBean);
            }
        }
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.solr.bean.StoreSolr

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.