public interface

MagentoCatalogClient

org.mule.module.magento.api.catalog.MagentoCatalogClient<AttributesType, AttributesCollectionType, ExceptionType extends java.lang.Exception>
Known Indirect Subclasses

Summary

Public Methods
abstract void addCategoryProduct(int categoryId, ProductIdentifier productId, String position)
Assign product to category.
abstract void addProductLink(String type, ProductIdentifier productId, String linkedProductIdOrSku, Map<String, Object> attributes)
Links two products
abstract int createCategory(int parentId, Map<String, Object> attributes, String storeView)
Creates a new category.
abstract int createProduct(String type, int set, String sku, Map<String, Object> attributes, Map<String, Object> additionalAttributes, String storeView)
Creates a new product
abstract String createProductAttributeMedia(ProductIdentifier productId, Map<String, Object> attributes, InputStream content, MediaMimeType mimeType, String baseFileName, String storeView)
Creates a new product media.
abstract void deleteCategory(int categoryId)
Deletes a category.
abstract void deleteCategoryProduct(int categoryId, ProductIdentifier productId)
Remove a product assignment.
abstract void deleteProduct(ProductIdentifier productId)
Deletes a product.
abstract void deleteProductAttributeMedia(ProductIdentifier productId, String file)
Removes a product image.
abstract void deleteProductLink(String type, ProductIdentifier productId, String linkedProductIdOrSku)
Deletes a product's link
abstract int getCatalogCurrentStoreView()
Answers the current default catalog store view id for this session
abstract AttributesType getCategory(int categoryId, String storeView, List<String> attributeNames)
Answers category attributes.
abstract AttributesType getCategoryTree(String parentId, String storeView)
Retrieve hierarchical tree.
abstract AttributesType getProduct(ProductIdentifier productId, String storeView, List<String> attributeNames, List<String> additionalAttributeNames)
Answers a product's specified attributes.
abstract AttributesType getProductAttributeMedia(ProductIdentifier productId, String file, String storeView)
Answers product image attributes.
abstract AttributesType getProductSpecialPrice(ProductIdentifier productId, String storeView)
Answers a product special price.
abstract AttributesCollectionType listCategoryAttributeOptions(String attributeId, String storeView)
Retrieves attribute options.
abstract AttributesCollectionType listCategoryAttributes()
Retrieves category attributes.
abstract AttributesCollectionType listCategoryLevels(String website, String storeView, String parentCategoryId)
Answers levels of categories for a website, store view and parente category@return
abstract AttributesCollectionType listCategoryProducts(int categoryId)
Lists product of a given category.
abstract AttributesCollectionType listInventoryStockItems(List<String> products)
abstract AttributesCollectionType listProductAttributeMedia(ProductIdentifier productId, String storeView)
Retrieves product image list.
abstract AttributesCollectionType listProductAttributeMediaTypes(int setId)
Retrieve product image types.
abstract AttributesCollectionType listProductAttributeOptions(String attributeId, String storeView)
Answers the product attribute options.
abstract AttributesCollectionType listProductAttributeSets()
Retrieves product attribute sets.
abstract AttributesCollectionType listProductAttributeTierPrices(ProductIdentifier productId)
Retrieve product tier prices.
abstract AttributesCollectionType listProductAttributes(int setId)
Retrieves product attributes list.
abstract AttributesCollectionType listProductLink(String type, ProductIdentifier productId)
Lists linked products to the given product and for the given link type
abstract AttributesCollectionType listProductLinkAttributes(String type)
Lists all the attributes for the given product link type
abstract List<String> listProductLinkTypes()
Retrieve product link types
abstract AttributesCollectionType listProductTypes()
Retrieves product types.
abstract AttributesCollectionType listProducts(String filters, String storeView)
Retrieve products list by filters See catalog-product-list SOAP method.
abstract void moveCategory(int categoryId, int parentId, String afterId)
Move category in tree.
abstract void updateCatalogCurrentStoreView(String storeViewIdOrCode)
Set the default catalog store view for this session
abstract void updateCategory(int categoryId, Map<String, Object> attributes, String storeView)
Updates a category.
abstract void updateCategoryProduct(int categoryId, ProductIdentifier productId, String position)
abstract void updateInventoryStockItem(ProductIdentifier productId, Map<String, Object> attributes)
Updates an stock inventory item
abstract void updateProduct(ProductIdentifier productId, Map<String, Object> attributes, Map<String, Object> additionalAttributes, String storeView)
Updates a product.
abstract void updateProductAttributeMedia(ProductIdentifier productId, String fileName, Map<String, Object> attributes, String storeView)
Updates product media.
abstract void updateProductAttributeTierPrice(ProductIdentifier productId, Map<String, Object> attributes)
Updates a single product tier price.
abstract void updateProductLink(String type, ProductIdentifier productId, String linkedProduct, Map<String, Object> attributes)
Update product link
abstract void updateProductSpecialPrice(ProductIdentifier productId, String specialPrice, String fromDate, String toDate, String storeView)
Sets a product special price.

