本文整理汇总了C#中IAclService类的典型用法代码示例。如果您正苦于以下问题:C# IAclService类的具体用法?C# IAclService怎么用?C# IAclService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IAclService类属于命名空间,在下文中一共展示了IAclService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CategoryController
public CategoryController(ICategoryService categoryService, ICategoryTemplateService categoryTemplateService,
IManufacturerService manufacturerService, IProductService productService,
ICustomerService customerService,
IUrlRecordService urlRecordService, IPictureService pictureService, ILanguageService languageService,
ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
IDiscountService discountService, IPermissionService permissionService,
IAclService aclService,
IExportManager exportManager, IWorkContext workContext,
ICustomerActivityService customerActivityService, AdminAreaSettings adminAreaSettings,
CatalogSettings catalogSettings)
{
this._categoryService = categoryService;
this._categoryTemplateService = categoryTemplateService;
this._manufacturerService = manufacturerService;
this._productService = productService;
this._customerService = customerService;
this._urlRecordService = urlRecordService;
this._pictureService = pictureService;
this._languageService = languageService;
this._localizationService = localizationService;
this._localizedEntityService = localizedEntityService;
this._discountService = discountService;
this._permissionService = permissionService;
this._aclService = aclService;
this._exportManager = exportManager;
this._workContext = workContext;
this._customerActivityService = customerActivityService;
this._adminAreaSettings = adminAreaSettings;
this._catalogSettings = catalogSettings;
}
示例2: ShoppingCartService
/// <summary>
/// Ctor
/// </summary>
/// <param name="sciRepository">Shopping cart repository</param>
/// <param name="workContext">Work context</param>
/// <param name="currencyService">Currency service</param>
/// <param name="productService">Product settings</param>
/// <param name="localizationService">Localization service</param>
/// <param name="productAttributeParser">Product attribute parser</param>
/// <param name="checkoutAttributeService">Checkout attribute service</param>
/// <param name="checkoutAttributeParser">Checkout attribute parser</param>
/// <param name="priceFormatter">Price formatter</param>
/// <param name="customerService">Customer service</param>
/// <param name="shoppingCartSettings">Shopping cart settings</param>
/// <param name="eventPublisher">Event publisher</param>
/// <param name="permissionService">Permission service</param>
/// <param name="aclService">ACL service</param>
public ShoppingCartService(IRepository<ShoppingCartItem> sciRepository,
IWorkContext workContext, ICurrencyService currencyService,
IProductService productService, ILocalizationService localizationService,
IProductAttributeParser productAttributeParser,
ICheckoutAttributeService checkoutAttributeService,
ICheckoutAttributeParser checkoutAttributeParser,
IPriceFormatter priceFormatter,
ICustomerService customerService,
ShoppingCartSettings shoppingCartSettings,
IEventPublisher eventPublisher,
IPermissionService permissionService,
IAclService aclService)
{
this._sciRepository = sciRepository;
this._workContext = workContext;
this._currencyService = currencyService;
this._productService = productService;
this._localizationService = localizationService;
this._productAttributeParser = productAttributeParser;
this._checkoutAttributeService = checkoutAttributeService;
this._checkoutAttributeParser = checkoutAttributeParser;
this._priceFormatter = priceFormatter;
this._customerService = customerService;
this._shoppingCartSettings = shoppingCartSettings;
this._eventPublisher = eventPublisher;
this._permissionService = permissionService;
this._aclService = aclService;
}
示例3: CheckoutAttributeController
public CheckoutAttributeController(ICheckoutAttributeService checkoutAttributeService,
ILanguageService languageService,
ILocalizationService localizationService,
ITaxCategoryService taxCategoryService,
IWorkContext workContext,
ICurrencyService currencyService,
ICustomerActivityService customerActivityService,
CurrencySettings currencySettings,
IMeasureService measureService,
MeasureSettings measureSettings,
IPermissionService permissionService,
IStoreService storeService,
IStoreMappingService storeMappingService,
ICustomerService customerService,
IAclService aclService)
{
this._checkoutAttributeService = checkoutAttributeService;
this._languageService = languageService;
this._localizationService = localizationService;
this._taxCategoryService = taxCategoryService;
this._workContext = workContext;
this._currencyService = currencyService;
this._customerActivityService = customerActivityService;
this._currencySettings = currencySettings;
this._measureService = measureService;
this._measureSettings = measureSettings;
this._permissionService = permissionService;
this._storeService = storeService;
this._storeMappingService = storeMappingService;
this._customerService = customerService;
this._aclService = aclService;
}
示例4: ManufacturerController
public ManufacturerController(ICategoryService categoryService, IManufacturerService manufacturerService,
IManufacturerTemplateService manufacturerTemplateService, IProductService productService,
ICustomerService customerService, IStoreService storeService,
IStoreMappingService storeMappingService,
IUrlRecordService urlRecordService, IPictureService pictureService,
ILanguageService languageService, ILocalizationService localizationService,
ILocalizedEntityService localizedEntityService, IExportManager exportManager,
ICustomerActivityService customerActivityService, IAclService aclService,
IPermissionService permissionService,
AdminAreaSettings adminAreaSettings, CatalogSettings catalogSettings)
{
this._categoryService = categoryService;
this._manufacturerTemplateService = manufacturerTemplateService;
this._manufacturerService = manufacturerService;
this._productService = productService;
this._customerService = customerService;
this._storeService = storeService;
this._storeMappingService = storeMappingService;
this._urlRecordService = urlRecordService;
this._pictureService = pictureService;
this._languageService = languageService;
this._localizationService = localizationService;
this._localizedEntityService = localizedEntityService;
this._exportManager = exportManager;
this._customerActivityService = customerActivityService;
this._aclService = aclService;
this._permissionService = permissionService;
this._adminAreaSettings = adminAreaSettings;
this._catalogSettings = catalogSettings;
}
示例5: CategoryService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="categoryRepository">Category repository</param>
/// <param name="productCategoryRepository">ProductCategory repository</param>
/// <param name="productRepository">Product repository</param>
/// <param name="aclRepository">ACL record repository</param>
/// <param name="storeMappingRepository">Store mapping repository</param>
/// <param name="workContext">Work context</param>
/// <param name="storeContext">Store context</param>
/// <param name="eventPublisher">Event publisher</param>
public CategoryService(ICacheManager cacheManager,
IRepository<Category> categoryRepository,
IRepository<ProductCategory> productCategoryRepository,
IRepository<Product> productRepository,
IRepository<AclRecord> aclRepository,
IRepository<StoreMapping> storeMappingRepository,
IWorkContext workContext,
IStoreContext storeContext,
IEventPublisher eventPublisher,
IStoreMappingService storeMappingService,
IAclService aclService,
Lazy<IEnumerable<ICategoryNavigationFilter>> navigationFilters,
ICustomerService customerService,
IProductService productService,
IStoreService storeService)
{
this._cacheManager = cacheManager;
this._categoryRepository = categoryRepository;
this._productCategoryRepository = productCategoryRepository;
this._productRepository = productRepository;
this._aclRepository = aclRepository;
this._storeMappingRepository = storeMappingRepository;
this._workContext = workContext;
this._storeContext = storeContext;
this._eventPublisher = eventPublisher;
this._storeMappingService = storeMappingService;
this._aclService = aclService;
this._navigationFilters = navigationFilters;
this._customerService = customerService;
this._productService = productService;
this._storeService = storeService;
this.QuerySettings = DbQuerySettings.Default;
}
示例6: TopicController
public TopicController(ITopicService topicService,
ILanguageService languageService,
ILocalizedEntityService localizedEntityService,
ILocalizationService localizationService,
IPermissionService permissionService,
IStoreService storeService,
IStoreMappingService storeMappingService,
IUrlRecordService urlRecordService,
ITopicTemplateService topicTemplateService,
ICustomerService customerService,
ICustomerActivityService customerActivityService,
IAclService aclService)
{
this._topicService = topicService;
this._languageService = languageService;
this._localizedEntityService = localizedEntityService;
this._localizationService = localizationService;
this._permissionService = permissionService;
this._storeService = storeService;
this._storeMappingService = storeMappingService;
this._urlRecordService = urlRecordService;
this._topicTemplateService = topicTemplateService;
this._customerService = customerService;
this._customerActivityService = customerActivityService;
this._aclService = aclService;
}
示例7: MiscFacebookShopController
public MiscFacebookShopController(IAclService aclService,
ICacheManager cacheManager,
CatalogSettings catalogSettings,
ICategoryService categoryService,
ICurrencyService currencyService,
ILocalizationService localizationService,
IPermissionService permissionService,
IPictureService pictureService,
IPriceCalculationService priceCalculationService,
IPriceFormatter priceFormatter,
IProductService productService,
IStoreContext storeContext,
IStoreMappingService storeMappingService,
ITaxService taxService,
IWorkContext workContext)
{
this._aclService = aclService;
this._cacheManager = cacheManager;
this._catalogSettings = catalogSettings;
this._categoryService = categoryService;
this._currencyService = currencyService;
this._localizationService = localizationService;
this._permissionService = permissionService;
this._pictureService = pictureService;
this._priceCalculationService = priceCalculationService;
this._priceFormatter = priceFormatter;
this._productService = productService;
this._storeContext = storeContext;
this._storeMappingService = storeMappingService;
this._taxService = taxService;
this._workContext = workContext;
}
示例8: GetCategoryBreadCrumb
/// <summary>
/// Get category breadcrumb
/// </summary>
/// <param name="category">Category</param>
/// <param name="categoryService">Category service</param>
/// <param name="aclService">ACL service</param>
/// <param name="storeMappingService">Store mapping service</param>
/// <param name="showHidden">A value indicating whether to load hidden records</param>
/// <returns>Category breadcrumb </returns>
public static IList<Category> GetCategoryBreadCrumb(this Category category,
ICategoryService categoryService,
IAclService aclService,
IStoreMappingService storeMappingService,
bool showHidden = false)
{
if (category == null)
throw new ArgumentNullException("category");
var result = new List<Category>();
//used to prevent circular references
var alreadyProcessedCategoryIds = new List<int>();
while (category != null && //not null
!category.Deleted && //not deleted
(showHidden || category.Published) && //published
(showHidden || aclService.Authorize(category)) && //ACL
(showHidden || storeMappingService.Authorize(category)) && //Store mapping
!alreadyProcessedCategoryIds.Contains(category.Id)) //prevent circular references
{
result.Add(category);
alreadyProcessedCategoryIds.Add(category.Id);
category = categoryService.GetCategoryById(category.ParentCategoryId);
}
result.Reverse();
return result;
}
示例9: SelectSellController
public SelectSellController(IProductService productService,
IProductTemplateService productTemplateService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
ICustomerService customerService,
IUrlRecordService urlRecordService,
IWorkContext workContext,
ILanguageService languageService,
ILocalizationService localizationService,
ILocalizedEntityService localizedEntityService,
ISpecificationAttributeService specificationAttributeService,
IPictureService pictureService,
ITaxCategoryService taxCategoryService,
IProductTagService productTagService,
ICopyProductService copyProductService,
IPdfService pdfService,
IExportManager exportManager,
IImportManager importManager,
ICustomerActivityService customerActivityService,
IPermissionService permissionService,
IAclService aclService,
IStoreService storeService,
IOrderService orderService,
IStoreMappingService storeMappingService,
IVendorService vendorService,
IShippingService shippingService,
IShipmentService shipmentService,
ICurrencyService currencyService,
CurrencySettings currencySettings,
IMeasureService measureService,
MeasureSettings measureSettings,
AdminAreaSettings adminAreaSettings,
IDateTimeHelper dateTimeHelper,
IDiscountService discountService,
IProductAttributeService productAttributeService,
IBackInStockSubscriptionService backInStockSubscriptionService,
IShoppingCartService shoppingCartService,
IProductAttributeFormatter productAttributeFormatter,
IProductAttributeParser productAttributeParser,
IDownloadService downloadService,
IStoreContext storeContext,
IRepository<StoreMapping> storeMapping)
{
_workContext = workContext;
_productService = productService;
_pictureService = pictureService;
_localizationService = localizationService;
_categoryService = categoryService;
_manufacturerService = manufacturerService;
_storeService = storeService;
_shippingService = shippingService;
_vendorService = vendorService;
_storeMappingService = storeMappingService;
_storeContext = storeContext;
_storeMapping = storeMapping;
}
示例10: ShoppingCartService
public ShoppingCartService(IRepository<ShoppingCartItem> sciRepository,
IWorkContext workContext, IStoreContext storeContext,
ICurrencyService currencyService,
IProductService productService, ILocalizationService localizationService,
IProductAttributeParser productAttributeParser,
global::Nop.Services.Orders.ICheckoutAttributeService checkoutAttributeService,
global::Nop.Services.Orders.ICheckoutAttributeParser checkoutAttributeParser,
IPriceFormatter priceFormatter,
ICustomerService customerService,
ShoppingCartSettings shoppingCartSettings,
IEventPublisher eventPublisher,
IPermissionService permissionService,
IAclService aclService,
IStoreMappingService storeMappingService,
IGenericAttributeService genericAttributeService,
IProductAttributeService productAttributeService,
PromoSettings promoSettings) :
base( sciRepository,
workContext,
storeContext,
currencyService,
productService,
localizationService,
productAttributeParser,
checkoutAttributeService,
checkoutAttributeParser,
priceFormatter,
customerService,
shoppingCartSettings,
eventPublisher,
permissionService,
aclService,
storeMappingService,
genericAttributeService,
productAttributeService)
{
this._sciRepository = sciRepository;
this._workContext = workContext;
this._storeContext = storeContext;
this._currencyService = currencyService;
this._productService = productService;
this._localizationService = localizationService;
this._productAttributeParser = productAttributeParser;
this._checkoutAttributeService = checkoutAttributeService;
this._checkoutAttributeParser = checkoutAttributeParser;
this._priceFormatter = priceFormatter;
this._customerService = customerService;
this._shoppingCartSettings = shoppingCartSettings;
this._eventPublisher = eventPublisher;
this._permissionService = permissionService;
this._aclService = aclService;
this._storeMappingService = storeMappingService;
this._genericAttributeService = genericAttributeService;
this._productAttributeService = productAttributeService;
this._promoSettings = promoSettings;
}
示例11: MtProductService
public MtProductService(ICacheManager cacheManager,
IRepository<Product> productRepository,
IRepository<RelatedProduct> relatedProductRepository,
IRepository<CrossSellProduct> crossSellProductRepository,
IRepository<TierPrice> tierPriceRepository,
IRepository<ProductPicture> productPictureRepository,
IRepository<LocalizedProperty> localizedPropertyRepository,
IRepository<AclRecord> aclRepository,
IRepository<StoreMapping> storeMappingRepository,
IRepository<ProductSpecificationAttribute> productSpecificationAttributeRepository,
IRepository<ProductReview> productReviewRepository,
IRepository<ProductWarehouseInventory> productWarehouseInventoryRepository,
IProductAttributeService productAttributeService,
IProductAttributeParser productAttributeParser,
ILanguageService languageService,
IWorkflowMessageService workflowMessageService,
IDataProvider dataProvider,
IDbContext dbContext,
IWorkContext workContext,
IStoreContext storeContext,
LocalizationSettings localizationSettings,
CommonSettings commonSettings,
CatalogSettings catalogSettings,
IEventPublisher eventPublisher,
IAclService aclService,
IStoreMappingService storeMappingService)
{
this._cacheManager = cacheManager;
this._productRepository = productRepository;
this._relatedProductRepository = relatedProductRepository;
this._crossSellProductRepository = crossSellProductRepository;
this._tierPriceRepository = tierPriceRepository;
this._productPictureRepository = productPictureRepository;
this._localizedPropertyRepository = localizedPropertyRepository;
this._aclRepository = aclRepository;
this._storeMappingRepository = storeMappingRepository;
this._productSpecificationAttributeRepository = productSpecificationAttributeRepository;
this._productReviewRepository = productReviewRepository;
this._productWarehouseInventoryRepository = productWarehouseInventoryRepository;
this._productAttributeService = productAttributeService;
this._productAttributeParser = productAttributeParser;
this._languageService = languageService;
this._workflowMessageService = workflowMessageService;
this._dataProvider = dataProvider;
this._dbContext = dbContext;
this._workContext = workContext;
this._storeContext = storeContext;
this._localizationSettings = localizationSettings;
this._commonSettings = commonSettings;
this._catalogSettings = catalogSettings;
this._eventPublisher = eventPublisher;
this._aclService = aclService;
this._storeMappingService = storeMappingService;
}
示例12: CatalogController
public CatalogController(
ICommonServices services,
ICategoryService categoryService,
IManufacturerService manufacturerService,
IProductService productService,
ICategoryTemplateService categoryTemplateService,
IManufacturerTemplateService manufacturerTemplateService,
ICurrencyService currencyService,
IOrderReportService orderReportService,
IProductTagService productTagService,
IRecentlyViewedProductsService recentlyViewedProductsService,
IPictureService pictureService,
IPriceFormatter priceFormatter,
ISpecificationAttributeService specificationAttributeService,
ICompareProductsService compareProductsService,
IGenericAttributeService genericAttributeService,
IAclService aclService,
IStoreMappingService storeMappingService,
MediaSettings mediaSettings,
CatalogSettings catalogSettings,
IFilterService filterService,
CatalogHelper helper)
{
this._services = services;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._productService = productService;
this._categoryTemplateService = categoryTemplateService;
this._manufacturerTemplateService = manufacturerTemplateService;
this._currencyService = currencyService;
this._orderReportService = orderReportService;
this._productTagService = productTagService;
this._recentlyViewedProductsService = recentlyViewedProductsService;
this._compareProductsService = compareProductsService;
this._pictureService = pictureService;
this._priceFormatter = priceFormatter;
this._specificationAttributeService = specificationAttributeService;
this._genericAttributeService = genericAttributeService;
this._aclService = aclService;
this._storeMappingService = storeMappingService;
this._filterService = filterService;
this._mediaSettings = mediaSettings;
this._catalogSettings = catalogSettings;
this._helper = helper;
T = NullLocalizer.Instance;
}
示例13: ProductController
public ProductController(IProductService productService,
IProductTemplateService productTemplateService,
ICategoryService categoryService, IManufacturerService manufacturerService,
ICustomerService customerService,
IUrlRecordService urlRecordService, IWorkContext workContext, ILanguageService languageService,
ILocalizationService localizationService, ILocalizedEntityService localizedEntityService,
ISpecificationAttributeService specificationAttributeService, IPictureService pictureService,
ITaxCategoryService taxCategoryService, IProductTagService productTagService,
ICopyProductService copyProductService, IPdfService pdfService,
IExportManager exportManager, IImportManager importManager,
ICustomerActivityService customerActivityService,
IPermissionService permissionService, IAclService aclService,
IStoreService storeService, IStoreMappingService storeMappingService,
ICurrencyService currencyService, CurrencySettings currencySettings,
IMeasureService measureService, MeasureSettings measureSettings,
PdfSettings pdfSettings, AdminAreaSettings adminAreaSettings)
{
this._productService = productService;
this._productTemplateService = productTemplateService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._customerService = customerService;
this._urlRecordService = urlRecordService;
this._workContext = workContext;
this._languageService = languageService;
this._localizationService = localizationService;
this._localizedEntityService = localizedEntityService;
this._specificationAttributeService = specificationAttributeService;
this._pictureService = pictureService;
this._taxCategoryService = taxCategoryService;
this._productTagService = productTagService;
this._copyProductService = copyProductService;
this._pdfService = pdfService;
this._exportManager = exportManager;
this._importManager = importManager;
this._customerActivityService = customerActivityService;
this._permissionService = permissionService;
this._aclService = aclService;
this._storeService = storeService;
this._storeMappingService = storeMappingService;
this._currencyService = currencyService;
this._currencySettings = currencySettings;
this._measureService = measureService;
this._measureSettings = measureSettings;
this._pdfSettings = pdfSettings;
this._adminAreaSettings = adminAreaSettings;
}
示例14: ManufacturerController
public ManufacturerController(ICategoryService categoryService,
IManufacturerService manufacturerService,
IManufacturerTemplateService manufacturerTemplateService,
IProductService productService,
ICustomerService customerService,
IStoreService storeService,
IStoreMappingService storeMappingService,
IUrlRecordService urlRecordService,
IPictureService pictureService,
ILanguageService languageService,
ILocalizationService localizationService,
ILocalizedEntityService localizedEntityService,
IExportManager exportManager,
IDiscountService discountService,
ICustomerActivityService customerActivityService,
IVendorService vendorService,
IAclService aclService,
IPermissionService permissionService,
CatalogSettings catalogSettings,
IWorkContext workContext,
IImportManager importManager,
ICacheManager cacheManager)
{
this._categoryService = categoryService;
this._manufacturerTemplateService = manufacturerTemplateService;
this._manufacturerService = manufacturerService;
this._productService = productService;
this._customerService = customerService;
this._storeService = storeService;
this._storeMappingService = storeMappingService;
this._urlRecordService = urlRecordService;
this._pictureService = pictureService;
this._languageService = languageService;
this._localizationService = localizationService;
this._localizedEntityService = localizedEntityService;
this._exportManager = exportManager;
this._discountService = discountService;
this._customerActivityService = customerActivityService;
this._vendorService = vendorService;
this._aclService = aclService;
this._permissionService = permissionService;
this._catalogSettings = catalogSettings;
this._workContext = workContext;
this._importManager = importManager;
this._cacheManager = cacheManager;
}
示例15: TopicController
public TopicController(ITopicService topicService,
ILocalizationService localizationService,
IWorkContext workContext,
IStoreContext storeContext,
ICacheManager cacheManager,
IStoreMappingService storeMappingService,
IAclService aclService,
ITopicTemplateService topicTemplateService)
{
this._topicService = topicService;
this._workContext = workContext;
this._storeContext = storeContext;
this._localizationService = localizationService;
this._cacheManager = cacheManager;
this._storeMappingService = storeMappingService;
this._aclService = aclService;
this._topicTemplateService = topicTemplateService;
}