public CategoryService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics, List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics, List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics, List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics, List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics, List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager, IRestrictedItemAccessManager accessManager, ICategoryDataService dataSrv, IUnitOfWork unitOfWork, IUrlBuilder urlBuilder, IFieldDefentionFacade fieldDefentionFacade, IMetaDataDataService metaDataService, IEntityDataService entityDataService) : base(baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics, baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager, accessManager, dataSrv) { _dataSrv = dataSrv; _unitOfWork = unitOfWork; _urlBuilder = urlBuilder; _fieldDefentionFacade = fieldDefentionFacade; _metaDataService = metaDataService; _entityDataService = entityDataService; }
public FileService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics, List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics, List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics, List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics, List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics, List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager, IRestrictedItemAccessManager accessManager, IFileDataDataService dataSrv, IMetaDataDataService metaDataService, IFileManager fileManager, IUnitOfWork unitOfWork) : base( baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics, baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager, accessManager, dataSrv) { _fileDataService = dataSrv; _metaDataService = metaDataService; _fileManager = fileManager; _unitOfWork = unitOfWork; }
public ProductCategoryService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics, List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics, List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics, List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics, List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics, List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager, IRestrictedItemAccessManager accessManager, IProductCategoryDataService categoryData, IUnitOfWork unitOfWork, IFieldDefentionFacade fieldDefentionFacade, IMetaDataDataService metaDataService, IProductDataService productDataService) : base( baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics, baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager, accessManager, categoryData) { _categoryData = categoryData; _unitOfWork = unitOfWork; _fieldDefentionFacade = fieldDefentionFacade; _metaDataService = metaDataService; _productDataService = productDataService; }
public MenuService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics, List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics, List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics, List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics, List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics, List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager, IRestrictedItemAccessManager accessManager, IMenuDataService dataSrv, IUnitOfWork unitOfWork, IMenuItemMetaDataHandler metaDataHandler, IMetaDataDataService metaDataService) : base( baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics, baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager, accessManager, dataSrv) { _menuDataSrv = dataSrv; _unitOfWork = unitOfWork; _metaDataHandler = metaDataHandler; _metaDataService = metaDataService; _menuItemsDataSet = _unitOfWork.Set <MenuItem>(); }
public static CategoryLiquidViewModel AsLiquidAdaptedWithEntitiesAndMetaData(this Category category, PaginatedEntities entities, IMetaDataDataService metaData) { var adapted = category.AsLiquidAdaptedWithEntities(entities.Entities); adapted.CurrentPage = entities.CurrentPage; adapted.AllPagesCount = entities.AllPagesCount; adapted.Metas = metaData.Query.Where(x => x.TargetId == category.Id && x.TargetType == Category.MetaTypeName).MapToLiquid(); return(adapted); }
public static async Task <List <CategoryViewModel> > ToViewModelListIncludeMetaDataAsync(this IQueryable <Category> model, IMetaDataDataService metaDataService) { var items = Mapper.Map <List <CategoryViewModel> >(await model.ToListAsync()); var ids = items.SelectDeep(x => x.Id); metaDataService.Query.Where(x => ids.Contains(x.TargetId) && x.TargetType == Category.MetaTypeName).ToList().ForEach(x => { items.ForEachDeep(c => { if (c.Id == x.TargetId) { c.MetaData.Add(x.MapToViewModel()); } }); }); return(items); }
public MenuItemMetaDataHandler(IUnitOfWork unitOfWork, IMetaDataDataService metaDataService) { _unitOfWork = unitOfWork; _metaDataService = metaDataService; }
public MenuWidget() { _menuDataService = Container.GetInstance <IMenuDataService>(); _decorators = Container.GetInstance <List <MenuItemLiquidDecorator> >(); _metaDataService = Container.GetInstance <IMetaDataDataService>(); }
public EnitiyMetaDataHandler(IMetaDataDataService metas) { _metas = metas; }