Interface SalesCatalogService
-
- All Known Implementing Classes:
SalesCatalogServiceImpl
public interface SalesCatalogService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SellerSKU
addPackageItemToSellerSku(java.lang.String sellerSkuId, java.util.LinkedHashMap<java.lang.String,java.lang.Object> packageAsMap)
This method creates a database entity.SellerSKU
changeType(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.SellerSKU
duplicate(java.lang.String sellerSkuId)
This method creates a copy of SellerSKUjava.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.CurrencyItem
getCurrencyByCode(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.SellerSKU
getSellerSkuFromChatTopic(java.lang.String topic)
This method returns database entity.UnitDTO
mapUnitToDto(Unit unit, boolean optimal)
This method does map product entity to dto objectSellerSKU
publishForSale(java.lang.String sellerSkuId)
This method does update a database entity.void
removeFileResources(java.lang.String sellerSkuId)
This method removes all attached files and images.void
removePackageItemFromSellerSku(java.lang.String sellerSkuId, java.lang.String packageId)
This method removes a database entity.void
removeSellerSkuAndClean(java.lang.String sellerSkuId)
This method removes a database entity and clean all relationships from another entities.void
removeSellerSkusByIds(java.util.ArrayList<java.lang.String> sellerSkusIds)
This method removes a list of database entities.void
removeUnitAndClean(java.lang.String unitId)
This method removes a database entity and clean all relationships from another entities.void
removeUnitsByIds(java.util.ArrayList<java.lang.String> unitsIds)
This method removes a list of database entities.SellerSKU
saveSellerSKU(SellerSKU sellerSku)
This method saves a database entity.SellerSKU
saveSellerSKU(java.util.LinkedHashMap<java.lang.String,java.lang.Object> sellerSkuAsMap)
This method save an updates of database entity.SellerSKU
saveSellerSkuAsDraft(SellerSKU sellerSku)
This method saves a database entity.SellerSKU
saveSellerSkuAsDraft(java.util.LinkedHashMap<java.lang.String,java.lang.Object> sellerSkuAsMap)
This method save an updates of database entity.Unit
saveUnit(Unit unit)
This method save an updates of database entity.Unit
saveUnit(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.SellerSKU
withdrawFromSale(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
-
-