Interface AdminCatalogService

All Known Implementing Classes:
AdminCatalogServiceImpl

public interface AdminCatalogService
Author:
Phillip Verheyden
  • Method Details

    • generateSkusFromProduct

      @Deprecated Integer generateSkusFromProduct(Long productId)
      Deprecated.
      Clear out any Skus that are already attached to the Product if there were any there and generate a new set of Skus based on the permutations of ProductOptions attached to this Product
      Parameters:
      productId - - the Product to generate Skus from
      Returns:
      the number of generated Skus from the ProductOption permutations
    • generateSkus

      Map<String,Object> generateSkus(Long productId)
      Create new Skus based on a product's ProductOptions by permutation and add them to existing ones.
      Parameters:
      productId - - Product ID to create SKUs
      Returns:
      the map as ResponseBody
    • cloneProduct

      Boolean cloneProduct(Long productId)
      This will create a new product along with a new Sku for the defaultSku, along with new Skus for all of the additional Skus. This is achieved by simply detaching the entities from the persistent session, resetting the primary keys and then saving the entity.

      Note: Media for the product is not saved separately, meaning if you make a change to the original product's media items (the one specified by productId) it will change the cloned product's media and vice-versa.

      Parameters:
      productId -
      Returns: