Exemplo n.º 1
0
 public SubscribeController(
     ISubscribeService subscribeService,
     IIntranetUserService <IIntranetUser> intranetUserService,
     IActivitiesServiceFactory activitiesServiceFactory) :
     base(subscribeService, intranetUserService, activitiesServiceFactory)
 {
 }
 protected GroupFeedControllerBase(
     ISubscribeService subscribeService,
     IGroupFeedService groupFeedService,
     IActivitiesServiceFactory activitiesServiceFactory,
     IIntranetUserContentProvider intranetUserContentProvider,
     IFeedTypeProvider centralFeedTypeProvider,
     IIntranetUserService <IGroupMember> intranetUserService,
     IGroupFeedContentService groupFeedContentContentService,
     IGroupFeedLinkProvider groupFeedLinkProvider,
     IGroupMemberService groupMemberService,
     IFeedFilterStateService <FeedFiltersState> feedFilterStateService,
     IPermissionsService permissionsService,
     IContextTypeProvider contextTypeProvider,
     IFeedLinkService feedLinkService,
     IFeedFilterService feedFilterService)
     : base(
         subscribeService,
         groupFeedService,
         intranetUserService,
         feedFilterStateService,
         centralFeedTypeProvider,
         contextTypeProvider)
 {
     _groupFeedService               = groupFeedService;
     _activitiesServiceFactory       = activitiesServiceFactory;
     _centralFeedTypeProvider        = centralFeedTypeProvider;
     _intranetUserService            = intranetUserService;
     _groupFeedContentContentService = groupFeedContentContentService;
     _groupMemberService             = groupMemberService;
     _feedFilterStateService         = feedFilterStateService;
     _permissionsService             = permissionsService;
     _feedLinkService   = feedLinkService;
     _feedFilterService = feedFilterService;
 }
Exemplo n.º 3
0
 public GroupFeedController(
     ISubscribeService subscribeService,
     IGroupFeedService groupFeedService,
     IActivitiesServiceFactory activitiesServiceFactory,
     IIntranetUserContentProvider intranetUserContentProvider,
     IFeedTypeProvider centralFeedTypeProvider,
     IIntranetUserService <IGroupMember> intranetUserService,
     IGroupFeedContentService groupFeedContentContentService,
     IGroupFeedLinkProvider groupFeedLinkProvider,
     IGroupMemberService groupMemberService,
     IFeedFilterStateService <FeedFiltersState> feedFilterStateService,
     IActivityTypeProvider activityTypeProvider,
     IPermissionsService permissionsService,
     IContextTypeProvider contextTypeProvider,
     IFeedLinkService feedLinkService,
     IFeedFilterService feedFilterService)
     : base(
         subscribeService,
         groupFeedService,
         activitiesServiceFactory,
         intranetUserContentProvider,
         centralFeedTypeProvider,
         intranetUserService,
         groupFeedContentContentService,
         groupFeedLinkProvider,
         groupMemberService,
         feedFilterStateService,
         permissionsService,
         contextTypeProvider,
         feedLinkService,
         feedFilterService)
 {
     _intranetUserService = intranetUserService;
 }
Exemplo n.º 4
0
 public SubscribeController(ISubscribeService subService, IPackageService pakService, ISetBoxService sbService, IStatusService statusService)
 {
     _subService     = subService;
     _packageService = pakService;
     _setBoxService  = sbService;
     _statusService  = statusService;
 }
Exemplo n.º 5
0
 public FeedFilterService(
     IIntranetUserService <IIntranetUser> intranetUserService,
     ISubscribeService subscribeService)
 {
     _intranetUserService = intranetUserService;
     _subscribeService    = subscribeService;
 }
