public static TPropType ÖznitelikAl <TPropType>(this TemelVarlık varlık,
                                                        string key, IGenelÖznitelikServisi genelÖznitelikServisi, int siteId = 0)
        {
            if (varlık == null)
            {
                throw new ArgumentNullException("varlık");
            }

            string keyGroup = varlık.GetUnproxiedEntityType().Name;

            var props = genelÖznitelikServisi.VarlıkİçinÖznitelikleriAl(varlık.Id, keyGroup);

            if (props == null)
            {
                return(default(TPropType));
            }
            props = props.Where(x => x.SiteId == siteId).ToList();
            if (!props.Any())
            {
                return(default(TPropType));
            }

            var prop = props.FirstOrDefault(ga =>
                                            ga.Key.Equals(key, StringComparison.InvariantCultureIgnoreCase));

            if (prop == null || string.IsNullOrEmpty(prop.Value))
            {
                return(default(TPropType));
            }

            return(GenelYardımcı.To <TPropType>(prop.Value));
        }
        //private readonly IWorkflowMessageService _workflowMessageService;
        //private readonly LocalizationSettings _localizationSettings;

        #endregion

        #region Ctor
        public HariciYetkilendirmeServisi(KullanıcıAyarları kullanıcıAyarları,
                                          HariciYetkilendirmeAyarları hariciYetkilendirmeAyarları,
                                          IKimlikDoğrulamaServisi yetkilendirmeServisi,
                                          IKullanıcıİşlemServisi kullanıcıİşlemServisi,
                                          IKullanıcıKayıtServisi kullanıcıKayıtServisi,
                                          IKullanıcıServisi kullanıcıServisi,
                                          IOlayYayınlayıcı olayYayınlayıcı,
                                          IGenelÖznitelikServisi genelÖznitelikServisi,
                                          //ILocalizationService localizationService,
                                          IEklentiBulucu eklentiBulucu,
                                          IDepo <HariciKimlikDoğrulamaKaydı> hariciYetkilendirmeKaydıDepo,
                                          //IShoppingCartService shoppingCartService,
                                          ISiteContext siteContext,
                                          IWorkContext workContext)
        {
            this._kullanıcıAyarları           = kullanıcıAyarları;
            this._hariciYetkilendirmeAyarları = hariciYetkilendirmeAyarları;
            this._yetkilendirmeServisi        = yetkilendirmeServisi;
            this._kullanıcıİşlemServisi       = kullanıcıİşlemServisi;
            this._kullanıcıKayıtServisi       = kullanıcıKayıtServisi;
            this._kullanıcıServisi            = kullanıcıServisi;
            this._olayYayınlayıcı             = olayYayınlayıcı;
            this._genelÖznitelikServisi       = genelÖznitelikServisi;
            //this._localizationService = localizationService;
            this._eklentiBulucu = eklentiBulucu;
            this._hariciYetkilendirmeKaydıDepo = hariciYetkilendirmeKaydıDepo;
            //this._shoppingCartService = shoppingCartService;
            this._siteContext = siteContext;
            this._workContext = workContext;
            //this._workflowMessageService = workflowMessageService;
            //this._localizationSettings = localizationSettings;
        }
