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 CommerceProperties
commerceProperties
private org.springframework.data.mongodb.core.MongoTemplate
mongoTemplate
private ProductService
productService
private SalesCatalogService
salesCatalogService
private SellerRepository
sellerRepository
private SellerSkuRepository
sellerSkuRepository
private SellerSkuUtil
sellerSkuUtil
private SKUService
skuService
private UnitRepository
unitRepository
private UserManagementService
userManagementService
-
Constructor Summary
Constructors Constructor Description EcomSearchIndexServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateKeywordsForSKUs(java.util.ArrayList<java.lang.String> ids)
This method generated words and update database entity.void
generateSellerSkuForSeller(java.lang.String sellerId)
This method generated database entity and update database entity.void
removeKeywordsForSKUs(java.util.ArrayList<java.lang.String> ids)
This method removes a list of database entities.void
removeSellerSkuForSeller(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:EcomSearchIndexService
This method generated words and update database entity.- Specified by:
generateKeywordsForSKUs
in 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:EcomSearchIndexService
This method removes a list of database entities.- Specified by:
removeKeywordsForSKUs
in 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.IOException
Description copied from interface:EcomSearchIndexService
This method generated database entity and update database entity.- Specified by:
generateSellerSkuForSeller
in 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:EcomSearchIndexService
This method removes relationship between database entities.- Specified by:
removeSellerSkuForSeller
in interfaceEcomSearchIndexService
- Parameters:
sellerId
- identification for database entity which will be removed
-
-