@Service(value="blAdminCatalogRemoteService") public class AdminCatalogRemoteService extends Object implements AdminCatalogService
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected javax.persistence.EntityManager |
em |
protected SkuDao |
skuDao |
| Constructor and Description |
|---|
AdminCatalogRemoteService() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
List<List<ProductOptionValue>> |
generatePermutations(int currentTypeIndex,
List<ProductOptionValue> currentPermutation,
List<ProductOption> options)
Generates all the possible permutations for the combinations of given ProductOptions
|
Integer |
generateSkusFromProduct(Long productId)
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
|
protected CatalogService catalogService
protected SkuDao skuDao
protected javax.persistence.EntityManager em
public Integer generateSkusFromProduct(Long productId)
AdminCatalogServicegenerateSkusFromProduct in interface AdminCatalogServiceproductId - - the Product to generate Skus frompublic List<List<ProductOptionValue>> generatePermutations(int currentTypeIndex, List<ProductOptionValue> currentPermutation, List<ProductOption> options)
currentTypeIndex - currentPermutation - options - public Boolean cloneProduct(Long productId)
AdminCatalogServicecloneProduct in interface AdminCatalogServiceCopyright © 2014. All Rights Reserved.