Beispiel #3
0
 public ForumServisi(
     IDepo <ForumGrubu> forumGrupDepo,
     IDepo <Forum> forumDepo,
     IDepo <ForumSayfası> forumSayfaDepo,
     IDepo <ForumGirdisi> forumGirdisiDepo,
     IDepo <ForumGirdisiOyu> forumGirdiOyuDepo,
     IDepo <ÖzelMesaj> forumÖzelMesajDepo,
     IDepo <ForumAboneliği> forumAboneliğiDepo,
     ForumAyarları _forumAyarları,
     IDepo <Kullanıcı> kullanıcıDepo,
     IÖnbellekYönetici önbellekYönetici,
     IGenelÖznitelikServisi genelÖznitelikServisi,
     IKullanıcıServisi kullanıcıServisi,
     IWorkContext workContext,
     IMesajServisi mesajServisi,
     IOlayYayınlayıcı olayYayınlayıcı)
 {
     this._forumGrupDepo         = forumGrupDepo;
     this._forumDepo             = forumDepo;
     this._forumSayfaDepo        = forumSayfaDepo;
     this._forumGirdisiDepo      = forumGirdisiDepo;
     this._forumÖzelMesajDepo    = forumÖzelMesajDepo;
     this._forumAboneliğiDepo    = forumAboneliğiDepo;
     this._forumAyarları         = _forumAyarları;
     this._kullanıcıDepo         = kullanıcıDepo;
     this._önbellekYönetici      = önbellekYönetici;
     this._genelÖznitelikServisi = genelÖznitelikServisi;
     this._kullanıcıServisi      = kullanıcıServisi;
     this._workContext           = workContext;
     this._mesajServisi          = mesajServisi;
     this._olayYayınlayıcı       = olayYayınlayıcı;
 }
Beispiel #4
0
 public SonZiyaretEdilenSayfaFilter(KullanıcıAyarları kullanıcıAyarları,
                                    IGenelÖznitelikServisi genelÖznitelikServisi,
                                    IWebYardımcısı webHelper,
                                    IWorkContext workContext)
 {
     this._kullanıcıAyarları     = kullanıcıAyarları;
     this._genelÖznitelikServisi = genelÖznitelikServisi;
     this._webHelper             = webHelper;
     this._workContext           = workContext;
 }
Beispiel #5
0
 public TarihYardımcısı(IWorkContext workContext,
                        IGenelÖznitelikServisi genelÖznitelikServisi,
                        TarihAyarları tarihAyarları,
                        IAyarlarServisi ayarlarServisi
                        )
 {
     this._workContext           = workContext;
     this._genelÖznitelikServisi = genelÖznitelikServisi;
     this._tarihAyarları         = tarihAyarları;
     this._ayarlarServisi        = ayarlarServisi;
 }
Beispiel #6
0
 public TemaContext(IWorkContext workContext,
                    ISiteContext siteContext,
                    IGenelÖznitelikServisi genelÖznitelikServisi,
                    SiteBilgiAyarları siteBilgiAyarları,
                    ITemaSağlayıcı temaSağlayıcı)
 {
     this._workContext           = workContext;
     this._siteContext           = siteContext;
     this._genelÖznitelikServisi = genelÖznitelikServisi;
     this._siteBilgiAyarları     = siteBilgiAyarları;
     this._temaSağlayıcı         = temaSağlayıcı;
 }
Beispiel #7
0
 public TemaContext(IGenelÖznitelikServisi genericAttributeService,
                    ISiteContext storeContext,
                    ITemaSağlayıcı temaSağlayıcı,
                    IWorkContext workContext,
                    SiteBilgiAyarları storeInformationSettings)
 {
     this._genelÖznitelikServisi = genericAttributeService;
     this._siteContext           = storeContext;
     this._temaSağlayıcı         = temaSağlayıcı;
     this._workContext           = workContext;
     this._siteBilgiAyarları     = storeInformationSettings;
 }
Beispiel #8
0
 public WebWorkContext(HttpContextBase httpContext,
                       IKullanıcıServisi KullanıcıService,
                       ISiteContext storeContext,
                       IGenelÖznitelikServisi genericAttributeService,
                       IKullanıcıAracıYardımcısı userAgentHelper,
                       IKimlikDoğrulamaServisi kimlikDoğrulamaServisi)
 {
     this._httpContext             = httpContext;
     this._KullanıcıService        = KullanıcıService;
     this._storeContext            = storeContext;
     this._genericAttributeService = genericAttributeService;
     this._userAgentHelper         = userAgentHelper;
     this._kimlikDoğrulamaServisi  = kimlikDoğrulamaServisi;
 }