Exemplo n.º 6
0
 protected CentralFeedControllerBase(
     ICentralFeedService centralFeedService,
     ICentralFeedContentService centralFeedContentService,
     IActivitiesServiceFactory activitiesServiceFactory,
     ISubscribeService subscribeService,
     IIntranetUserService <IIntranetUser> intranetUserService,
     IIntranetUserContentProvider intranetUserContentProvider,
     IFeedTypeProvider centralFeedTypeProvider,
     IFeedLinkService feedLinkService,
     IFeedFilterStateService <FeedFiltersState> feedFilterStateService,
     IPermissionsService permissionsService,
     IActivityTypeProvider activityTypeProvider,
     IContextTypeProvider contextTypeProvider,
     IFeedFilterService centralFeedFilterService)
     : base(subscribeService, centralFeedService, intranetUserService, feedFilterStateService, centralFeedTypeProvider, contextTypeProvider)
 {
     _centralFeedService        = centralFeedService;
     _centralFeedContentService = centralFeedContentService;
     _centralFeedTypeProvider   = centralFeedTypeProvider;
     _feedLinkService           = feedLinkService;
     _feedFilterStateService    = feedFilterStateService;
     _permissionsService        = permissionsService;
     _centralFeedFilterService  = centralFeedFilterService;
     _activitiesServiceFactory  = activitiesServiceFactory;
 }
Exemplo n.º 7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="publishsService"></param>
 /// <param name="receiveEventService"></param>
 /// <param name="subscribeService"></param>
 /// <param name="subscribetionService"></param>
 /// <param name="unitOfWorkManager"></param>
 /// <param name="consultationService"></param>
 /// <param name="orderManageService"></param>
 /// <param name="orderTradeRecordService"></param>
 /// <param name="refundManageService"></param>
 /// <param name="consultationEvaluationService"></param>
 /// <param name="consultationReplyService"></param>
 /// <param name="phoneReplyRecordService"></param>
 /// <param name="hangFireJobService"></param>
 /// <param name="systemParameterService"></param>
 /// <param name="abpSession"></param>
 public EvnetController(IPublishsService publishsService,
                        IReceiveEventService receiveEventService,
                        ISubscribeService subscribeService,
                        ISubscribetionService subscribetionService,
                        IUnitOfWorkManager unitOfWorkManager,
                        IConsultationService consultationService,
                        IOrderManageService orderManageService,
                        IOrderTradeRecordService orderTradeRecordService,
                        IRefundManageService refundManageService,
                        IConsultationEvaluationService consultationEvaluationService,
                        IConsultationReplyService consultationReplyService,
                        IPhoneReplyRecordService phoneReplyRecordService,
                        IHangFireJobService hangFireJobService,
                        ISystemParameterService systemParameterService,
                        IAbpSession abpSession)
 {
     _publishsService               = publishsService;
     _receiveEventService           = receiveEventService;
     _subscribeService              = subscribeService;
     _subscribetionService          = subscribetionService;
     _IabpSession                   = abpSession;
     _unitOfWorkManager             = unitOfWorkManager;
     _consultationService           = consultationService;
     _orderManageService            = orderManageService;
     _orderTradeRecordService       = orderTradeRecordService;
     _refundManageService           = refundManageService;
     _consultationEvaluationService = consultationEvaluationService;
     _consultationReplyService      = consultationReplyService;
     _phoneReplyRecordService       = phoneReplyRecordService;
     _hangFireJobService            = hangFireJobService;
     _systemParameterService        = systemParameterService;
 }
 protected SubscribeControllerBase(
     ISubscribeService subscribeService,
     IIntranetMemberService <IIntranetMember> intranetMemberService,
     IActivitiesServiceFactory activitiesServiceFactory)
 {
     _subscribeService         = subscribeService;
     _intranetMemberService    = intranetMemberService;
     _activitiesServiceFactory = activitiesServiceFactory;
 }
Exemplo n.º 9
0
 public SubscribeController(
     ISubscribeService subscribeService,
     IIntranetMemberService <IntranetMember> intranetMemberService,
     IActivitiesServiceFactory activitiesServiceFactory)
 {
     _subscribeService         = subscribeService;
     _intranetMemberService    = intranetMemberService;
     _activitiesServiceFactory = activitiesServiceFactory;
 }
        public CloseSubscriptionViewModel(Result onResult = null)
        {
            var Scope = Startup.Instance.provider.CreateScope();

            this.subscribeService = Scope.ServiceProvider.GetRequiredService <ISubscribeService>();

            WireCommands();
            IsProgressBarVisible = false;
        }
Exemplo n.º 11
0
 // Constructor
 public SubscribesPageViewModel(ISubscribeService subscribeService, INavigationService navigationService)
 {
     this.subscribeService    = subscribeService;
     this.navigationService   = navigationService;
     this.AddFilterCommand    = new DelegateCommand(AddFilter);
     this.DeleteFilterCommand = new DelegateCommand <object>(DeleteFilter);
     this.Filters             = new ObservableCollection <Filter>();
     this.SelectedItem        = new Filter();
     Update();
 }
Exemplo n.º 12
0
 public BusinessmanProfileViewModel(IMvxNavigationService navigationService,
                                    IProfileService profileService,
                                    ISubscribeService subscribeService,
                                    IServicesService servicesService)
 {
     _navigationService = navigationService;
     _profileService    = profileService;
     _subscribeService  = subscribeService;
     _servicesService   = servicesService;
 }
Exemplo n.º 13
0
 protected FeedControllerBase(
     ISubscribeService subscribeService,
     IFeedService feedService,
     IIntranetUserService <IIntranetUser> intranetUserService,
     IFeedFilterStateService <FeedFiltersState> feedFilterStateService,
     IFeedTypeProvider centralFeedTypeProvider,
     IContextTypeProvider contextTypeProvider) : base(contextTypeProvider)
 {
     _feedService            = feedService;
     _feedFilterStateService = feedFilterStateService;
 }
Exemplo n.º 14
0
 public UserController(IUserService userService
                       , IRolesService rolesService
                       , IWorkerService workerService
                       , ISubscribeService subscribeService
                       , IProjectService projectService)
 {
     this.userService      = userService;
     this.rolesService     = rolesService;
     this.workerService    = workerService;
     this.subscribeService = subscribeService;
     this.projectService   = projectService;
 }
        public SubscriberReportViewModel(Result onResult = null)
        {
            var Scope = Startup.Instance.provider.CreateScope();

            this._subscribeService = Scope.ServiceProvider.GetRequiredService <ISubscribeService>();
            //this._subscribeService = new addon365.WebClient.Service.WebService.Chit.SubsriberService();

            //this._schemService = new addon365.WebClient.Service.WebService.Chit.SchemeService();
            this._schemeService = Scope.ServiceProvider.GetRequiredService <ISchemeService>();
            WireCommands();
            FetchAllAsync();
        }
Exemplo n.º 16
0
 public ChitDueViewModel(Result onResult = null)
 {
     try
     {
         subscribeService = (ISubscribeService)addon365.UI.ViewModel.Startup.Instance.provider.GetService(typeof(ISubscribeService));
         chitDueService   = (IChitDueService)addon365.UI.ViewModel.Startup.Instance.provider.GetService(typeof(IChitDueService));
         WireCommands();
     }
     catch (Exception ex)
     {
         string msg = ex.Message;
     }
 }
Exemplo n.º 17
0
        public SubscribeViewModel()
        {
            WireCommands();
            var Scope = Startup.Instance.provider.CreateScope();


            ChitSubscribe = new ChitSubscribeDomain();
            _dueService   = Scope.ServiceProvider.GetRequiredService <IChitDueService>();;
            // _subscribeService = new SubsriberService();
            _subscribeService = Scope.ServiceProvider.GetRequiredService <ISubscribeService>();;
            FetchSchemesAsync();
            FindAllCustomersAsync();
        }
Exemplo n.º 18
0
        protected void MakeProxy(string endpoindAddress, object callbackinstance)
        {
            var binding = NetSetting.GetBinding();

            EndpointAddress endpointAddress = new EndpointAddress(endpoindAddress);
            InstanceContext context         = new InstanceContext(callbackinstance);

            DuplexChannelFactory <ISubscribeService> channelFactory = new DuplexChannelFactory <ISubscribeService>(new InstanceContext(this), binding, endpointAddress);

            channelFactory.Endpoint.Behaviors.Add(new BusClientBehavior());
            channelFactory.Open();
            _proxy = channelFactory.CreateChannel();
        }
Exemplo n.º 19
0
 public EventsService(
     IIntranetActivityRepository intranetActivityRepository,
     ICacheService cacheService,
     IIntranetMemberService <IntranetMember> intranetMemberService,
     ICommentsService commentsService,
     ILikesService likesService,
     ISubscribeService subscribeService,
     IPermissionsService permissionsService,
     INotificationsService notificationService,
     IMediaHelper mediaHelper,
     IElasticUintraActivityIndex activityIndex,
     IDocumentIndexer documentIndexer,
     IActivityTypeProvider activityTypeProvider,
     IIntranetMediaService intranetMediaService,
     IGroupActivityService groupActivityService,
     IActivityLocationService activityLocationService,
     IActivitySubscribeSettingService activitySubscribeSettingService,
     IActivityLinkPreviewService activityLinkPreviewService,
     IGroupService groupService,
     INotifierDataBuilder notifierDataBuilder,
     IActivityLinkService activityLinkService,
     IIndexerDiagnosticService indexerDiagnosticService,
     IUserTagService userTagService)
     : base(
         intranetActivityRepository,
         cacheService,
         activityTypeProvider,
         intranetMediaService,
         activityLocationService,
         activityLinkPreviewService,
         intranetMemberService,
         permissionsService,
         groupActivityService,
         groupService)
 {
     _commentsService                 = commentsService;
     _likesService                    = likesService;
     _subscribeService                = subscribeService;
     _notificationService             = notificationService;
     _mediaHelper                     = mediaHelper;
     _activityIndex                   = activityIndex;
     _documentIndexer                 = documentIndexer;
     _intranetMediaService            = intranetMediaService;
     _groupActivityService            = groupActivityService;
     _activitySubscribeSettingService = activitySubscribeSettingService;
     _groupService                    = groupService;
     _notifierDataBuilder             = notifierDataBuilder;
     _activityLinkService             = activityLinkService;
     _indexerDiagnosticService        = indexerDiagnosticService;
     _userTagService                  = userTagService;
 }
Exemplo n.º 20
0
 public TravelBlogController(IPostService postService,
                             IFileStreamService fileStreamService,
                             ISubscribeService subscribeService,
                             IMultiLanguageService multiLanguageService,
                             IEmailSender emailSender,
                             IHttpContextAccessor httpContextAccessor,
                             IOptions <CommonSettings> commonSettingsOptions,
                             IWebHelper webHelper,
                             IWorkContext workContext
                             )
 {
     _postService          = postService;
     _fileStreamService    = fileStreamService;
     _subscribeService     = subscribeService;
     _multiLanguageService = multiLanguageService;
     _emailSender          = emailSender;
     _httpContextAccessor  = httpContextAccessor;
     _commonSettings       = commonSettingsOptions.Value;
     _webHelper            = webHelper;
     _workContext          = workContext;
 }
Exemplo n.º 21
0
 public CentralFeedController(
     ICentralFeedService centralFeedService,
     ICentralFeedContentService centralFeedContentService,
     IActivitiesServiceFactory activitiesServiceFactory,
     ISubscribeService subscribeService,
     IIntranetUserService <IGroupMember> intranetUserService,
     IIntranetUserContentProvider intranetUserContentProvider,
     IFeedTypeProvider centralFeedTypeProvider,
     IFeedLinkService feedLinkService,
     IGroupFeedService groupFeedService,
     IFeedActivityHelper feedActivityHelper,
     IFeedFilterStateService <FeedFiltersState> feedFilterStateService,
     IPermissionsService permissionsService,
     UmbracoHelper umbracoHelper,
     IActivityTypeProvider activityTypeProvider,
     IContextTypeProvider contextTypeProvider,
     IFeedFilterService feedFilterService)
     : base(
         centralFeedService,
         centralFeedContentService,
         activitiesServiceFactory,
         subscribeService,
         intranetUserService,
         intranetUserContentProvider,
         centralFeedTypeProvider,
         feedLinkService,
         feedFilterStateService,
         permissionsService,
         activityTypeProvider,
         contextTypeProvider,
         feedFilterService)
 {
     _intranetUserService = intranetUserService;
     _groupFeedService    = groupFeedService;
     _feedActivityHelper  = feedActivityHelper;
 }
Exemplo n.º 22
0
 public LostsController(IDataService dataService, IAuthenticationService authenticationService, ISubscribeService subscribeService)
 {
     this.dataService           = dataService;
     this.authenticationService = authenticationService;
     this.subscribeService      = subscribeService;
 }
Exemplo n.º 23
0
 /// <inheritdoc />
 public SubscribeController(ISubscribeService subscribeService)
 {
     _subscribeService = subscribeService;
 }
Exemplo n.º 24
0
 public CommonController(ISubscribeService subscribeService, IUserContext userContext)
 {
     _subscribeService = subscribeService;
     _userContext = userContext;
 }
 public NewsLettersController(IMapper mapper, ISubscribeService subscribeService)
 {
     _mapper           = mapper;
     _subscribeService = subscribeService;
 }
Exemplo n.º 26
0
 public SubscriptionController(ISubscribeService subscribeService)
 {
     _subscribeService = subscribeService;
 }
Exemplo n.º 27
0
 public ArticlesController(IManageService<Article> manageService, IAdminService adminService, ISubscribeService subscribeService)
 {
     _manageService = manageService;
     _adminService = adminService;
     _subscribeService = subscribeService;
 }
Exemplo n.º 28
0
 public SubscribesController(ISubscribeService subscribeService, IMapper mapper)
 {
     _subscribeService = subscribeService;
     _mapper           = mapper;
 }
Exemplo n.º 29
0
 public FollowCommand(ISubscribeService subscribeService, string follower, string followee)
 {
     _subscribeService = subscribeService;
     _follower = follower;
     _followee = followee;
 }
Exemplo n.º 30
0
 public MessageService(ITopicService topicService, ISubscribeService subscribeService, ILogger logger)
 {
     _topicService     = topicService;
     _subscribeService = subscribeService;
     _logger           = logger;
 }
Exemplo n.º 31
0
 /// <summary>
 /// Structure method
 /// </summary>
 /// <param name="messageService"></param>
 /// <param name="logger"></param>
 /// <param name="context"></param>
 /// <param name="serviceBus"></param>
 /// <param name="configuraton"></param>
 public MessageController(IMessageService messageService, ISubscribeService subscribeService) : base()
 {
     _messageService   = messageService;
     _subscribeService = subscribeService;
 }
Exemplo n.º 32
0
 public RegisterController(ISubscribeService subscribeService)
 {
     this.subscribeService = subscribeService;
 }
