Interface DataManagerService
-
- All Known Implementing Classes:
DataManagerServiceImpl
public interface DataManagerService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAttributeToAllProducts(java.lang.String attributeId, java.lang.String username)This method associates all specified attribute identifiers with all productsvoidaddAttributeToAllSkus(java.lang.String attributeId, java.lang.String username)This method associates all specified attribute identifiers with all skusCategoryaddChildCategory(java.lang.String parentId, java.lang.String childId)This method adds child entity in parent entity.ProductaddProductToCategory(java.lang.String categoryId, java.lang.String productId)This method adds relationship between entities.AttributecreateAttribute(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.CategorycreateCategory(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.MeasurementcreateMeasurement(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.OptioncreateOption(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.OrdercreateOrder(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.ProductcreateProduct(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.ProfilecreateProfile(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.SellercreateSeller(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.SKUcreateSKU(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.LocalizedTextcreateTranslation(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.UnitcreateUnit(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.UsercreateUser(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method creates a database entity.voiddeleteAttribute(java.lang.String attributeId)This method removes database entity with child database entity.voiddeleteAttributes(java.util.ArrayList<java.lang.String> attributeIds)This method removes database entity with child database entity.voiddeleteCategories(java.util.ArrayList<java.lang.String> categoryIds)This method removes database entity with child database entity.voiddeleteCategory(java.lang.String categoryId)This method removes database entity with child database entity.voiddeleteListing(java.lang.String listingId)This method removes database entity with child database entity.voiddeleteListings(java.util.ArrayList<java.lang.String> listingIds)This method removes database entity with child database entity.voiddeleteMeasurement(java.lang.String measurementId)This method removes database entity with child database entity.voiddeleteMeasurements(java.util.ArrayList<java.lang.String> measurementIds)This method removes database entity with child database entity.voiddeleteOption(java.lang.String optionId)This method removes database entity with child database entity.voiddeleteOptions(java.util.ArrayList<java.lang.String> optionsIds)This method removes database entity with child database entity.voiddeleteOrder(java.lang.String orderId)This method removes database entity with child database entity.voiddeleteOrders(java.util.ArrayList<java.lang.String> ordersIds)This method removes database entity with child database entity.voiddeleteProduct(java.lang.String productId)This method removes database entity with child database entity.voiddeleteProducts(java.util.ArrayList<java.lang.String> productIds)This method removes database entity with child database entity.voiddeleteProfile(java.lang.String profileId)This method removes database entity with child database entity.voiddeleteProfiles(java.util.ArrayList<java.lang.String> profileIds)This method removes database entity with child database entity.voiddeleteSeller(java.lang.String sellerId)This method removes database entity with child database entity.voiddeleteSellers(java.util.ArrayList<java.lang.String> sellerIds)This method removes database entity with child database entity.voiddeleteSKU(java.lang.String skuId)This method removes database entity with child database entity.voiddeleteSKUs(java.util.ArrayList<java.lang.String> skuIds)This method removes database entity with child database entity.voiddeleteTranslation(java.lang.String translationId)This method removes database entity with child database entity.voiddeleteTranslations(java.util.ArrayList<java.lang.String> translationIds)This method removes database entity with child database entity.voiddeleteUnit(java.lang.String unitId)This method removes database entity with child database entity.voiddeleteUnits(java.util.ArrayList<java.lang.String> unitsIds)This method removes database entity with child database entity.voiddeleteUser(java.lang.String userId)This method removes database entity with child database entity.voiddeleteUsers(java.util.ArrayList<java.lang.String> userIds)This method removes database entity with child database entity.java.util.Map<java.lang.String,java.lang.String>getTranslation(java.lang.String id)This method returns data as map.voidjobDryRun(java.lang.String username)Performs a dry run of the job using the specified username.voidremoveChildCategory(java.lang.String parentId, java.lang.String childId)This method deletes child entity in parent entity.voidremoveProductFromCategory(java.lang.String categoryId, java.lang.String productId)This method deletes a relationship between entities.AttributeupdateAttribute(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for attribute based on proxy objectCategoryupdateCategory(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for category based on proxy objectMeasurementupdateMeasurement(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for attribute based on proxy objectOptionupdateOption(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for attribute based on proxy objectOrderupdateOrder(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for attribute based on proxy objectProductupdateProduct(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for product based on proxy objectProfileupdateProfile(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for attribute based on proxy objectSellerupdateSeller(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for attribute based on proxy objectSKUupdateSKU(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for product based on proxy objectLocalizedTextupdateTranslation(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for attribute based on proxy objectUnitupdateUnit(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for attribute based on proxy objectUserupdateUser(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)This method does update for attribute based on proxy object
-
-
-
Method Detail
-
createCategory
Category createCategory(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createProduct
Product createProduct(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createSKU
SKU createSKU(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createAttribute
Attribute createAttribute(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createOption
Option createOption(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createMeasurement
Measurement createMeasurement(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createUnit
Unit createUnit(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createSeller
Seller createSeller(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createProfile
Profile createProfile(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createUser
User createUser(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createTranslation
LocalizedText createTranslation(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
createOrder
Order createOrder(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method creates a database entity.- Parameters:
data- map-representation of database entity- Returns:
- optional value to externally interaction
-
deleteCategory
void deleteCategory(java.lang.String categoryId)
This method removes database entity with child database entity.- Parameters:
categoryId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteCategories
void deleteCategories(java.util.ArrayList<java.lang.String> categoryIds)
This method removes database entity with child database entity.- Parameters:
categoryIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteProduct
void deleteProduct(java.lang.String productId)
This method removes database entity with child database entity.- Parameters:
productId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteProducts
void deleteProducts(java.util.ArrayList<java.lang.String> productIds)
This method removes database entity with child database entity.- Parameters:
productIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteSKU
void deleteSKU(java.lang.String skuId)
This method removes database entity with child database entity.- Parameters:
skuId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteSKUs
void deleteSKUs(java.util.ArrayList<java.lang.String> skuIds)
This method removes database entity with child database entity.- Parameters:
skuIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteListing
void deleteListing(java.lang.String listingId)
This method removes database entity with child database entity.- Parameters:
listingId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteListings
void deleteListings(java.util.ArrayList<java.lang.String> listingIds)
This method removes database entity with child database entity.- Parameters:
listingIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteAttribute
void deleteAttribute(java.lang.String attributeId)
This method removes database entity with child database entity.- Parameters:
attributeId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteAttributes
void deleteAttributes(java.util.ArrayList<java.lang.String> attributeIds)
This method removes database entity with child database entity.- Parameters:
attributeIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteOption
void deleteOption(java.lang.String optionId)
This method removes database entity with child database entity.- Parameters:
optionId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteOptions
void deleteOptions(java.util.ArrayList<java.lang.String> optionsIds)
This method removes database entity with child database entity.- Parameters:
optionsIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteMeasurement
void deleteMeasurement(java.lang.String measurementId)
This method removes database entity with child database entity.- Parameters:
measurementId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteMeasurements
void deleteMeasurements(java.util.ArrayList<java.lang.String> measurementIds)
This method removes database entity with child database entity.- Parameters:
measurementIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteUnit
void deleteUnit(java.lang.String unitId)
This method removes database entity with child database entity.- Parameters:
unitId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteUnits
void deleteUnits(java.util.ArrayList<java.lang.String> unitsIds)
This method removes database entity with child database entity.- Parameters:
unitsIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteSeller
void deleteSeller(java.lang.String sellerId)
This method removes database entity with child database entity.- Parameters:
sellerId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteSellers
void deleteSellers(java.util.ArrayList<java.lang.String> sellerIds)
This method removes database entity with child database entity.- Parameters:
sellerIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteProfile
void deleteProfile(java.lang.String profileId)
This method removes database entity with child database entity.- Parameters:
profileId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteProfiles
void deleteProfiles(java.util.ArrayList<java.lang.String> profileIds)
This method removes database entity with child database entity.- Parameters:
profileIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteUser
void deleteUser(java.lang.String userId)
This method removes database entity with child database entity.- Parameters:
userId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteUsers
void deleteUsers(java.util.ArrayList<java.lang.String> userIds)
This method removes database entity with child database entity.- Parameters:
userIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteTranslation
void deleteTranslation(java.lang.String translationId)
This method removes database entity with child database entity.- Parameters:
translationId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteTranslations
void deleteTranslations(java.util.ArrayList<java.lang.String> translationIds)
This method removes database entity with child database entity.- Parameters:
translationIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
deleteOrder
void deleteOrder(java.lang.String orderId)
This method removes database entity with child database entity.- Parameters:
orderId- identification for database entity which will be removed and whose parent dependency will be removed
-
deleteOrders
void deleteOrders(java.util.ArrayList<java.lang.String> ordersIds)
This method removes database entity with child database entity.- Parameters:
ordersIds- the list of identification for database entities which will be removed and whose parent dependency will be removed
-
updateCategory
Category updateCategory(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for category based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the category object- Returns:
- optional value to externally interaction
-
updateProduct
Product updateProduct(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for product based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the product object- Returns:
- optional value to externally interaction
-
updateSKU
SKU updateSKU(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for product based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the product object- Returns:
- optional value to externally interaction
-
updateAttribute
Attribute updateAttribute(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for attribute based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the attribute object- Returns:
- optional value to externally interaction
-
updateOption
Option updateOption(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for attribute based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the option object- Returns:
- optional value to externally interaction
-
updateMeasurement
Measurement updateMeasurement(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for attribute based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the measurement object- Returns:
- optional value to externally interaction
-
updateUnit
Unit updateUnit(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for attribute based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the unit object- Returns:
- optional value to externally interaction
-
updateSeller
Seller updateSeller(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for attribute based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the seller object- Returns:
- optional value to externally interaction
-
updateProfile
Profile updateProfile(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for attribute based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the profile object- Returns:
- optional value to externally interaction
-
updateUser
User updateUser(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for attribute based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the user object- Returns:
- optional value to externally interaction
-
updateTranslation
LocalizedText updateTranslation(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for attribute based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the translation object- Returns:
- optional value to externally interaction
-
updateOrder
Order updateOrder(java.util.LinkedHashMap<java.lang.String,java.lang.Object> data)
This method does update for attribute based on proxy object- Parameters:
data- the data transfer object as a map-representation to update the order object- Returns:
- optional value to externally interaction
-
addProductToCategory
Product addProductToCategory(java.lang.String categoryId, java.lang.String productId)
This method adds relationship between entities.- Parameters:
categoryId- identification for database entity which will be updatedproductId- identification for database entity which will be updated- Returns:
- database entity
-
addChildCategory
Category addChildCategory(java.lang.String parentId, java.lang.String childId)
This method adds child entity in parent entity.- Parameters:
parentId- identification for database entity which will be updatedchildId- identification for database entity which will be added in parent database entity- Returns:
- database entity
-
removeProductFromCategory
void removeProductFromCategory(java.lang.String categoryId, java.lang.String productId)This method deletes a relationship between entities.- Parameters:
categoryId- identification for database entity which will be updatedproductId- identification for database entity which will be updated
-
removeChildCategory
void removeChildCategory(java.lang.String parentId, java.lang.String childId)This method deletes child entity in parent entity.- Parameters:
parentId- identification for database entity which will be updatedchildId- identification for database entity which will be added in parent database entity
-
addAttributeToAllProducts
void addAttributeToAllProducts(java.lang.String attributeId, java.lang.String username)This method associates all specified attribute identifiers with all products- Parameters:
attributeId- this attribute identifierusername- the username of the user running the job
-
addAttributeToAllSkus
void addAttributeToAllSkus(java.lang.String attributeId, java.lang.String username)This method associates all specified attribute identifiers with all skus- Parameters:
attributeId- this attribute identifierusername- the username of the user running the job
-
getTranslation
java.util.Map<java.lang.String,java.lang.String> getTranslation(java.lang.String id)
This method returns data as map.- Parameters:
id- identification for database entity, which will be revers on map- Returns:
- data as map
-
jobDryRun
void jobDryRun(java.lang.String username)
Performs a dry run of the job using the specified username.- Parameters:
username- the username of the user running the job
-
-