Public Methods

public abstract void addCategoryProduct (int categoryId, ProductIdentifier productId, String position)

Assign product to category. See catalog-category-assignProduct SOAP method

Parameters
categoryId
productId
position
Throws
Exception

public abstract void addProductLink (String type, ProductIdentifier productId, String linkedProductIdOrSku, Map<String, Object> attributes)

Links two products

Parameters
type The product type
productId
linkedProductIdOrSku
attributes The link attributes
Throws
Exception

public abstract int createCategory (int parentId, Map<String, Object> attributes, String storeView)

Creates a new category. See catalog-category-create SOAP method.

Parameters
parentId
attributes
storeView
Returns
  • the new category id
Throws
Exception

public abstract int createProduct (String type, int set, String sku, Map<String, Object> attributes, Map<String, Object> additionalAttributes, String storeView)

Creates a new product

Parameters
type The new product's type
set The new product's set
sku The new product's sku
attributes The standard attributes of the new product
additionalAttributes The non standard attributes of the new product
storeView
Returns
  • the new product's id
Throws
Exception

public abstract String createProductAttributeMedia (ProductIdentifier productId, Map<String, Object> attributes, InputStream content, MediaMimeType mimeType, String baseFileName, String storeView)

Creates a new product media. See catalog-product-attribute-media-create SOAP method.

Parameters
productId
attributes
content
mimeType
baseFileName
storeView
Returns
  • the new image filename
Throws
Exception

public abstract void deleteCategory (int categoryId)

Deletes a category. See catalog-category-delete SOAP method

Parameters
categoryId
Throws
Exception

public abstract void deleteCategoryProduct (int categoryId, ProductIdentifier productId)

Remove a product assignment. See catalog-category-removeProduct SOAP method.

Parameters
categoryId
productId
Throws
Exception

public abstract void deleteProduct (ProductIdentifier productId)

Deletes a product. See catalog-product-delete SOAP method.

Parameters
productId The product identifier
Throws
Exception

public abstract void deleteProductAttributeMedia (ProductIdentifier productId, String file)

Removes a product image. See catalog-product-attribute-media-remove SOAP method.

Parameters
productId
file
Throws
Exception

public abstract void deleteProductLink (String type, ProductIdentifier productId, String linkedProductIdOrSku)

Deletes a product's link

Parameters
type Link type
productId
linkedProductIdOrSku
Throws
Exception

public abstract int getCatalogCurrentStoreView ()

Answers the current default catalog store view id for this session

Returns
  • the current default store view id
Throws
Exception

public abstract AttributesType getCategory (int categoryId, String storeView, List<String> attributeNames)

Answers category attributes. See catalog-category-info SOAP method.

Parameters
categoryId
storeView
attributeNames
Returns
  • the category attributes
Throws
Exception

public abstract AttributesType getCategoryTree (String parentId, String storeView)

Retrieve hierarchical tree. See catalog-category-tree SOAP method.

Parameters
parentId
storeView
Throws
Exception

public abstract AttributesType getProduct (ProductIdentifier productId, String storeView, List<String> attributeNames, List<String> additionalAttributeNames)

Answers a product's specified attributes. At least one of attributNames or additionalAttributeNames must be non null and non empty. See catalog-product-info SOAP method.

Parameters
productId
storeView
attributeNames The list of standard attributes to be returned
additionalAttributeNames The list of non standard attributes to be returned in the additionalAttributes attribute
Returns
  • the product attributes
Throws
Exception

public abstract AttributesType getProductAttributeMedia (ProductIdentifier productId, String file, String storeView)

Answers product image attributes. See catalog-product-attribute-media-info SOAP method

Parameters
productId
file
storeView
Returns
  • the product attributes
Throws
Exception

public abstract AttributesType getProductSpecialPrice (ProductIdentifier productId, String storeView)

Answers a product special price. See catalog-product-getSpecialPrice SOAP method.

Parameters
productId
storeView
Throws
Exception

public abstract AttributesCollectionType listCategoryAttributeOptions (String attributeId, String storeView)

Retrieves attribute options. See catalog-category-attribute-options SOAP method.

Parameters
attributeId
storeView
Returns
  • the list of attributes
Throws
Exception

public abstract AttributesCollectionType listCategoryAttributes ()

Retrieves category attributes. See catalog-category-attribute-list SOAP method.

Returns
  • the list of attributes
Throws
Exception

public abstract AttributesCollectionType listCategoryLevels (String website, String storeView, String parentCategoryId)

Answers levels of categories for a website, store view and parente category@return

Parameters
website
storeView
parentCategoryId
Throws
Exception

public abstract AttributesCollectionType listCategoryProducts (int categoryId)

Lists product of a given category. See catalog-category-assignedProducts SOAP method.

Parameters
categoryId
Returns
  • the listing of category products
Throws
Exception