Exemplo n.º 33
0
    protected void Page_Load(object sender, EventArgs e)
    {
        i18n = new i18nHelper();
        this.Title = i18n.GetMessage("m261") + " @ " + i18n.GetMessage("m9");
        this.forwardSend.Text = i18n.GetMessage("m78");
        currentUser = WebUtility.GetCurrentKBUser();
        subjectid = currentUser.SubjectId;
        documentService = factory.GetDocumentService();
        categoryService = factory.GetCategoryService();
        ratingService = factory.GetRatingService();
        auditTrailService = factory.GetAuditTrailService();
        wfService = factory.GetWorkflowService();
        hitService = factory.GetHitService();
        documentClassService = factory.GetDocumentClassService();
        subscribeService = WebUtility.Repository.GetSubscribeService();
        docId = WebUtility.GetIntegerParameter("documentId");
        folderId = WebUtility.GetIntegerParameter("folderId", -1);
        ver = WebUtility.GetIntegerParameter("ver", 0);
        latestVersionNumber = buildVersionInfo();
        currentUserOutputConfig = WebUtility.GetUserOutputConfig(currentUser.SubjectId);
        attachMode = currentUserOutputConfig.AttachMode;
        showUsedTags = ConfigurationManager.AppSettings["ShowUsedTags"] != null ? ConfigurationManager.AppSettings["ShowUsedTags"] : "false";
        tagsAutoComplete = ConfigurationManager.AppSettings["TagsAutoComplete"] != null ? ConfigurationManager.AppSettings["TagsAutoComplete"] : "false";
        tagsSuggestListLen = ConfigurationManager.AppSettings["TagsSuggestListLen"] != null ? ConfigurationManager.AppSettings["TagsSuggestListLen"] : "10";
        subscriptionConfirm = Convert.ToBoolean(ConfigurationManager.AppSettings["SubscriptionConfirm"] != null ? ConfigurationManager.AppSettings["SubscriptionConfirm"].ToString() : "true");
        autoSubscription = Convert.ToBoolean(ConfigurationManager.AppSettings["AutoSubscription"] != null ? ConfigurationManager.AppSettings["AutoSubscription"].ToString() : "true");
        allowSendToNoPrivilegeUser = Convert.ToBoolean(ConfigurationManager.AppSettings["AllowSendToNoPrivilegeUser"] != null ? ConfigurationManager.AppSettings["AllowSendToNoPrivilegeUser"].ToString() : "true");
        TagMaxLength = ConfigurationManager.AppSettings["TagMaxLength"] != null ? ConfigurationManager.AppSettings["TagMaxLength"] : "30";
        IsSafari = (Request.Browser.Browser.ToLower().Equals("applemac-safari") && !Request.UserAgent.ToLower().Contains("chrome"));
        userHadSubscribeResource = subscribeService.UserHadSubscribedResource(currentUser.SubjectId, (int)currentUser.SubjectType, docId, (int)SubscribeRecord.ResourceType.Document);
        mailService = WebUtility.Repository.GetMailService();
        kbuserService = WebUtility.Repository.GetKBUserService();
        folderService = WebUtility.Repository.GetFolderService();
        forwardService = WebUtility.Repository.GetForwardService();
        if (ver == 0)
        {
            doc = documentService.GetDocument(currentUser, docId);
            ver = latestVersionNumber;
        }
        else
        {
            doc = documentService.GetDocument(currentUser, docId, ver);
        }
        readVersion.Text = ver.ToString();
        latestVersion.Text = latestVersionNumber.ToString();
        if (ver != latestVersionNumber)
        {
            Panel1.Visible = false;
        }
        if (folderId == -1)
        {
            FolderInfo f = documentService.GetParentFolders(currentUser, docId)[0];
            folderId = f.FolderId;
        }

        buildCategoriesList();
        buildDocumentView();

        #region For teamKube Xml Render
        if (IsACLiteSubjectProvider)
        {
            renderSpecXml = RenderSpecificXML(currentUser, doc.DocumentId, ver);
        }
        #endregion

        if(!doc.DocumentClass.ClassName.Trim().ToLower().Equals("filesystem"))
        {
            buildFileList();
        }

        buildRatingSummary();
        buildAuditTrailInfo();
        createHitInfo();
        buildRelatedTagList(20);
        buildRelatedDocumentList();
        checkWorkflowInvolved();
        isDiffDocClass = IsDiffDocumentClass();
        strDiffDocClass = String.Format(i18n.GetMessage("m801"), doc.DocumentClass.ClassName, i18n.GetMessage("m802"), i18n.GetMessage("m803"));

        isBuiltinDocumentClass = (doc.DocumentClass.IsBuiltIn == true) ? "true" : "false";
    }
Exemplo n.º 34
0
 public FollowCommand(ISubscribeService subscribeService, string follower, string followee)
 {
     _subscribeService = subscribeService;
     _follower         = follower;
     _followee         = followee;
 }
Exemplo n.º 35
0
 public AdminService(UserManager<User> userManager, ISubscribeService subscribeService)
 {
     _userManager = userManager;
     _subscribeService = subscribeService;
 }
Exemplo n.º 36
0
 public SubscribeController(IEventService EventService, ISubscribeService SubscribeService)
 {
     _EventService     = EventService;
     _SubscribeService = SubscribeService;
 }