Beispiel #1
0
 internal Archive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     ILinkRepository linkRep,
     IExtendFieldRepository extendRep,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     int id,
     string strId,
     int categoryId,
     string title)
     : base(
         contentRep,
         extendRep,
         categoryRep,
         templateRep,
         linkRep,
         id,
         categoryId,
         title
         )
 {
     this.StrId        = strId;
     this._archiveRep  = archiveRep;
     this._templateRep = templateRep;
 }
Beispiel #2
0
 internal Archive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     ILinkRepository linkRep,
     IExtendFieldRepository extendRep,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     int id,
     string strId,
     int categoryId,
     string title)
     : base(
         contentRep,
         extendRep,
         categoryRep,
         templateRep,
         linkRep,
         id,
         categoryId,
         title
         )
 {
     this.StrId = strId;
     this._archiveRep = archiveRep;
     this._templateRep = templateRep;
 }
Beispiel #3
0
 internal Category(ICategoryRepository rep,IExtendFieldRepository extendRep,ITemplateRepository tmpRep, int id,ISite site)
 {
     this.Site = site;
     this._rep = rep;
     this.Id = id;
     this._extendRep = extendRep;
     this._tempRep = tmpRep;
 }
Beispiel #4
0
 internal Category(ICategoryRepository rep, IExtendFieldRepository extendRep, ITemplateRepository tmpRep, int id, ISite site)
 {
     this.Site       = site;
     this._rep       = rep;
     this.Id         = id;
     this._extendRep = extendRep;
     this._tempRep   = tmpRep;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="categoryRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="tempRep"></param>
 /// <param name="categoryId"></param>
 /// <param name="site"></param>
 /// <returns></returns>
 public ICategory CreateCategory(
     ICategoryRepository categoryRep,
     IExtendFieldRepository extendRep,
     ITemplateRepository tempRep,
     int categoryId,
     ISite site)
 {
     return new Category(categoryRep, extendRep, tempRep,categoryId, site);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="categoryRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="tempRep"></param>
 /// <param name="categoryId"></param>
 /// <param name="site"></param>
 /// <returns></returns>
 public ICategory CreateCategory(
     ICategoryRepo categoryRep,
     ISiteRepo siteRepo,
     IExtendFieldRepository extendRep,
     ITemplateRepo tempRep,
     CmsCategoryEntity value)
 {
     return(new Category(categoryRep, siteRepo, extendRep, tempRep, value));
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="categoryRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="tempRep"></param>
 /// <param name="categoryId"></param>
 /// <param name="site"></param>
 /// <returns></returns>
 public ICategory CreateCategory(
     ICategoryRepository categoryRep,
     IExtendFieldRepository extendRep,
     ITemplateRepository tempRep,
     int categoryId,
     ISite site)
 {
     return(new Category(categoryRep, extendRep, tempRep, categoryId, site));
 }
Beispiel #8
0
 public ArchiveService(
     IContentRepository contentRep,
     ISiteRepository siteRep,
     IExtendFieldRepository extendRep
     )
 {
     this._contentRep = contentRep;
     this._siteRep = siteRep;
     this._extendRep = extendRep;
 }
Beispiel #9
0
 public SiteRepository(
     IExtendFieldRepository extendFieldRepository,
     ICategoryRepository categoryRepository,
     ITemplateRepository tempRep
     )
 {
     this._extendFieldRepository = extendFieldRepository;
     this._categoryRep           = categoryRepository;
     this._tempRep = tempRep;
 }
Beispiel #10
0
 public ArchiveService(
     IContentRepository contentRep,
     ISiteRepository siteRep,
     IExtendFieldRepository extendRep
     )
 {
     this._contentRep = contentRep;
     this._siteRep    = siteRep;
     this._extendRep  = extendRep;
 }
Beispiel #11
0
 public ArchiveService(
     IContentRepository contentRep,
     ICategoryRepo catRepo,
     IExtendFieldRepository extendRep
     )
 {
     _contentRep = contentRep;
     _extendRep  = extendRep;
     _catRepo    = catRepo;
 }
Beispiel #12
0
 internal Category(ICategoryRepo rep, ISiteRepo siteRepo,
     IExtendFieldRepository extendRep, ITemplateRepo tmpRep, 
     CmsCategoryEntity value)
 {
     this.value = value;
     this._repo = rep;
     this._extendRep = extendRep;
     this._tempRep = tmpRep;
     this.siteRepo = siteRepo;
 }
Beispiel #13
0
 public SiteRepository(
     IExtendFieldRepository extendFieldRepository,
     ICategoryRepository categoryRepository,
     ITemplateRepository tempRep
     )
 {
     this._extendFieldRepository = extendFieldRepository;
     this._categoryRep = categoryRepository;
     this._tempRep = tempRep;
 }
Beispiel #14
0
 public SiteService(ISiteRepository resp,
     ICategoryRepository categoryRep,
     IExtendFieldRepository extendFieldPository,
     ITemplateRepository tempRep)
 {
     this._resp = resp;
     this._extendResp = extendFieldPository;
     this._categoryRep = categoryRep;
     this._tempRep = tempRep;
 }
Beispiel #15
0
 public SiteService(ISiteRepository resp,
                    ICategoryRepository categoryRep,
                    IExtendFieldRepository extendFieldPository,
                    ITemplateRepository tempRep)
 {
     this._resp        = resp;
     this._extendResp  = extendFieldPository;
     this._categoryRep = categoryRep;
     this._tempRep     = tempRep;
 }
Beispiel #16
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="contentRep"></param>
 /// <param name="archiveRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="categoryRep"></param>
 /// <param name="templateRep"></param>
 /// <param name="linkRep"></param>
 /// <param name="id"></param>
 /// <param name="strId"></param>
 /// <param name="categoryId"></param>
 /// <param name="title"></param>
 /// <returns></returns>
 public IArchive CreateArchive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     IExtendFieldRepository extendRep,
     ICategoryRepo categoryRep,
     ITemplateRepo templateRep,
     CmsArchiveEntity value)
 {
     return(new Archive(contentRep, archiveRep, extendRep,
                        categoryRep, templateRep, value));
 }
Beispiel #17
0
 public BaseContent(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ICategoryRepo categoryRep,
     ITemplateRepo templateRep)
 {
     this._contentRep  = contentRep;
     this._extendRep   = extendRep;
     this._categoryRep = categoryRep;
     this._templateRep = templateRep;
 }
Beispiel #18
0
 public ArchiveService(
     IContentRepository contentRep,
     ISiteRepo siteRep,
     ICategoryRepo catRepo,
     IExtendFieldRepository extendRep
     )
 {
     this._contentRep = contentRep;
     this._siteRep    = siteRep;
     this._extendRep  = extendRep;
     this._catRepo    = catRepo;
 }
Beispiel #19
0
 public ArchiveRepository(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ITemplateRepository templateRep,
     ICategoryRepository categoryRep
     )
 {
     this._contentRep  = contentRep;
     this._extendRep   = extendRep;
     this._templateRep = templateRep;
     this._categoryRep = categoryRep;
 }
Beispiel #20
0
 public SiteRepository(
     IExtendFieldRepository extendFieldRepository,
     ICategoryRepo categoryRepository,
     ITemplateRepo tempRep,
     IUserRepository userRep
     )
 {
     this._extendFieldRepository = extendFieldRepository;
     this._categoryRep           = categoryRepository;
     this._tempRep = tempRep;
     this._userRep = userRep;
 }
Beispiel #21
0
 public ArchiveRepository(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ITemplateRepo templateRep,
     ICategoryRepo categoryRep
     )
 {
     _contentRep  = contentRep;
     _extendRep   = extendRep;
     _templateRep = templateRep;
     _categoryRep = categoryRep;
 }
Beispiel #22
0
        public CategoryRepository(
            //ISiteRepository siteRep,
            ITemplateRepo tempRep,
            IExtendFieldRepository extendRep)
        {
            //
            //NOTE:会循环依赖
            //
            this._extendRep = extendRep;
            this._tempRep   = tempRep;
            //this._siteRep = ObjectFactory.GetInstance<ISiteRepository>();

            // GetCategoryDictionary();
        }
Beispiel #23
0
 public ArchiveRepository(
     IContentRepository contentRep,
     IExtendFieldRepository extendRep,
     ITemplateRepository templateRep,
     ICategoryRepository categoryRep,
     ILinkRepository linkRep
     )
 {
     this._contentRep = contentRep;
     this._extendRep = extendRep;
     this._templateRep = templateRep;
     this._categoryRep = categoryRep;
     this._linkRep = linkRep;
 }
Beispiel #24
0
        public CategoryRepository(
            //ISiteRepository siteRep, 
            ITemplateRepository tempRep,
            IExtendFieldRepository extendRep)
        {
            //
            //NOTE:会循环依赖
            //
            this._extendRep = extendRep;
            this._tempRep = tempRep;
            //this._siteRep = ObjectFactory.GetInstance<ISiteRepository>();

            // GetCategoryDictionary();
        }
Beispiel #25
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="contentRep"></param>
 /// <param name="archiveRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="categoryRep"></param>
 /// <param name="templateRep"></param>
 /// <param name="linkRep"></param>
 /// <param name="id"></param>
 /// <param name="strId"></param>
 /// <param name="categoryId"></param>
 /// <param name="title"></param>
 /// <returns></returns>
 public IArchive CreateArchive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     IExtendFieldRepository extendRep,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     ILinkRepository linkRep,
     int id,
     string strId,
     int categoryId,
     string title)
 {
     return new Archive(contentRep, archiveRep, linkRep, extendRep, categoryRep, templateRep, id, strId, categoryId, title);
 }
Beispiel #26
0
 internal Site(ISiteRepository siteRepository,
               IExtendFieldRepository extendRepository,
               ICategoryRepository categoryRep,
               ITemplateRepository tempRep,
               int siteId,
               string name)
 {
     this.Id                = siteId;
     this.Name              = name;
     this._siteRepository   = siteRepository;
     this._categoryRep      = categoryRep;
     this._extendRepository = extendRepository;
     this._tempRep          = tempRep;
 }
Beispiel #27
0
 internal Site(ISiteRepository siteRepository,
     IExtendFieldRepository extendRepository,
     ICategoryRepository categoryRep,
     ITemplateRepository tempRep,
     int siteId,
     string name)
 {
     this.Id = siteId;
     this.Name = name;
     this._siteRepository = siteRepository;
     this._categoryRep = categoryRep;
     this._extendRepository = extendRepository;
     this._tempRep = tempRep;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="contentRep"></param>
 /// <param name="archiveRep"></param>
 /// <param name="extendRep"></param>
 /// <param name="categoryRep"></param>
 /// <param name="templateRep"></param>
 /// <param name="linkRep"></param>
 /// <param name="id"></param>
 /// <param name="strId"></param>
 /// <param name="categoryId"></param>
 /// <param name="title"></param>
 /// <returns></returns>
 public IArchive CreateArchive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     IExtendFieldRepository extendRep,
     ICategoryRepository categoryRep,
     ITemplateRepository templateRep,
     ILinkRepository linkRep,
     int id,
     string strId,
     int categoryId,
     string title)
 {
     return(new Archive(contentRep, archiveRep, linkRep, extendRep, categoryRep, templateRep, id, strId, categoryId, title));
 }
Beispiel #29
0
 public SiteService(ISiteRepo resp,
                    ICategoryRepo categoryRep,
                    IArchiveRepository archiveRep,
                    IExtendFieldRepository extendFieldPository,
                    IContentRepository contentRep,
                    ITemplateRepo tempRep)
 {
     this.repo         = resp;
     this._extendRep   = extendFieldPository;
     this._categoryRep = categoryRep;
     this._archiveRep  = archiveRep;
     this._contentRep  = contentRep;
     this._tempRep     = tempRep;
 }
Beispiel #30
0
 internal Site(ISiteRepo siteRepository,
               IExtendFieldRepository extendRepository,
               ICategoryRepo categoryRep,
               ITemplateRepo tempRep,
               IUserRepository userRep,
               CmsSiteEntity site)
 {
     this.value             = site;
     this._siteRepository   = siteRepository;
     this._categoryRep      = categoryRep;
     this._extendRepository = extendRepository;
     this._tempRep          = tempRep;
     this._userRep          = userRep;
 }
Beispiel #31
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="resp"></param>
 /// <param name="extendRepository"></param>
 /// <param name="categoryRep"></param>
 /// <param name="tempRep"></param>
 /// <param name="siteid"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public ISite CreateSite(
     ISiteRepository resp,
     IExtendFieldRepository extendRepository,
     ICategoryRepository categoryRep,
     ITemplateRepository tempRep,
     int siteid,
     string name
     )
 {
     return new Site(resp,
         extendRepository,
         categoryRep,
         tempRep,
         siteid,
         name);
 }
