Method | Description | |
---|---|---|
CategoryService ( ICacheManager cacheManager, IRepository |
Ctor
|
|
DeleteCategory ( |
Delete category
|
|
DeleteProductCategory ( Nop.Core.Domain.Catalog.ProductCategory productCategory ) : void |
Deletes a product category mapping
|
|
GetAllCategories ( string categoryName = "", int pageIndex, int pageSize = int.MaxValue, bool showHidden = false ) : IPagedList |
Gets all categories
|
|
GetAllCategoriesByParentCategoryId ( int parentCategoryId, bool showHidden = false ) : IList |
Gets all categories filtered by parent category identifier
|
|
GetAllCategoriesDisplayedOnHomePage ( ) : IList |
Gets all categories displayed on the home page
|
|
GetCategoryById ( int categoryId ) : |
Gets a category
|
|
GetProductCategoriesByCategoryId ( int categoryId, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList |
Gets product category mapping collection
|
|
GetProductCategoriesByProductId ( int productId, bool showHidden = false ) : IList |
Gets a product category mapping collection
|
|
GetProductCategoryById ( int productCategoryId ) : Nop.Core.Domain.Catalog.ProductCategory |
Gets a product category mapping
|
|
GetTotalNumberOfFeaturedProducts ( int categoryId ) : int |
Get a total number of featured products by category identifier
|
|
InsertCategory ( |
Inserts category
|
|
InsertProductCategory ( Nop.Core.Domain.Catalog.ProductCategory productCategory ) : void |
Inserts a product category mapping
|
|
UpdateCategory ( Category category ) : void |
Updates the category
|
|
UpdateHasDiscountsApplied ( Category category ) : void |
Update HasDiscountsApplied property (used for performance optimization)
|
|
UpdateProductCategory ( ProductCategory productCategory ) : void |
Updates the product category mapping
|
public CategoryService ( ICacheManager cacheManager, IRepository |
||
cacheManager | ICacheManager | Cache manager |
categoryRepository | IRepository |
Category repository |
productCategoryRepository | IRepository |
ProductCategory repository |
productRepository | IRepository |
Product repository |
aclRepository | IRepository |
ACL record repository |
workContext | IWorkContext | Work context |
eventPublisher | IEventPublisher | Event publisher |
return | System |
public DeleteCategory ( |
||
category | Category | |
return | void |
public DeleteProductCategory ( Nop.Core.Domain.Catalog.ProductCategory productCategory ) : void | ||
productCategory | Nop.Core.Domain.Catalog.ProductCategory | Product category |
return | void |
public GetAllCategories ( string categoryName = "", int pageIndex, int pageSize = int.MaxValue, bool showHidden = false ) : IPagedList |
||
categoryName | string | Category name |
pageIndex | int | Page index |
pageSize | int | Page size |
showHidden | bool | A value indicating whether to show hidden records |
return | IPagedList |
public GetAllCategoriesByParentCategoryId ( int parentCategoryId, bool showHidden = false ) : IList |
||
parentCategoryId | int | Parent category identifier |
showHidden | bool | A value indicating whether to show hidden records |
return | IList |
public GetAllCategoriesDisplayedOnHomePage ( ) : IList |
||
return | IList |
public GetCategoryById ( int categoryId ) : |
||
categoryId | int | Category identifier |
return |
public GetProductCategoriesByCategoryId ( int categoryId, int pageIndex, int pageSize, bool showHidden = false ) : IPagedList |
||
categoryId | int | Category identifier |
pageIndex | int | Page index |
pageSize | int | Page size |
showHidden | bool | A value indicating whether to show hidden records |
return | IPagedList |
public GetProductCategoriesByProductId ( int productId, bool showHidden = false ) : IList |
||
productId | int | Product identifier |
showHidden | bool | A value indicating whether to show hidden records |
return | IList |
public GetProductCategoryById ( int productCategoryId ) : Nop.Core.Domain.Catalog.ProductCategory | ||
productCategoryId | int | Product category mapping identifier |
return | Nop.Core.Domain.Catalog.ProductCategory |
public GetTotalNumberOfFeaturedProducts ( int categoryId ) : int | ||
categoryId | int | Category identifier |
return | int |
public InsertCategory ( |
||
category | Category | |
return | void |
public InsertProductCategory ( Nop.Core.Domain.Catalog.ProductCategory productCategory ) : void | ||
productCategory | Nop.Core.Domain.Catalog.ProductCategory | >Product category mapping |
return | void |
public UpdateCategory ( Category category ) : void | ||
category | Category | Category |
return | void |
public UpdateHasDiscountsApplied ( Category category ) : void | ||
category | Category | Category |
return | void |
public UpdateProductCategory ( ProductCategory productCategory ) : void | ||
productCategory | ProductCategory | >Product category mapping |
return | void |