public abstract AttributesCollectionType listInventoryStockItems (List<String> products)

Parameters
products
Throws
Exception

public abstract AttributesCollectionType listProductAttributeMedia (ProductIdentifier productId, String storeView)

Retrieves product image list. See catalog-product-attribute-media-list SOAP method

Parameters
productId
storeView
Returns
  • the list of product images attributes
Throws
Exception

public abstract AttributesCollectionType listProductAttributeMediaTypes (int setId)

Retrieve product image types. See catalog-product-attribute-media-types SOAP method.

Parameters
setId
Throws
Exception

public abstract AttributesCollectionType listProductAttributeOptions (String attributeId, String storeView)

Answers the product attribute options. See catalog-product-attribute-options SOAP method.

Parameters
attributeId
storeView
Returns
  • the attributes list
Throws
Exception

public abstract AttributesCollectionType listProductAttributeSets ()

Retrieves product attribute sets. See catalog-product-attribute-set-list SOAP method.

Returns
  • The list of product attributes sets
Throws
Exception

public abstract AttributesCollectionType listProductAttributeTierPrices (ProductIdentifier productId)

Retrieve product tier prices. See catalog-product-attribute-tier-price-info SOAP Method.

Parameters
productId
Returns
  • the list of product attributes
Throws
Exception

public abstract AttributesCollectionType listProductAttributes (int setId)

Retrieves product attributes list. See catalog-product-attribute-list SOAP methods

Parameters
setId
Returns
  • the list of product attributes
Throws
Exception

public abstract AttributesCollectionType listProductLink (String type, ProductIdentifier productId)

Lists linked products to the given product and for the given link type

Parameters
type The link type
productId The linked product
Returns
  • the list of links to the product
Throws
Exception

public abstract AttributesCollectionType listProductLinkAttributes (String type)

Lists all the attributes for the given product link type

Parameters
type The product type
Returns
  • the listing of product attributes
Throws
Exception

public abstract List<String> listProductLinkTypes ()

Retrieve product link types

Returns
  • the list of product link types
Throws
Exception

public abstract AttributesCollectionType listProductTypes ()

Retrieves product types. See catalog-product-type-list SOAP method

Returns
  • the list of product types
Throws
Exception

public abstract AttributesCollectionType listProducts (String filters, String storeView)

Retrieve products list by filters See catalog-product-list SOAP method.

Parameters
filters An optional filtering expression
storeView
Returns
  • the list of product attributes that match the given optional filtering expression
Throws
Exception

public abstract void moveCategory (int categoryId, int parentId, String afterId)

Move category in tree. See catalog-category-move SOAP method. NOTE Please make sure that you are not moving category to any of its own children. There are no extra checks to prevent doing it through webservices API, and you won’t be able to fix this from admin interface then

Parameters
categoryId
parentId
afterId
Throws
Exception

public abstract void updateCatalogCurrentStoreView (String storeViewIdOrCode)

Set the default catalog store view for this session

Parameters
storeViewIdOrCode The id or code of the store view to set as default for this session
Throws
Exception

public abstract void updateCategory (int categoryId, Map<String, Object> attributes, String storeView)

Updates a category. See catalog-category-update SOAP method

Parameters
categoryId
attributes
storeView
Throws
Exception

public abstract void updateCategoryProduct (int categoryId, ProductIdentifier productId, String position)

Parameters
categoryId
productId
position
Throws
Exception

public abstract void updateInventoryStockItem (ProductIdentifier productId, Map<String, Object> attributes)

Updates an stock inventory item

Parameters
productId
attributes
Throws
Exception

public abstract void updateProduct (ProductIdentifier productId, Map<String, Object> attributes, Map<String, Object> additionalAttributes, String storeView)

Updates a product. At least one of attributes or additionalAttributes must be non null and non empty See catalog-category-updateProduct SOAP method

Parameters
productId
attributes The map of standard product attributes to update
additionalAttributes The map of non standard product attributes to update
storeView
Throws
Exception

public abstract void updateProductAttributeMedia (ProductIdentifier productId, String fileName, Map<String, Object> attributes, String storeView)

Updates product media. See catalog-product-attribute-media-update

Parameters
productId
fileName
attributes
storeView
Throws
Exception

public abstract void updateProductAttributeTierPrice (ProductIdentifier productId, Map<String, Object> attributes)

Updates a single product tier price. See catalog-product-attribute-tier-price-update SOAP method.

Parameters
productId
attributes
Throws
Exception

public abstract void updateProductLink (String type, ProductIdentifier productId, String linkedProduct, Map<String, Object> attributes)

Update product link

Parameters
type
productId
linkedProduct
attributes
Throws
Exception

public abstract void updateProductSpecialPrice (ProductIdentifier productId, String specialPrice, String fromDate, String toDate, String storeView)

Sets a product special price. See catalog-product-setSpecialPrice SOAP method

Parameters
productId
specialPrice
fromDate
toDate
storeView
Throws
Exception