Beispiel #32
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="resp"></param>
 /// <param name="extendRepository"></param>
 /// <param name="categoryRep"></param>
 /// <param name="tempRep"></param>
 /// <param name="siteId"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public ISite CreateSite(
     ISiteRepo resp,
     IExtendFieldRepository extendRepository,
     ICategoryRepo categoryRep,
     ITemplateRepo tempRep,
     IUserRepository userRep,
     CmsSiteEntity site
     )
 {
     return(new Site(resp,
                     extendRepository,
                     categoryRep,
                     tempRep,
                     userRep,
                     site));
 }
Beispiel #33
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="resp"></param>
 /// <param name="extendRepository"></param>
 /// <param name="categoryRep"></param>
 /// <param name="tempRep"></param>
 /// <param name="siteid"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public ISite CreateSite(
     ISiteRepository resp,
     IExtendFieldRepository extendRepository,
     ICategoryRepository categoryRep,
     ITemplateRepository tempRep,
     int siteid,
     string name
     )
 {
     return(new Site(resp,
                     extendRepository,
                     categoryRep,
                     tempRep,
                     siteid,
                     name));
 }
Beispiel #34
0
 internal Archive(
     IContentRepository contentRep,
     IArchiveRepository archiveRep,
     IExtendFieldRepository extendRep,
     ICategoryRepo categoryRep,
     ITemplateRepo templateRep,
     CmsArchiveEntity value)
     : base(
         contentRep,
         extendRep,
         categoryRep,
         templateRep
         )
 {
     this._value       = value;
     this._archiveRep  = archiveRep;
     this._templateRep = templateRep;
     this._catRepo     = categoryRep;
 }
