Beispiel #1
0
 public SerialNumberRuleCreater(IAppContext appContext
                                , ISerialNumberRuleRepository serialNumberRuleRepository
                                , ILocalizedLabelService localizedLabelService
                                , ISolutionComponentService solutionComponentService
                                , ISerialNumberDependency dependencyService
                                , IEntityPluginCreater entityPluginCreater)
 {
     _appContext = appContext;
     _serialNumberRuleRepository = serialNumberRuleRepository;
     _loc = _appContext.GetFeature <ILocalizedTextProvider>();
     _localizedLabelService    = localizedLabelService;
     _solutionComponentService = solutionComponentService;
     _dependencyService        = dependencyService;
     _entityPluginCreater      = entityPluginCreater;
     _cacheService             = new Caching.CacheManager <Domain.SerialNumberRule>(SerialNumberRuleCache.CacheKey(_appContext), _appContext.PlatformSettings.CacheEnabled);
 }
Beispiel #2
0
 public SystemFormCreater(IAppContext appContext
                          , ISystemFormRepository systemFormRepository
                          , ILocalizedLabelBatchBuilder localizedLabelService
                          , ISolutionComponentService solutionComponentService
                          , IFormService formService
                          , ISystemFormDependency dependencyService
                          , IDefaultSystemFormProvider defaultSystemFormProvider)
 {
     _appContext                = appContext;
     _systemFormRepository      = systemFormRepository;
     _localizedLabelService     = localizedLabelService;
     _solutionComponentService  = solutionComponentService;
     _formService               = formService;
     _dependencyService         = dependencyService;
     _defaultSystemFormProvider = defaultSystemFormProvider;
     _cacheService              = new Caching.CacheManager <Domain.SystemForm>(_appContext.OrganizationUniqueName + ":systemforms", _appContext.PlatformSettings.CacheEnabled);
 }
Beispiel #3
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);
 }
Beispiel #4
0
 public EntityDeleter(IAppContext appContext
                      , IEntityRepository entityRepository
                      , ISolutionComponentService solutionComponentService
                      , ILocalizedLabelService localizedLabelService
                      , IDependencyService dependencyService
                      , IDependencyChecker dependencyChecker
                      , IEnumerable <ICascadeDelete <Domain.Entity> > cascadeDeletes
                      )
 {
     _appContext               = appContext;
     _entityRepository         = entityRepository;
     _localizedLabelService    = localizedLabelService;
     _cacheService             = new Caching.CacheManager <Domain.Entity>(_appContext.OrganizationUniqueName + ":entities", EntityCache.BuildKey);
     _solutionComponentService = solutionComponentService;
     _dependencyService        = dependencyService;
     _dependencyChecker        = dependencyChecker;
     _cascadeDeletes           = cascadeDeletes;
 }
Beispiel #5
0
 public EntityCreater(IAppContext appContext
                      , IEntityRepository entityRepository
                      , ILocalizedLabelBatchBuilder localizedLabelService
                      , ISolutionComponentService solutionComponentService
                      , IDefaultAttributeProvider defaultAttributeProvider
                      , IAttributeCreater attributeCreater
                      , IEventPublisher eventPublisher
                      )
 {
     _appContext               = appContext;
     _loc                      = _appContext.GetFeature <ILocalizedTextProvider>();
     _entityRepository         = entityRepository;
     _localizedLabelService    = localizedLabelService;
     _solutionComponentService = solutionComponentService;
     _defaultAttributeProvider = defaultAttributeProvider;
     _attributeCreater         = attributeCreater;
     _cacheService             = new Caching.CacheManager <Domain.Entity>(_appContext.OrganizationUniqueName + ":entities", _appContext.PlatformSettings.CacheEnabled);
     _eventPublisher           = eventPublisher;
 }
Beispiel #6
0
 public OptionSetDeleter(IAppContext appContext
                         , IOptionSetRepository optionSetRepository
                         , ISolutionComponentService solutionComponentService
                         , IOptionSetDetailDeleter optionSetDetailDeleter
                         , ILocalizedLabelService localizedLabelService
                         , IDependencyService dependencyService
                         , IDependencyChecker dependencyChecker
                         , IEnumerable <ICascadeDelete <Domain.OptionSet> > cascadeDeletes)
 {
     _appContext          = appContext;
     _optionSetRepository = optionSetRepository;
     _loc = _appContext.GetFeature <ILocalizedTextProvider>();
     _localizedLabelService    = localizedLabelService;
     _solutionComponentService = solutionComponentService;
     _optionSetDetailDeleter   = optionSetDetailDeleter;
     _dependencyService        = dependencyService;
     _dependencyChecker        = dependencyChecker;
     _cascadeDeletes           = cascadeDeletes;
     _cacheService             = new Caching.CacheManager <Domain.OptionSet>(_appContext.OrganizationUniqueName + ":optionsets", _appContext.PlatformSettings.CacheEnabled);
 }
