Interface SalesCatalogService
-
- All Known Implementing Classes:
SalesCatalogServiceImpl
public interface SalesCatalogService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SellerSKUaddPackageItemToSellerSku(java.lang.String sellerSkuId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> packageAsMap)This method creates a database entity.SellerSKUchangeType(java.lang.String sellerSkuId, java.lang.String type)This method is changing a type of SellerSKUjava.util.Optional<Unit>createUnit(Unit unit)This method creates a database entity.java.util.Optional<Unit>createUnit(java.util.LinkedHashMap<java.lang.String,java.lang.Object> unitAsMap)This method creates a database entity.SellerSKUduplicate(java.lang.String sellerSkuId)This method creates a copy of SellerSKUjava.util.List<SellerSkuExcelModel>exportListings(co.mastermindcms.modules.beans.SearchRequest request)Exports listings based on the given search request.java.util.List<CurrencyItem>getAllCurrencies()This method returns database entities as list.java.util.Map<java.lang.String,java.lang.String>getAllSellerTariff()This method returns data as map.java.util.Map<java.lang.String,java.lang.String>getCountOfSellerSkus(java.lang.String requestJson)This method returns data as map.java.util.Map<java.lang.String,java.lang.String>getCountOfSellerSkusBySeller(java.lang.String sellerId)This method returns data as map.CurrencyItemgetCurrencyByCode(java.lang.String code)This method returns database entity.java.util.Deque<java.util.Map<java.lang.String,java.lang.Object>>getPaginationUnits(java.lang.String requestJson)This method does calculation for a pages based on the request.java.util.List<Attachment>getSellerSkuDocumentUrls(java.lang.String sellerSkuId)This method returns data as list.SellerSKUgetSellerSkuFromChatTopic(java.lang.String topic)This method returns database entity.UnitDTOmapUnitToDto(Unit unit, boolean optimal)This method does map product entity to dto objectSellerSKUpublishForSale(java.lang.String sellerSkuId)This method does update a database entity.voidremoveFileResources(java.lang.String sellerSkuId)This method removes all attached files and images.voidremovePackageItemFromSellerSku(java.lang.String sellerSkuId, java.lang.String packageId)This method removes a database entity.voidremoveSellerSkuAndClean(java.lang.String sellerSkuId)This method removes a database entity and clean all relationships from another entities.voidremoveSellerSkusByIds(java.util.ArrayList<java.lang.String> sellerSkusIds)This method removes a list of database entities.voidremoveUnitAndClean(java.lang.String unitId)This method removes a database entity and clean all relationships from another entities.voidremoveUnitsByIds(java.util.ArrayList<java.lang.String> unitsIds)This method removes a list of database entities.SellerSKUsaveSellerSKU(SellerSKU sellerSku)This method saves a database entity.SellerSKUsaveSellerSKU(java.util.LinkedHashMap<java.lang.String,java.lang.Object> sellerSkuAsMap)This method save an updates of database entity.SellerSKUsaveSellerSkuAsDraft(SellerSKU sellerSku)This method saves a database entity.SellerSKUsaveSellerSkuAsDraft(java.util.LinkedHashMap<java.lang.String,java.lang.Object> sellerSkuAsMap)This method save an updates of database entity.UnitsaveUnit(Unit unit)This method save an updates of database entity.UnitsaveUnit(java.util.LinkedHashMap<java.lang.String,java.lang.Object> unitAsMap)This method save an updates of database entity.java.util.LinkedHashSet<UnitDTO>searchUnits(java.lang.String requestJson)This method does search requests and returns data as list.org.springframework.data.domain.Page<Unit>searchUnitsPaged(java.lang.String requestJson)This method does search requests and returns data as pages.voiduploadListings(java.io.File file, java.lang.String lang, java.lang.String username)Uploads listings to the server for the given user.SellerSKUwithdrawFromSale(java.lang.String sellerSkuId)This method does update a database entity.
-
-
-
Method Detail
-
getPaginationUnits
java.util.Deque<java.util.Map<java.lang.String,java.lang.Object>> getPaginationUnits(java.lang.String requestJson)
This method does calculation for a pages based on the request.- Parameters:
requestJson- JSON-object of request contains an instructions for search queries- Returns:
- map-representation of data
-
searchUnits
java.util.LinkedHashSet<UnitDTO> searchUnits(java.lang.String requestJson)
This method does search requests and returns data as list.- Parameters:
requestJson- search request- Returns:
- data transport entities as list
-
searchUnitsPaged
org.springframework.data.domain.Page<Unit> searchUnitsPaged(java.lang.String requestJson)
This method does search requests and returns data as pages.- Parameters:
requestJson- JSON-object of request contains an instructions for search queries- Returns:
- database entities separated to pages
-
getAllCurrencies
java.util.List<CurrencyItem> getAllCurrencies()
This method returns database entities as list.- Returns:
- database entities as list
-
getCurrencyByCode
CurrencyItem getCurrencyByCode(java.lang.String code)
This method returns database entity.- Parameters:
code- for filter and return database entity- Returns:
- database entity
-
getSellerSkuFromChatTopic
SellerSKU getSellerSkuFromChatTopic(java.lang.String topic)
This method returns database entity.- Parameters:
topic- field for database entity which related entities list be returned- Returns:
- database entity
-
getCountOfSellerSkusBySeller
java.util.Map<java.lang.String,java.lang.String> getCountOfSellerSkusBySeller(java.lang.String sellerId)
This method returns data as map.- Parameters:
sellerId- identification for filter and return data- Returns:
- data as map
-
getCountOfSellerSkus
java.util.Map<java.lang.String,java.lang.String> getCountOfSellerSkus(java.lang.String requestJson)
This method returns data as map.- Parameters:
requestJson- identification for filter and return data- Returns:
- data as map
-
createUnit
java.util.Optional<Unit> createUnit(java.util.LinkedHashMap<java.lang.String,java.lang.Object> unitAsMap)
This method creates a database entity.- Parameters:
unitAsMap- map-representation of database entity- Returns:
- database entity
-
createUnit
java.util.Optional<Unit> createUnit(Unit unit)
This method creates a database entity.- Parameters:
unit- database entity- Returns:
- database entity
-
addPackageItemToSellerSku
SellerSKU addPackageItemToSellerSku(java.lang.String sellerSkuId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> packageAsMap)
This method creates a database entity.- Parameters:
sellerSkuId- unique identification for database entitypackageAsMap- map-representation of database entity- Returns:
- database entity
-
removePackageItemFromSellerSku
void removePackageItemFromSellerSku(java.lang.String sellerSkuId, java.lang.String packageId)This method removes a database entity.- Parameters:
sellerSkuId- unique identification for database entitypackageId- unique identification for database entity
-
removeFileResources
void removeFileResources(java.lang.String sellerSkuId)
This method removes all attached files and images.- Parameters:
sellerSkuId- unique identification for database entity
-
saveSellerSkuAsDraft
SellerSKU saveSellerSkuAsDraft(java.util.LinkedHashMap<java.lang.String,java.lang.Object> sellerSkuAsMap)
This method save an updates of database entity.- Parameters:
sellerSkuAsMap- map-representation of database entity- Returns:
- saved instance of database entity
-
saveSellerSkuAsDraft
SellerSKU saveSellerSkuAsDraft(SellerSKU sellerSku)
This method saves a database entity.- Parameters:
sellerSku- database entity- Returns:
- saved instance of database entity
-
saveSellerSKU
SellerSKU saveSellerSKU(java.util.LinkedHashMap<java.lang.String,java.lang.Object> sellerSkuAsMap)
This method save an updates of database entity.- Parameters:
sellerSkuAsMap- map-representation of database entity- Returns:
- saved instance of database entity
-
saveSellerSKU
SellerSKU saveSellerSKU(SellerSKU sellerSku)
This method saves a database entity.- Parameters:
sellerSku- database entity- Returns:
- saved instance of database entity
-
getAllSellerTariff
java.util.Map<java.lang.String,java.lang.String> getAllSellerTariff()
This method returns data as map.- Returns:
- data as map
-
saveUnit
Unit saveUnit(java.util.LinkedHashMap<java.lang.String,java.lang.Object> unitAsMap)
This method save an updates of database entity.- Parameters:
unitAsMap- map-representation of database entity- Returns:
- saved instance of database entity
-
saveUnit
Unit saveUnit(Unit unit)
This method save an updates of database entity.- Parameters:
unit- database entity- Returns:
- saved instance of database entity
-
getSellerSkuDocumentUrls
java.util.List<Attachment> getSellerSkuDocumentUrls(java.lang.String sellerSkuId)
This method returns data as list.- Parameters:
sellerSkuId- identification for database entity which related beans list be returned- Returns:
- database beans as list
-
removeSellerSkuAndClean
void removeSellerSkuAndClean(java.lang.String sellerSkuId)
This method removes a database entity and clean all relationships from another entities.- Parameters:
sellerSkuId- identification for database entity which will be removed
-
removeSellerSkusByIds
void removeSellerSkusByIds(java.util.ArrayList<java.lang.String> sellerSkusIds)
This method removes a list of database entities.- Parameters:
sellerSkusIds- the list of database entities which will be removed
-
removeUnitAndClean
void removeUnitAndClean(java.lang.String unitId)
This method removes a database entity and clean all relationships from another entities.- Parameters:
unitId- identification for database entity which will be removed
-
removeUnitsByIds
void removeUnitsByIds(java.util.ArrayList<java.lang.String> unitsIds)
This method removes a list of database entities.- Parameters:
unitsIds- the list of database entities which will be removed
-
publishForSale
SellerSKU publishForSale(java.lang.String sellerSkuId)
This method does update a database entity.- Parameters:
sellerSkuId- database entity id- Returns:
- database entity
-
withdrawFromSale
SellerSKU withdrawFromSale(java.lang.String sellerSkuId)
This method does update a database entity.- Parameters:
sellerSkuId- database entity id- Returns:
- database entity
-
changeType
SellerSKU changeType(java.lang.String sellerSkuId, java.lang.String type)
This method is changing a type of SellerSKU- Parameters:
sellerSkuId- database entity idtype- type to change- Returns:
- database entity
-
duplicate
SellerSKU duplicate(java.lang.String sellerSkuId)
This method creates a copy of SellerSKU- Parameters:
sellerSkuId- database entity id- Returns:
- database entity
-
mapUnitToDto
UnitDTO mapUnitToDto(Unit unit, boolean optimal)
This method does map product entity to dto object- Parameters:
unit- database entity which be used to map to dtooptimal- this pointer optimises the data transfer object- Returns:
- data transport object
-
exportListings
java.util.List<SellerSkuExcelModel> exportListings(co.mastermindcms.modules.beans.SearchRequest request)
Exports listings based on the given search request.- Parameters:
request- the search request containing the necessary criteria for exporting listings- Returns:
- a list of TranslationExport objects representing the exported listings
-
uploadListings
void uploadListings(java.io.File file, java.lang.String lang, java.lang.String username)Uploads listings to the server for the given user.- Parameters:
file- the file containing the listings to be uploadedlang- the language from contextusername- the username of the user uploading the listings
-
-