Ejemplo n.º 1
0
 public EntityLabelManager(
     IEntityLabelStore <EntityLabel> entityLabelStore,
     IBroker broker)
 {
     _entityLabelStore = entityLabelStore;
     _broker           = broker;
 }
Ejemplo n.º 2
0
 // Updates label metadata whenever a entity & label relationship is added or removed.
 public EntityLabelSubscriber(
     IEntityLabelStore <EntityLabel> entityLabelStore,
     ILabelManager <LabelBase> labelManager,
     ILabelStore <LabelBase> labelStore,
     IBroker broker)
 {
     _entityLabelStore = entityLabelStore;
     _labelManager     = labelManager;
     _labelStore       = labelStore;
     _broker           = broker;
 }
Ejemplo n.º 3
0
 public DocListItemViewAdapter(
     IEntityLabelStore <EntityLabel> entityLabelStore,
     IActionContextAccessor actionContextAccessor,
     ILabelStore <Label> labelStore,
     IFeatureFacade featureFacade)
 {
     _actionContextAccessor = actionContextAccessor;
     _entityLabelStore      = entityLabelStore;
     _featureFacade         = featureFacade;
     _labelStore            = labelStore;
     ViewName = "DocListItem";
 }
Ejemplo n.º 4
0
 public ArticleListItemViewAdapter(
     IEntityLabelStore <EntityLabel> entityLabelStore,
     IActionContextAccessor actionContextAccessor,
     IEntityService <Article> entityService,
     ILabelStore <Label> labelStore,
     IFeatureFacade featureFacade)
 {
     _actionContextAccessor = actionContextAccessor;
     _entityLabelStore      = entityLabelStore;
     _entityService         = entityService;
     _featureFacade         = featureFacade;
     _labelStore            = labelStore;
     ViewName = "ArticleListItem";
 }
Ejemplo n.º 5
0
 public TopicListItemViewAdapter(
     ILabelStore <Label> labelStore,
     IFeatureFacade featureFacade,
     IEntityService <Topic> entityService,
     IEntityLabelStore <EntityLabel> entityLabelStore,
     IHttpContextAccessor httpContextAccessor,
     IActionContextAccessor actionContextAccessor,
     IAuthorizationService authorizationService)
 {
     _labelStore            = labelStore;
     _featureFacade         = featureFacade;
     _entityService         = entityService;
     _entityLabelStore      = entityLabelStore;
     _httpContextAccessor   = httpContextAccessor;
     _actionContextAccessor = actionContextAccessor;
     _authorizationService  = authorizationService;
     ViewName = "TopicListItem";
 }
Ejemplo n.º 6
0
        public QuestionViewProvider(
            IEntityLabelManager <EntityLabel> entityLabelManager,
            IEntityLabelStore <EntityLabel> entityLabelStore,
            IHttpContextAccessor httpContextAccessor,
            IEntityStore <Question> entityStore,
            ILabelStore <Label> labelStore,
            IStringLocalizer stringLocalize,
            IFeatureFacade featureFacade,
            IContextFacade contextFacade,
            ICacheManager cacheManager)
        {
            _request            = httpContextAccessor.HttpContext.Request;
            _entityLabelManager = entityLabelManager;
            _entityLabelStore   = entityLabelStore;
            _featureFacade      = featureFacade;
            _contextFacade      = contextFacade;
            _cacheManager       = cacheManager;
            _entityStore        = entityStore;
            _labelStore         = labelStore;

            T = stringLocalize;
        }
Ejemplo n.º 7
0
 public EntitySubscriber(
     IUserNotificationTypeDefaults userNotificationTypeDefaults,
     IDummyClaimsPrincipalFactory <User> claimsPrincipalFactory,
     INotificationManager <TEntity> notificationManager,
     IFollowStore <Follows.Models.Follow> followStore,
     IEntityLabelStore <EntityLabel> entityLabelStore,
     IAuthorizationService authorizationService,
     IDeferredTaskManager deferredTaskManager,
     IPlatoUserStore <User> platoUserStore,
     IEntityStore <TEntity> entityStore,
     IContextFacade contextFacade,
     IBroker broker)
 {
     _userNotificationTypeDefaults = userNotificationTypeDefaults;
     _claimsPrincipalFactory       = claimsPrincipalFactory;
     _authorizationService         = authorizationService;
     _deferredTaskManager          = deferredTaskManager;
     _notificationManager          = notificationManager;
     _entityLabelStore             = entityLabelStore;
     _platoUserStore = platoUserStore;
     _followStore    = followStore;
     _entityStore    = entityStore;
     _broker         = broker;
 }