Beispiel #7
0
 public SystemFormDeleter(IAppContext appContext
                          , ISystemFormRepository systemFormRepository
                          , ILocalizedLabelService localizedLabelService
                          , ISolutionComponentService solutionComponentService
                          , IFormService formService
                          , ISystemFormDependency dependencyService
                          , IDependencyChecker dependencyChecker
                          , IEventPublisher eventPublisher
                          , IEnumerable <ICascadeDelete <Domain.SystemForm> > cascadeDeletes)
 {
     _appContext               = appContext;
     _systemFormRepository     = systemFormRepository;
     _localizedLabelService    = localizedLabelService;
     _solutionComponentService = solutionComponentService;
     _formService              = formService;
     _dependencyService        = dependencyService;
     _dependencyChecker        = dependencyChecker;
     _eventPublisher           = eventPublisher;
     _cascadeDeletes           = cascadeDeletes;
     _cacheService             = new Caching.CacheManager <Domain.SystemForm>(_appContext.OrganizationUniqueName + ":systemforms", SystemFormCache.BuildKey);
 }
Beispiel #8
0
 public AttributeDeleter(IAppContext appContext
                         , IAttributeRepository attributeRepository
                         , IEntityFinder entityFinder
                         , ILocalizedLabelService localizedLabelService
                         , IMetadataService metadataService
                         , IAttributeDependency dependencyService
                         , IDependencyChecker dependencyChecker
                         , IEventPublisher eventPublisher
                         , IEnumerable <ICascadeDelete <Domain.Attribute> > cascadeDeletes)
 {
     _appContext          = appContext;
     _attributeRepository = attributeRepository;
     _loc = _appContext.GetFeature <ILocalizedTextProvider>();
     _localizedLabelService = localizedLabelService;
     _entityFinder          = entityFinder;
     _metadataService       = metadataService;
     _dependencyService     = dependencyService;
     _dependencyChecker     = dependencyChecker;
     _eventPublisher        = eventPublisher;
     _cascadeDeletes        = cascadeDeletes;
     _cacheService          = new Caching.CacheManager <Domain.Attribute>(_appContext.OrganizationUniqueName + ":attributes", _appContext.PlatformSettings.CacheEnabled);
 }
Beispiel #9
0
 public AttributeCreater(IAppContext appContext
                         , IAttributeRepository attributeRepository
                         , IEntityFinder entityFinder
                         , IRelationShipCreater relationShipCreater
                         , IOptionSetCreater optionSetCreater
                         , IStringMapCreater stringMapCreater
                         , ILocalizedLabelBatchBuilder localizedLabelService
                         , IMetadataService metadataService
                         , IDefaultAttributeProvider defaultAttributeProvider
                         , IAttributeDependency dependencyService)
 {
     _appContext          = appContext;
     _attributeRepository = attributeRepository;
     _loc = _appContext.GetFeature <ILocalizedTextProvider>();
     _localizedLabelService    = localizedLabelService;
     _entityFinder             = entityFinder;
     _relationShipCreater      = relationShipCreater;
     _optionSetCreater         = optionSetCreater;
     _stringMapCreater         = stringMapCreater;
     _cacheService             = new Caching.CacheManager <Domain.Attribute>(_appContext.OrganizationUniqueName + ":attributes", AttributeCache.BuildKey);
     _metadataService          = metadataService;
     _defaultAttributeProvider = defaultAttributeProvider;
     _dependencyService        = dependencyService;
 }
Beispiel #10
0
 public EntityPluginFinder(IAppContext appContext
                           , IEntityPluginRepository entityPluginRepository)
 {
     _entityPluginRepository = entityPluginRepository;
     _cacheService           = new Caching.CacheManager <EntityPlugin>(EntityPluginCache.GetCacheKey(appContext), appContext.PlatformSettings.CacheEnabled);
 }
Beispiel #11
0
 public EntityPluginFinder(IAppContext appContext
                           , IEntityPluginRepository entityPluginRepository)
 {
     _entityPluginRepository = entityPluginRepository;
     _cacheService           = new Caching.CacheManager <EntityPlugin>(EntityPluginCache.GetCacheKey(appContext), EntityPluginCache.BuildKey);
 }
Beispiel #12
0
 public WebResourceFinder(IAppContext appContext, ISettingFinder settingFinder, IWebResourceRepository webResourceRepository)
 {
     _appContext            = appContext;
     _webResourceRepository = webResourceRepository;
     _cacheService          = new Caching.CacheManager <Domain.WebResource>(_appContext.OrganizationUniqueName + "webresource", _appContext.PlatformSettings.CacheEnabled);
 }
Beispiel #13
0
 public WebResourceFinder(IAppContext appContext, IWebResourceRepository webResourceRepository)
 {
     _appContext            = appContext;
     _webResourceRepository = webResourceRepository;
     _cacheService          = new Caching.CacheManager <Domain.WebResource>(_appContext.OrganizationUniqueName + "webresource");
 }