Exemple #1
0
        /// <summary>
        /// Recupera il service dato il service Code,
        /// evitando 50 switch in tutte le funzioni a cui poi tocca "correre dietro" in caso di aggiunta di un servizio!!!
        /// </summary>
        /// <param name="serviceCode"></param>
        /// <param name="dc"></param>
        /// <returns></returns>
        private iLinkedService ServiceGet(string serviceCode, iDataContext dc, iDataContext ic = null)
        {
            iLinkedService service = null;

            switch (serviceCode)
            {
            //Percorso formativo
            case Services_EduPath.Codex:
                service = new lm.Comol.Modules.EduPath.BusinessLogic.Service(dc);
                break;

            //Community Diary
            case lm.Comol.Core.BaseModules.CommunityDiary.Domain.ModuleCommunityDiary.UniqueID:
                service = new lm.Comol.Core.BaseModules.CommunityDiary.Business.ServiceCommunityDiary(dc);
                break;

            //Project Management
            case lm.Comol.Modules.Standard.ProjectManagement.Domain.ModuleProjectManagement.UniqueCode:
                service = new lm.Comol.Modules.Standard.ProjectManagement.Business.ServiceProjectManagement(dc);
                break;

            //Bandi
            case lm.Comol.Modules.CallForPapers.Domain.ModuleCallForPaper.UniqueCode:
                service = new lm.Comol.Modules.CallForPapers.Business.ServiceCallOfPapers(dc);
                break;

            //Richieste adesione
            case lm.Comol.Modules.CallForPapers.Domain.ModuleRequestForMembership.UniqueCode:
                service = new lm.Comol.Modules.CallForPapers.Business.ServiceRequestForMembership(dc);
                break;

            //Ticket
            case lm.Comol.Core.BaseModules.Tickets.ModuleTicket.UniqueCode:
                service = new lm.Comol.Core.BaseModules.Tickets.TicketService(dc);
                break;

            ////Webinar (WebEx)
            //case "Webinar":     //ToDo: usare UniqueCode
            //    iApplicationContext ac = new ApplicationContext();
            //    ac.DataContext = dc;
            //    service = new WebExService(ac);
            //    break;

            //Questionari
            case COL_Questionario.ModuleQuestionnaire.UniqueID:
                service = new COL_Questionario.Business.ServiceQuestionnaire(dc);
                break;

            //Repository - SCORM
            case lm.Comol.Core.FileRepository.Domain.ModuleRepository.UniqueCode:
                service = new lm.Comol.Core.BaseModules.FileRepository.Business.ServiceRepositoryScorm(dc, ic);
                break;


            default:
                break;
            }

            return(service);
        }
Exemple #2
0
 public ServiceCommunityDiary(iDataContext oDC)
 {
     Manager              = new BaseModuleManager(oDC);
     _Context             = new ApplicationContext();
     _Context.DataContext = oDC;
     this.UC              = null;
     _ServiceRepository   = new FileRepository.Business.ServiceRepository(_Context);
 }
Exemple #3
0
 public ServiceInLineTags(iDataContext oDC)
     : base(oDC)
 {
     this.Manager = new BaseModuleManager(oDC);
     _Context     = new ApplicationContext()
     {
         DataContext = oDC
     };
 }
Exemple #4
0
 public FileInfoService(iDataContext oDC)
     : base(oDC)
 {
     Manager  = new BaseModuleManager(oDC);
     _Context = new ApplicationContext {
         DataContext = oDC
     };
     repositoryService = new ServiceRepository(oDC);
     coreApiService    = new CoreAPIService(oDC);
 }
Exemple #5
0
 public ServiceDashboard(iDataContext oDC)
     : base(oDC)
 {
     this.Manager = new BaseModuleManager(oDC);
     _Context     = new ApplicationContext()
     {
         DataContext = oDC
     };
     _service = new Tag.Business.ServiceTags(oDC);
 }
Exemple #6
0
 public oMService(oMSystemParameter SysParameter, iDataContext oDC)
     : base(SysParameter, oDC)
 {
     if (SysParameter.GetType() != typeof(oMSystemParameter))
     {
         throw new ArgumentException("Wrong SysParameter Type. Must be oMSystemParameter!");
     }
     base.SysParameter = SysParameter;
     this.DAL          = new DAL.WbGenericDAL(oDC);
     ServiceTemplate   = new Core.TemplateMessages.Business.TemplatesForOtherService(oDC);
 }
Exemple #7
0
        public TicketService(iDataContext oDC)
            : base(oDC)
        {
            this.Manager = new BaseModuleManager(oDC);

            //Provo prima con solo oDC...
            this.ServiceTemplate = new Core.TemplateMessages.Business.TemplatesForOtherService(oDC);

            _Context = new ApplicationContext()
            {
                DataContext = oDC
            };
            _ServiceRepository = new FileRepository.Business.ServiceRepository(oDC);
        }
Exemple #8
0
 public ManagerCallOfPapers(iDataContext oDC)
 {
     this.DC = oDC;
 }
 public TokenService(iDataContext oContext)
     : base(oContext)        //, string xmlPath
 {
 }
Exemple #10
0
 public ServiceGlossary(iDataContext oDC)
 {
     DC           = oDC;
     this.Manager = new BaseManager(oDC);
     this.UC      = null;
 }
Exemple #11
0
 public BaseManager(iApplicationContext oContext)
 {
     this.DC = oContext.DataContext;
 }
Exemple #12
0
 public BaseManager(iDataContext oDC)
 {
     this.DC = oDC;
 }
 public UrlAuthenticationService(iDataContext oDC) : base(oDC)
 {
 }
Exemple #14
0
 public ModuleTemplateMessageService(iDataContext oDC)
     : base(oDC)
 {
 }