Beispiel #9
0
        public GenelModelFactory(IKategoriServisi categoryService,
                                 ISayfalarServisi topicService,
                                 ILanguageService languageService,
                                 ILocalizationService localizationService,
                                 IWorkContext workContext,
                                 ISiteContext storeContext,
                                 ITemaContext themeContext,
                                 ITemaSağlayıcı themeProvider,
                                 IForumServisi forumservice,
                                 IGenelÖznitelikServisi genericAttributeService,
                                 IWebYardımcısı webHelper,
                                 IİzinServisi permissionService,
                                 IStatikÖnbellekYönetici cacheManager,
                                 ISayfaHeadOluşturucu pageHeadBuilder,
                                 IResimServisi pictureService,
                                 IHostingEnvironment hostingEnvironment,

                                 KatalogAyarları catalogSettings,
                                 SiteBilgiAyarları storeInformationSettings,
                                 GenelAyarlar commonSettings,
                                 BlogAyarları blogSettings,
                                 ForumAyarları forumSettings,
                                 LocalizationSettings localizationSettings)
        {
            this._categoryService         = categoryService;
            this._topicService            = topicService;
            this._languageService         = languageService;
            this._localizationService     = localizationService;
            this._workContext             = workContext;
            this._storeContext            = storeContext;
            this._themeContext            = themeContext;
            this._themeProvider           = themeProvider;
            this._genericAttributeService = genericAttributeService;
            this._webHelper                = webHelper;
            this._permissionService        = permissionService;
            this._cacheManager             = cacheManager;
            this._pageHeadBuilder          = pageHeadBuilder;
            this._pictureService           = pictureService;
            this._hostingEnvironment       = hostingEnvironment;
            this._catalogSettings          = catalogSettings;
            this._storeInformationSettings = storeInformationSettings;
            this._commonSettings           = commonSettings;
            this._blogSettings             = blogSettings;
            this._forumSettings            = forumSettings;
            this._localizationSettings     = localizationSettings;
        }
 public WebWorkContext(IHttpContextAccessor httpContextAccessor,
                       IKullanıcıServisi KullanıcıService,
                       ISiteContext storeContext,
                       IGenelÖznitelikServisi genericAttributeService,
                       IKullanıcıAracıYardımcısı userAgentHelper,
                       IKimlikDoğrulamaServisi kimlikDoğrulamaServisi,
                       LocalizationSettings localizationSettings,
                       ILanguageService languageService,
                       ISiteMappingServisi siteMappingService)
 {
     this._httpContextAccessor     = httpContextAccessor;
     this._KullanıcıService        = KullanıcıService;
     this._storeContext            = storeContext;
     this._genericAttributeService = genericAttributeService;
     this._userAgentHelper         = userAgentHelper;
     this._kimlikDoğrulamaServisi  = kimlikDoğrulamaServisi;
     this._localizationSettings    = localizationSettings;
     this._languageService         = languageService;
     this._siteMappingService      = siteMappingService;
 }
 public KullanıcıKayıtServisi(IKullanıcıServisi kullanıcıServisi,
                              IŞifrelemeServisi şifrelemeServisi,
                              IAbonelikServisi abonelikServisi,
                              ISiteServisi siteServisi,
                              //IÖdülPuanıServisi ödülPuanıServisi,
                              IWorkContext workContext,
                              IGenelÖznitelikServisi genelÖznitelikServisi,
                              //IWorkflowMessageService workflowMessageService,
                              IOlayYayınlayıcı olayYayınlayıcı,
                              //ÖdülPuanıAarları ödülPuanıAyarları,
                              KullanıcıAyarları kullanıcıAyarları)
 {
     this._kullanıcıServisi      = kullanıcıServisi;
     this._şifrelemeServisi      = şifrelemeServisi;
     this._abonelikServisi       = abonelikServisi;
     this._siteServisi           = siteServisi;
     this._genelÖznitelikServisi = genelÖznitelikServisi;
     this._workContext           = workContext;
     this._olayYayınlayıcı       = olayYayınlayıcı;
     this._kullanıcıAyarları     = kullanıcıAyarları;
 }
