예제 #1
0
 public QueryViewFinder(IAppContext appContext
                        , IQueryViewRepository queryViewRepository
                        , IRoleObjectAccessService roleObjectAccessService
                        )
 {
     _appContext              = appContext;
     _queryViewRepository     = queryViewRepository;
     _roleObjectAccessService = roleObjectAccessService;
     _cacheService            = new Caching.CacheManager <Domain.QueryView>(_appContext.OrganizationUniqueName + ":queryviews", _appContext.PlatformSettings.CacheEnabled);
 }
예제 #2
0
 public QueryCompiler(
     IQueryFactory queryFactory,
     IRuntime runtime,
     IQueryViewRepository queryViewRepository,
     [Import(typeof(AggregateQueryErrorListener))] IQueryErrorListener queryErrorListener)
 {
     _queryFactory            = queryFactory;
     _runtime                 = runtime;
     _queryQueryErrorListener = queryErrorListener;
     Views = queryViewRepository;
 }
예제 #3
0
 public QueryViewFinder(IAppContext appContext
                        , IQueryViewRepository queryViewRepository
                        //, ILocalizedLabelService localizedLabelService
                        , IRoleObjectAccessService roleObjectAccessService
                        )
 {
     _appContext          = appContext;
     _queryViewRepository = queryViewRepository;
     //_localizedLabelService = localizedLabelService;
     _roleObjectAccessService = roleObjectAccessService;
     _cacheService            = new Caching.CacheManager <Domain.QueryView>(_appContext.OrganizationUniqueName + ":queryviews", QueryViewCache.BuildKey);
 }
예제 #4
0
 public QueryViewManager(
     IQueryViewRepository queryViews,
     IFileSystem fileSystem,
     IFileWatcherFactory fileWatcherFactory)
 {
     _queryViews           = queryViews;
     _fileSystem           = fileSystem;
     _fileWatcher          = fileWatcherFactory.Create();
     _fileWatcher.Deleted += FileWatcherOnDeleted;
     _fileWatcher.Renamed += FileWatcherOnRenamed;
     _fileWatcher.Changed += FileWatcherOnChanged;
 }
예제 #5
0
 public QueryViewUpdater(IAppContext appContext
                         , IQueryViewRepository queryViewRepository
                         , ILocalizedLabelService localizedLabelService
                         , IQueryViewDependency dependencyService
                         , IEventPublisher eventPublisher
                         )
 {
     _appContext            = appContext;
     _currentUser           = _appContext.GetFeature <ICurrentUser>();
     _queryViewRepository   = queryViewRepository;
     _localizedLabelService = localizedLabelService;
     _dependencyService     = dependencyService;
     _eventPublisher        = eventPublisher;
     _cacheService          = new Caching.CacheManager <Domain.QueryView>(_appContext.OrganizationUniqueName + ":queryviews", QueryViewCache.BuildKey);
 }
예제 #6
0
 public QueryViewCreater(IAppContext appContext
                         , IQueryViewRepository queryViewRepository
                         , IDefaultAttributeProvider defaultAttributeProvider
                         , ILocalizedLabelBatchBuilder localizedLabelService
                         , IQueryViewDependency dependencyService
                         , IDefaultQueryViewProvider defaultQueryViewProvider)
 {
     _appContext               = appContext;
     _queryViewRepository      = queryViewRepository;
     _localizedLabelService    = localizedLabelService;
     _defaultAttributeProvider = defaultAttributeProvider;
     _dependencyService        = dependencyService;
     _defaultQueryViewProvider = defaultQueryViewProvider;
     _cacheService             = new Caching.CacheManager <Domain.QueryView>(_appContext.OrganizationUniqueName + ":queryviews", QueryViewCache.BuildKey);
 }
예제 #7
0
 public QueryViewDeleter(IAppContext appContext
                         , IQueryViewRepository queryViewRepository
                         , ILocalizedLabelService localizedLabelService
                         , IQueryViewDependency dependencyService
                         , IDependencyChecker dependencyChecker
                         , IEventPublisher eventPublisher
                         , IEnumerable <ICascadeDelete <Domain.QueryView> > cascadeDeletes)
 {
     _appContext            = appContext;
     _queryViewRepository   = queryViewRepository;
     _localizedLabelService = localizedLabelService;
     _dependencyService     = dependencyService;
     _dependencyChecker     = dependencyChecker;
     _eventPublisher        = eventPublisher;
     _cascadeDeletes        = cascadeDeletes;
     _cacheService          = new Caching.CacheManager <Domain.QueryView>(_appContext.OrganizationUniqueName + ":queryviews", _appContext.PlatformSettings.CacheEnabled);
 }
예제 #8
0
 public ViewSuggestionProviderFactory(IQueryViewRepository views)
 {
     _views = views;
 }