public MomentController(ISessionProvider<AefSession> sessionProvider, IMomentManager momentManager, IMomentFileManager momentFileManager, IMomentLikeManager momentLikeManager, IMomentCommentManager momentCommentManager, IAccessTimeManager accessTimeManager, IStaffManager staffManager, IOrgManager orgManager) : base(sessionProvider) { Args.NotNull(momentManager, nameof(momentManager)); Args.NotNull(momentFileManager, nameof(momentFileManager)); Args.NotNull(momentManager, nameof(momentManager)); Args.NotNull(staffManager, nameof(staffManager)); Args.NotNull(accessTimeManager, nameof(accessTimeManager)); Args.NotNull(orgManager, nameof(orgManager)); m_MomentManager = momentManager; m_MomentFileManager = momentFileManager; m_MomentLikeManager = momentLikeManager; m_MomentCommentManager = momentCommentManager; m_SessionProvider = sessionProvider; m_StaffManager = staffManager; m_AccessTimeManager = accessTimeManager; m_OrgManager = orgManager; }
public static InvitationIsEnabledResult Check(IOrgManager orgManager, Guid orgId) { if (orgManager == null) throw new ArgumentNullException(nameof(orgManager)); var org = orgManager.FindOrg(orgId); return Check(org, "当前组织不允许员工要求成员,请联系管理员."); }
/// <summary> 根据 <see cref="OrgEntity.Name"/> 检查是否<b>不</b>存在相应的 <see cref="OrgEntity"/>. </summary> public static OrgNotExistsResult Check(IOrgManager orgManager, String orgName) { if (orgManager == null) throw new ArgumentNullException(nameof(orgManager)); if (String.IsNullOrEmpty(orgName)) throw new ArgumentNullException(nameof(orgName)); OrgEntity org = orgManager.FindOrgByName(orgName); return Check(org, $"已存在名称为[{orgName}]的组织."); }
public OrgController(ISessionScopeFactory sessionScopeFactory, IStaffManager staffManager, IOrgManager orgManager, IAccountManager accountManager ) : base(sessionScopeFactory) { if (sessionScopeFactory == null) throw new ArgumentNullException(nameof(sessionScopeFactory)); if (orgManager == null) throw new ArgumentNullException(nameof(orgManager)); if (staffManager == null) throw new ArgumentNullException(nameof(staffManager)); if (accountManager == null) throw new ArgumentNullException(nameof(accountManager)); m_SessionScopeFactory = sessionScopeFactory; m_OrgManager = orgManager; m_StaffManager = staffManager; m_AccountManager = accountManager; }
public StaffInvController(ISessionProvider<AefSession> sessionProvider, IStaffInvManager staffInvManager, IOrgManager orgManager, INotificationManager notificationManager,IConfiguration config) : base(sessionProvider) { if (orgManager == null) throw new ArgumentException(nameof(orgManager)); if (staffInvManager == null) throw new ArgumentException(nameof(staffInvManager)); if (notificationManager == null) throw new ArgumentException(nameof(notificationManager)); if (config == null) throw new ArgumentException(nameof(config)); m_StaffInvManager = staffInvManager; m_OrgManager = orgManager; m_Configuration = config; m_NotificationManager = notificationManager; }
public MessageController(ISessionProvider<AefSession> sessionProvider, INotificationManager notificationManager, IIMService imService, IAccountManager accountManager, IOrgManager orgManager, ITaskManager taskManager) : base(sessionProvider) { if (notificationManager == null) throw new ArgumentException(nameof(notificationManager)); if (accountManager == null) throw new ArgumentNullException(nameof(accountManager)); if (orgManager == null) throw new ArgumentException(nameof(orgManager)); if (taskManager == null) throw new ArgumentException(nameof(taskManager)); if (imService == null) throw new ArgumentException(nameof(imService)); m_NotificationManager = notificationManager; m_OrgManager = orgManager; m_AccountManager = accountManager; m_TaskManager = taskManager; m_IMService = imService; }
static BllFactory() { //ASP.NET Identity //Define Ninject Dependency Injection Bindings Kernel.Bind <IGeneralCodeManager>().To <GeneraCodeManager>(); Kernel.Bind <ISubCodeManager>().To <SubCodeManager>(); Kernel.Bind <IOpportunityManager>().To <OpportunityManager>(); Kernel.Bind <IindividualDetailsManager>().To <IndividualDetailsManager>(); Kernel.Bind <IEventManager>().To <EventManager>(); Kernel.Bind <IJobManager>().To <JobManager>(); Kernel.Bind <IDimThemesManager>().To <DimThemesManager>(); Kernel.Bind <ITrainingManager>().To <TrainingManager>(); Kernel.Bind <IDataServiceManager>().To <DataServiceManager>(); Kernel.Bind <IThemesVariablesManager>().To <ThemesVariablesManager>(); Kernel.Bind <IReportsManager>().To <ReportsManager>(); Kernel.Bind <IFactStatisticalDataManager>().To <FactStatisticalDataManager>(); Kernel.Bind <IAspNetUsersManager>().To <AspNetUsersManager>(); Kernel.Bind <IPagesActionsManager>().To <PagesActionsManager>(); Kernel.Bind <IPagesManager>().To <PagesManager>(); Kernel.Bind <IConfigCenterManager>().To <ConfigCenterManager>(); Kernel.Bind <IOrganizationContactInfoManager>().To <OrganizationContactInfoManager>(); Kernel.Bind <IOrganizationManager>().To <OrganizationManager>(); Kernel.Bind <IRequestLogManager>().To <RequestLogManager>(); Kernel.Bind <IFeedbackManager>().To <FeedbackManager>(); Kernel.Bind <ITestimonialsManager>().To <TestimonialsManager>(); Kernel.Bind <IPortalUsersManager>().To <PortalUsersManager>(); Kernel.Bind <INewsManager>().To <NewsManager>(); Kernel.Bind <IIndividualManager>().To <IndividualManager>(); Kernel.Bind <IPartnerManager>().To <PartnerManager>(); Kernel.Bind <IIndManager>().To <IndManager>(); Kernel.Bind <IOrgManager>().To <OrgManager>(); Kernel.Bind <IChatLogManager>().To <ChatLogManager>(); Kernel.Bind <IConceptNonFormalTrainingManager>().To <ConceptNonFormalTrainingManager>(); Kernel.Bind <ILmisReportsRepository>().To <LmisReportsRepository>(); Kernel.Bind <IObsceneWordsManager>().To <ObsceneWordsManager>(); Kernel.Bind <IListOfEmailsManager>().To <ListOfEmailsManager>(); Kernel.Bind <IHelpfulLinkManager>().To <HelpfulLinkManager>(); Kernel.Bind <IQualificationsManager>().To <QualificationsManager>(); Kernel.Bind <IOfficeManager>().To <OfficeManager>(); Kernel.Bind <IUnionManager>().To <UnionManager>(); Kernel.Bind <IFaqManager>().To <FaqManager>(); Kernel.Bind <IConceptsDefinitionsManager>().To <ConceptsDefinitionsManager>(); Kernel.Bind <IEmployersTrainingProvidersManager>().To <EmployersTrainingProvidersManager>(); Kernel.Bind <IRecruitmentAgenciesManager>().To <RecruitmentAgenciesManager>(); //Serve BLL Objects as Singletons GeneralCodeMgr = Kernel.Get <IGeneralCodeManager>(); SubCodeMgr = Kernel.Get <ISubCodeManager>(); OpportunityMgr = Kernel.Get <IOpportunityManager>(); IndividualDetailsMgr = Kernel.Get <IindividualDetailsManager>(); EventMgr = Kernel.Get <IEventManager>(); JobMgr = Kernel.Get <IJobManager>(); DimThemesMgr = Kernel.Get <IDimThemesManager>(); TrainingMgr = Kernel.Get <ITrainingManager>(); DataServiceMgr = Kernel.Get <IDataServiceManager>(); ThemesVariablesMgr = Kernel.Get <IThemesVariablesManager>(); ReportsMgr = Kernel.Get <IReportsManager>(); FactStatisticalDataMgr = Kernel.Get <IFactStatisticalDataManager>(); AspNetUsersMgr = Kernel.Get <IAspNetUsersManager>(); PagesActionsMgr = Kernel.Get <IPagesActionsManager>(); PagesMgr = Kernel.Get <IPagesManager>(); ConfigCenterMgr = Kernel.Get <IConfigCenterManager>(); OrganizationContactInfoMgr = Kernel.Get <IOrganizationContactInfoManager>(); OrganizationMgr = Kernel.Get <IOrganizationManager>(); RequestLogMgr = Kernel.Get <IRequestLogManager>(); FeedbackMgr = Kernel.Get <IFeedbackManager>(); TestimonialsMgr = Kernel.Get <ITestimonialsManager>(); PortalUsersMgr = Kernel.Get <IPortalUsersManager>(); NewsMgr = Kernel.Get <INewsManager>(); IndividualMgr = Kernel.Get <IIndividualManager>(); PartnersMgr = Kernel.Get <IPartnerManager>(); IndMgr = Kernel.Get <IIndManager>(); OrgMgr = Kernel.Get <IOrgManager>(); ChatLogMgr = Kernel.Get <IChatLogManager>(); ConceptNonFormalTrainingMgr = Kernel.Get <IConceptNonFormalTrainingManager>(); LmisReportsRepo = Kernel.Get <ILmisReportsRepository>(); ObsceneWordsRepo = Kernel.Get <IObsceneWordsManager>(); ListOfEmailsRepo = Kernel.Get <IListOfEmailsManager>(); HelpfulLinkRepo = Kernel.Get <IHelpfulLinkManager>(); QualificationsRepo = Kernel.Get <IQualificationsManager>(); OfficeMgr = Kernel.Get <IOfficeManager>(); UnionMgr = Kernel.Get <IUnionManager>(); FaqMgr = Kernel.Get <IFaqManager>(); ConceptsDefinitionsMgr = Kernel.Get <IConceptsDefinitionsManager>(); EmployersTrainingProvidersMgr = Kernel.Get <IEmployersTrainingProvidersManager>(); RecruitmentAgenciesMgr = Kernel.Get <IRecruitmentAgenciesManager>(); }
public DeptLogicHandler(IOrgManager orgManager, IChangeRecordManager changeManager) { _OrgManager = orgManager; _changeManager = changeManager; }
/// <summary> 根据 <see cref="OrgEntity.Name"/> 返回是否存在相应的 <see cref="IAccount"/>. </summary> /// <returns> 存在时返回 <c>true</c>, 不存在时返回 <c>false</c>. </returns> public static OrgExistsResult Check(IOrgManager orgManager, String orgName) { OrgEntity org = orgManager.FindOrgByName(orgName); return Check(org, $"名称为 [{orgName}]的组织不存在."); }
/// <summary> 根据 <see cref="OrgEntity.Id"/> 返回是否存在相应的 <see cref="OrgEntity"/>. </summary> /// <returns> 存在时返回 <c>true</c>, 不存在时返回 <c>false</c>. </returns> public static OrgExistsResult Check(IOrgManager orgManager, Guid orgId) { OrgEntity org = orgManager.FindOrg(orgId); return Check(org, "不存在对应的组织."); }