Beispiel #35
0
        public BaseContent(
            IContentRepository contentRep,
            IExtendFieldRepository extendRep,
            ICategoryRepository categoryRep,
            ITemplateRepository templateRep,
            int id,
            int categoryId,
            string title)
        {
            this._contentRep  = contentRep;
            this._extendRep   = extendRep;
            this._categoryRep = categoryRep;
            this._templateRep = templateRep;

            this.Id          = id;
            this.Title       = title;
            this._categoryId = categoryId;
            this.Id          = id;
        }
Beispiel #36
0
        public BaseContent(
            IContentRepository contentRep,
            IExtendFieldRepository extendRep,
            ICategoryRepository categoryRep,
            ITemplateRepository templateRep,
            ILinkRepository linkRep,
            int id,
            int categoryId,
            string title)
        {
            this._contentRep  = contentRep;
            this._linkRep     = linkRep;
            this._extendRep   = extendRep;
            this._categoryRep = categoryRep;
            this._templateRep = templateRep;

            this.Id        = id;
            this._category = this._categoryRep.CreateCategory(categoryId, null);
            this.Title     = title;
            this.Id        = id;
        }
Beispiel #37
0
        public BaseContent(
            IContentRepository contentRep,
            IExtendFieldRepository extendRep,
            ICategoryRepository categoryRep,
            ITemplateRepository templateRep,
            ILinkRepository linkRep,
            int id,
            int categoryId,
            string title)
        {
            this._contentRep = contentRep;
            this._linkRep = linkRep;
            this._extendRep = extendRep;
            this._categoryRep = categoryRep;
            this._templateRep = templateRep;

            this.ID = id;
            this._category = this._categoryRep.CreateCategory(categoryId, null);
            this.Title = title;
            this.ID = id;
        }
Beispiel #38
0
 public ExtendManager(IExtendFieldRepository resp, int siteId)
 {
     this.SiteId = siteId;
     this._resp = resp;
 }
Beispiel #39
0
 public ExtendManager(IExtendFieldRepository resp, int siteId)
 {
     this.SiteId = siteId;
     this._rep   = resp;
 }