org.broadleafcommerce.admin.catalog.service
Class AdminCatalogService

java.lang.Object
  extended by org.broadleafcommerce.admin.catalog.service.AdminCatalogService

@Service(value="blAdminCatalogService")
public class AdminCatalogService
extends java.lang.Object


Field Summary
protected  CategoryDao categoryDao
           
protected  CategoryXrefDao categoryXrefDao
           
protected  ProductDao productDao
           
protected  SkuDao skuDao
           
 
Constructor Summary
AdminCatalogService()
           
 
Method Summary
 void deleteCategory(Category category, Category parentCategory)
           
 void deleteProduct(Product product)
           
 void deleteSku(Sku sku)
           
 java.util.List<Category> findAllCategories()
           
 java.util.List<Product> findAllProducts()
           
 java.util.List<Sku> findAllSkus()
           
 Category findCategoryById(java.lang.Long categoryId)
           
 Category findCategoryByName(java.lang.String categoryName)
           
 Product findProductById(java.lang.Long productId)
           
 java.util.List<Product> findProductsByCategory(Category category)
           
 java.util.List<Product> findProductsByName(java.lang.String searchName)
           
 Sku findSkuById(java.lang.Long skuId)
           
 java.util.List<Sku> findSkusByIds(java.util.List<java.lang.Long> ids)
           
 Category saveCategory(Category category)
           
 Product saveProduct(Product product)
           
 Sku saveSku(Sku sku)
           
 Category updateCategoryParents(Category category, Category oldParent, Category newParent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categoryDao

protected CategoryDao categoryDao

categoryXrefDao

protected CategoryXrefDao categoryXrefDao

productDao

protected ProductDao productDao

skuDao

protected SkuDao skuDao
Constructor Detail

AdminCatalogService

public AdminCatalogService()
Method Detail

findCategoryById

public Category findCategoryById(java.lang.Long categoryId)

findCategoryByName

public Category findCategoryByName(java.lang.String categoryName)

findProductById

public Product findProductById(java.lang.Long productId)

findProductsByName

public java.util.List<Product> findProductsByName(java.lang.String searchName)

findProductsByCategory

public java.util.List<Product> findProductsByCategory(Category category)

saveProduct

public Product saveProduct(Product product)

deleteProduct

public void deleteProduct(Product product)

updateCategoryParents

public Category updateCategoryParents(Category category,
                                      Category oldParent,
                                      Category newParent)

saveCategory

public Category saveCategory(Category category)

deleteCategory

public void deleteCategory(Category category,
                           Category parentCategory)

findAllCategories

public java.util.List<Category> findAllCategories()

findAllProducts

public java.util.List<Product> findAllProducts()

findAllSkus

public java.util.List<Sku> findAllSkus()

findSkuById

public Sku findSkuById(java.lang.Long skuId)

saveSku

public Sku saveSku(Sku sku)

deleteSku

public void deleteSku(Sku sku)

findSkusByIds

public java.util.List<Sku> findSkusByIds(java.util.List<java.lang.Long> ids)


Copyright © 2010. All Rights Reserved.