Beispiel #12
0
 public KullanıcıController(IKullanıcıModelFabrikası kullanıcıModelFabrikası,
                            KullanıcıAyarları kullanıcıAyarları,
                            IWorkContext workContext,
                            IKimlikDoğrulamaServisi kimlikDoğrulamaServisi,
                            IOlayYayınlayıcı olayYayınlayıcı,
                            IKullanıcıServisi kullanıcıServisi,
                            ISiteContext siteContext,
                            IKullanıcıKayıtServisi kullanıcıKayıtServisi,
                            IGenelÖznitelikServisi genelÖznitelikServisi,
                            IWebYardımcısı webYardımcısı,
                            SiteBilgiAyarları siteBilgiAyarları,
                            IİzinServisi izinServisi,
                            ITarihYardımcısı tarihYardımcısı,
                            IAçıkYetkilendirmeServisi açıkYetkilendirmeServisi,
                            ISiteServisi siteServisi,
                            IBültenAbonelikServisi bültenAbonelikServisi,
                            IÜlkeServisi ülkeServisi,
                            IKullanıcıİşlemServisi kullanıcıİşlemServisi)
 {
     this._kullanıcıModelFabrikası  = kullanıcıModelFabrikası;
     this._kullanıcıAyarları        = kullanıcıAyarları;
     this._workContext              = workContext;
     this._kimlikDoğrulamaServisi   = kimlikDoğrulamaServisi;
     this._olayYayınlayıcı          = olayYayınlayıcı;
     this._kullanıcıServisi         = kullanıcıServisi;
     this._siteContext              = siteContext;
     this._kullanıcıKayıtServisi    = kullanıcıKayıtServisi;
     this._genelÖznitelikServisi    = genelÖznitelikServisi;
     this._webYardımcısı            = webYardımcısı;
     this._siteBilgiAyarları        = siteBilgiAyarları;
     this._izinServisi              = izinServisi;
     this._tarihYardımcısı          = tarihYardımcısı;
     this._açıkYetkilendirmeServisi = açıkYetkilendirmeServisi;
     this._siteServisi              = siteServisi;
     this._bültenAbonelikServisi    = bültenAbonelikServisi;
     this._ülkeServisi              = ülkeServisi;
     this._kullanıcıİşlemServisi    = kullanıcıİşlemServisi;
 }
Beispiel #13
0
 public KullanıcıServisi(IÖnbellekYönetici önbellekYönetici,
                         IDepo <Kullanıcı> kullanıcıDepo,
                         IDepo <KullanıcıŞifre> kullanıcıŞifreDepo,
                         IDepo <KullanıcıRolü> kullanıcıRolDepo,
                         IDepo <GenelÖznitelik> göDepo,
                         IGenelÖznitelikServisi genelÖznitelikServisi,
                         IDataSağlayıcı dataSağlayıcı,
                         IDbContext dbContext,
                         IOlayYayınlayıcı olayYayınlayıcı,
                         KullanıcıAyarları kullanıcıAyarları,
                         GenelAyarlar genelAyarlar)
 {
     this._önbellekYönetici      = önbellekYönetici;
     this._kullanıcıDepo         = kullanıcıDepo;
     this._kulanıcıŞifreDepo     = kullanıcıŞifreDepo;
     this._kullanıcıRolDepo      = kullanıcıRolDepo;
     this._göDepo                = göDepo;
     this._genelÖznitelikServisi = genelÖznitelikServisi;
     this._dataSağlayıcı         = dataSağlayıcı;
     this._dbContext             = dbContext;
     this._olayYayınlayıcı       = olayYayınlayıcı;
     this._kullanıcıAyarları     = kullanıcıAyarları;
     this._genelAyarlar          = genelAyarlar;
 }