Class EcomSearchIndexServiceImpl
- java.lang.Object
-
- co.mastermindcms.modules.services.EcomSearchIndexServiceImpl
-
- All Implemented Interfaces:
EcomSearchIndexService
@Service public class EcomSearchIndexServiceImpl extends java.lang.Object implements EcomSearchIndexService
-
-
Field Summary
Fields Modifier and Type Field Description private CommercePropertiescommercePropertiesprivate org.springframework.data.mongodb.core.MongoTemplatemongoTemplateprivate ProductServiceproductServiceprivate SalesCatalogServicesalesCatalogServiceprivate SellerRepositorysellerRepositoryprivate SellerSkuRepositorysellerSkuRepositoryprivate SellerSkuUtilsellerSkuUtilprivate SKUServiceskuServiceprivate UnitRepositoryunitRepositoryprivate UserManagementServiceuserManagementService
-
Constructor Summary
Constructors Constructor Description EcomSearchIndexServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateKeywordsForSKUs(java.util.ArrayList<java.lang.String> ids)This method generated words and update database entity.voidgenerateSellerSkuForSeller(java.lang.String sellerId)This method generated database entity and update database entity.voidremoveKeywordsForSKUs(java.util.ArrayList<java.lang.String> ids)This method removes a list of database entities.voidremoveSellerSkuForSeller(java.lang.String sellerId)This method removes relationship between database entities.
-
-
-
Field Detail
-
sellerRepository
@Autowired private SellerRepository sellerRepository
-
sellerSkuRepository
@Autowired private SellerSkuRepository sellerSkuRepository
-
unitRepository
@Autowired private UnitRepository unitRepository
-
skuService
@Autowired private SKUService skuService
-
productService
@Autowired private ProductService productService
-
sellerSkuUtil
@Autowired private SellerSkuUtil sellerSkuUtil
-
commerceProperties
@Autowired private CommerceProperties commerceProperties
-
salesCatalogService
@Autowired private SalesCatalogService salesCatalogService
-
userManagementService
@Autowired private UserManagementService userManagementService
-
mongoTemplate
@Autowired private org.springframework.data.mongodb.core.MongoTemplate mongoTemplate
-
-
Method Detail
-
generateKeywordsForSKUs
@Transactional @Async("asyncTaskExecutor") public void generateKeywordsForSKUs(java.util.ArrayList<java.lang.String> ids)Description copied from interface:EcomSearchIndexServiceThis method generated words and update database entity.- Specified by:
generateKeywordsForSKUsin interfaceEcomSearchIndexService- Parameters:
ids- list of identification for database entity which will be updated
-
removeKeywordsForSKUs
@Transactional @Async("asyncTaskExecutor") public void removeKeywordsForSKUs(java.util.ArrayList<java.lang.String> ids)Description copied from interface:EcomSearchIndexServiceThis method removes a list of database entities.- Specified by:
removeKeywordsForSKUsin interfaceEcomSearchIndexService- Parameters:
ids- the list of fields in database entities which will be removed
-
generateSellerSkuForSeller
@Transactional @Async("asyncTaskExecutor") public void generateSellerSkuForSeller(java.lang.String sellerId) throws java.io.IOExceptionDescription copied from interface:EcomSearchIndexServiceThis method generated database entity and update database entity.- Specified by:
generateSellerSkuForSellerin interfaceEcomSearchIndexService- Parameters:
sellerId- identification for database entity which will be updated- Throws:
java.io.IOException- if input file not exists
-
removeSellerSkuForSeller
@Transactional @Async("asyncTaskExecutor") public void removeSellerSkuForSeller(java.lang.String sellerId)Description copied from interface:EcomSearchIndexServiceThis method removes relationship between database entities.- Specified by:
removeSellerSkuForSellerin interfaceEcomSearchIndexService- Parameters:
sellerId- identification for database entity which will be removed
-
-