コード例 #1
0
 public DocViewProvider(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     IDummyClaimsPrincipalFactory <User> claimsPrincipalFactory,
     IFollowManager <Plato.Follows.Models.Follow> followManager,
     IFollowStore <Plato.Follows.Models.Follow> followStore,
     INotificationManager <Doc> notificationManager,
     IAuthorizationService authorizationService,
     IHttpContextAccessor httpContextAccessor,
     IDeferredTaskManager deferredTaskManager,
     IPlatoUserStore <User> platoUserStore,
     IEntityStore <Doc> entityStore,
     IContextFacade contextFacade)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _request = httpContextAccessor.HttpContext.Request;
     _claimsPrincipalFactory = claimsPrincipalFactory;
     _authorizationService   = authorizationService;
     _notificationManager    = notificationManager;
     _deferredTaskManager    = deferredTaskManager;
     _platoUserStore         = platoUserStore;
     _followManager          = followManager;
     _contextFacade          = contextFacade;
     _followStore            = followStore;
     _entityStore            = entityStore;
 }
コード例 #2
0
 public EntityReplySubscriber(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     IDummyClaimsPrincipalFactory <User> claimsPrincipalFactory,
     INotificationManager <TEntityReply> notificationManager,
     IEntityReplyStore <TEntityReply> entityReplyStore,
     IFollowStore <Follows.Models.Follow> followStore,
     IEntityTagStore <EntityTag> entityTagStore,
     IAuthorizationService authorizationService,
     IDeferredTaskManager deferredTaskManager,
     IPlatoUserStore <User> platoUserStore,
     IEntityStore <Topic> entityStore,
     IBroker broker)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _claimsPrincipalFactory       = claimsPrincipalFactory;
     _authorizationService         = authorizationService;
     _deferredTaskManager          = deferredTaskManager;
     _notificationManager          = notificationManager;
     _entityReplyStore             = entityReplyStore;
     _entityTagStore = entityTagStore;
     _platoUserStore = platoUserStore;
     _followStore    = followStore;
     _entityStore    = entityStore;
     _broker         = broker;
 }
コード例 #3
0
 public ReportReplyManager(
     INotificationManager <ReportSubmission <Reply> > notificationManager,
     IPlatoUserStore <User> platoUserStore,
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     IDeferredTaskManager deferredTaskManager)
 {
     _notificationManager          = notificationManager;
     _platoUserStore               = platoUserStore;
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _deferredTaskManager          = deferredTaskManager;
 }
コード例 #4
0
ファイル: ReportTopicManager.cs プロジェクト: vdandrade/Plato
 public ReportTopicManager(
     INotificationManager <ReportSubmission <Topic> > notificationManager,
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     IDeferredTaskManager deferredTaskManager,
     IPlatoUserStore <User> platoUserStore)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _deferredTaskManager          = deferredTaskManager;
     _notificationManager          = notificationManager;
     _platoUserStore = platoUserStore;
 }
コード例 #5
0
ファイル: LoginOperator.cs プロジェクト: radtek/Plato
 public LoginOperator(ISpamChecker spamChecker,
                      INotificationManager <User> notificationManager,
                      IPlatoUserStore <User> platoUserStore,
                      IDeferredTaskManager deferredTaskManager,
                      IUserNotificationTypeDefaults userNotificationTypeDefaults)
 {
     _spamChecker                  = spamChecker;
     _notificationManager          = notificationManager;
     _platoUserStore               = platoUserStore;
     _deferredTaskManager          = deferredTaskManager;
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
 }
コード例 #6
0
 public EditProfileViewProvider(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     INotificationTypeManager notificationTypeManager,
     IHttpContextAccessor httpContextAccessor,
     IPlatoUserStore <User> platoUserStore,
     UserManager <User> userManager)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _notificationTypeManager      = notificationTypeManager;
     _httpContextAccessor          = httpContextAccessor;
     _platoUserStore = platoUserStore;
     _userManager    = userManager;
 }
コード例 #7
0
 public ReplyOperator(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     INotificationManager <Reply> notificationManager,
     IDeferredTaskManager deferredTaskManager,
     IPlatoUserStore <User> platoUserStore,
     IEntityReplyStore <Reply> replyStore,
     ISpamChecker spamChecker)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _notificationManager          = notificationManager;
     _deferredTaskManager          = deferredTaskManager;
     _platoUserStore = platoUserStore;
     _spamChecker    = spamChecker;
     _replyStore     = replyStore;
 }
コード例 #8
0
 public PersonalizerBadgeAwarder(
     ICacheManager cacheManager,
     IDbHelper dbHelper,
     IPlatoUserStore <User> userStore,
     INotificationManager <Badge> notificationManager,
     IUserReputationAwarder userReputationAwarder,
     IUserNotificationTypeDefaults userNotificationTypeDefaults)
 {
     _cacheManager                 = cacheManager;
     _dbHelper                     = dbHelper;
     _userStore                    = userStore;
     _notificationManager          = notificationManager;
     _userReputationAwarder        = userReputationAwarder;
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
 }
コード例 #9
0
ファイル: UserExtensions.cs プロジェクト: turenc/Plato
        public static bool NotificationEnabled(
            this IUser user,
            IUserNotificationTypeDefaults userNotificationTypeDefaults,
            INotificationType notificationType)
        {
            foreach (var userNotificationType in userNotificationTypeDefaults.GetUserNotificationTypesWithDefaults(user))
            {
                if (userNotificationType.Name.Equals(notificationType.Name, StringComparison.OrdinalIgnoreCase))
                {
                    return(userNotificationType.Enabled);
                }
            }

            return(false);
        }
コード例 #10
0
 public AnswerBadgesAwarder(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     INotificationManager <Badge> notificationManager,
     IUserReputationAwarder userReputationAwarder,
     IPlatoUserStore <User> userStore,
     IFeatureFacade featureFacade,
     ICacheManager cacheManager,
     IDbHelper dbHelper)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _userReputationAwarder        = userReputationAwarder;
     _notificationManager          = notificationManager;
     _featureFacade = featureFacade;
     _cacheManager  = cacheManager;
     _userStore     = userStore;
     _dbHelper      = dbHelper;
 }
コード例 #11
0
 public EntitySubscriber(
     IEntityMentionsManager <EntityMention> entityMentionsManager,
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     IEntityMentionsStore <EntityMention> entityMentionsStore,
     INotificationManager <TEntity> notificationManager,
     ILogger <EntitySubscriber <TEntity> > logger,
     IMentionsParser mentionParser,
     IBroker broker)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _entityMentionsManager        = entityMentionsManager;
     _entityMentionsStore          = entityMentionsStore;
     _notificationManager          = notificationManager;
     _mentionParser = mentionParser;
     _broker        = broker;
     _logger        = logger;
 }
コード例 #12
0
ファイル: TopicOperator.cs プロジェクト: vdandrade/Plato
 public TopicOperator(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     INotificationManager <Topic> notificationManager,
     IDeferredTaskManager deferredTaskManager,
     IPlatoUserStore <User> platoUserStore,
     IClientIpAddress clientIpAddress,
     IEntityStore <Topic> topicStore,
     ISpamChecker spamChecker)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _deferredTaskManager          = deferredTaskManager;
     _notificationManager          = notificationManager;
     _clientIpAddress = clientIpAddress;
     _platoUserStore  = platoUserStore;
     _spamChecker     = spamChecker;
     _topicStore      = topicStore;
 }