C# 클래스 Nop.Services.Catalog.CategoryService

Category service
상속: ICategoryService
파일 보기 프로젝트 열기: emilianionascu/NopCommerce

공개 메소드들

메소드 설명
CategoryService ( ICacheManager cacheManager, IRepository categoryRepository, IRepository productCategoryRepository, IRepository productRepository, IRepository aclRepository, IWorkContext workContext, IEventPublisher eventPublisher ) : System

Ctor

DeleteCategory ( Category category ) : void

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 ) : Category

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 ( Category category ) : void

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

메소드 상세

CategoryService() 공개 메소드

Ctor
public CategoryService ( ICacheManager cacheManager, IRepository categoryRepository, IRepository productCategoryRepository, IRepository productRepository, IRepository aclRepository, IWorkContext workContext, IEventPublisher eventPublisher ) : System
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
리턴 System

DeleteCategory() 공개 메소드

Delete category
public DeleteCategory ( Category category ) : void
category Nop.Core.Domain.Catalog.Category Category
리턴 void

DeleteProductCategory() 공개 메소드

Deletes a product category mapping
public DeleteProductCategory ( Nop.Core.Domain.Catalog.ProductCategory productCategory ) : void
productCategory Nop.Core.Domain.Catalog.ProductCategory Product category
리턴 void

GetAllCategories() 공개 메소드

Gets all categories
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
리턴 IPagedList

GetAllCategoriesByParentCategoryId() 공개 메소드

Gets all categories filtered by parent category identifier
public GetAllCategoriesByParentCategoryId ( int parentCategoryId, bool showHidden = false ) : IList
parentCategoryId int Parent category identifier
showHidden bool A value indicating whether to show hidden records
리턴 IList

GetAllCategoriesDisplayedOnHomePage() 공개 메소드

Gets all categories displayed on the home page
public GetAllCategoriesDisplayedOnHomePage ( ) : IList
리턴 IList

GetCategoryById() 공개 메소드

Gets a category
public GetCategoryById ( int categoryId ) : Category
categoryId int Category identifier
리턴 Nop.Core.Domain.Catalog.Category

GetProductCategoriesByCategoryId() 공개 메소드

Gets product category mapping collection
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
리턴 IPagedList

GetProductCategoriesByProductId() 공개 메소드

Gets a product category mapping collection
public GetProductCategoriesByProductId ( int productId, bool showHidden = false ) : IList
productId int Product identifier
showHidden bool A value indicating whether to show hidden records
리턴 IList

GetProductCategoryById() 공개 메소드

Gets a product category mapping
public GetProductCategoryById ( int productCategoryId ) : Nop.Core.Domain.Catalog.ProductCategory
productCategoryId int Product category mapping identifier
리턴 Nop.Core.Domain.Catalog.ProductCategory

GetTotalNumberOfFeaturedProducts() 공개 메소드

Get a total number of featured products by category identifier
public GetTotalNumberOfFeaturedProducts ( int categoryId ) : int
categoryId int Category identifier
리턴 int

InsertCategory() 공개 메소드

Inserts category
public InsertCategory ( Category category ) : void
category Nop.Core.Domain.Catalog.Category Category
리턴 void

InsertProductCategory() 공개 메소드

Inserts a product category mapping
public InsertProductCategory ( Nop.Core.Domain.Catalog.ProductCategory productCategory ) : void
productCategory Nop.Core.Domain.Catalog.ProductCategory >Product category mapping
리턴 void

UpdateCategory() 공개 메소드

Updates the category
public UpdateCategory ( Category category ) : void
category Category Category
리턴 void

UpdateHasDiscountsApplied() 공개 메소드

Update HasDiscountsApplied property (used for performance optimization)
public UpdateHasDiscountsApplied ( Category category ) : void
category Category Category
리턴 void

UpdateProductCategory() 공개 메소드

Updates the product category mapping
public UpdateProductCategory ( ProductCategory productCategory ) : void
productCategory ProductCategory >Product category mapping
리턴 void