public CatalogImportJobHomeViewModel(
			IRepositoryFactory<IImportRepository> importRepository,
			IViewModelsFactory<ICreateImportJobViewModel> wizardVmFactory,
			IViewModelsFactory<IImportJobRunViewModel> runVmFactory,
			IViewModelsFactory<IImportJobViewModel> itemVmFactory,
			IImportJobEntityFactory entityFactory,
			IAuthenticationContext authContext,
			IImportService importService,
			SubTabsDefaultViewModel parentViewModel)
			: base(importRepository, wizardVmFactory, runVmFactory, itemVmFactory, entityFactory, authContext, importService, parentViewModel)
		{
			AvailableImporters = new[]
				{
					ImportEntityType.Product,
					ImportEntityType.Bundle,
					ImportEntityType.Category,
					ImportEntityType.Association,
					ImportEntityType.DynamicKit,
					ImportEntityType.Package,
					ImportEntityType.Sku,
					ImportEntityType.ItemRelation,
					ImportEntityType.ItemAsset,
					ImportEntityType.Seo
				};
			DefaultImporter = AvailableImporters.First().ToString();
		}
        public ImportJobHomeViewModel(
            IRepositoryFactory <IImportRepository> importRepository,
            IViewModelsFactory <ICreateImportJobViewModel> wizardVmFactory,
            IViewModelsFactory <IImportJobRunViewModel> runVmFactory,
            IViewModelsFactory <IImportJobViewModel> itemVmFactory,
            IImportJobEntityFactory entityFactory,
            IAuthenticationContext authContext,
            IImportService importService,
            SubTabsDefaultViewModel parentViewModel
            )
        {
            _entityFactory    = entityFactory;
            _importRepository = importRepository;
            _wizardVmFactory  = wizardVmFactory;
            _runVmFactory     = runVmFactory;
            _itemVmFactory    = itemVmFactory;
            _authContext      = authContext;
            _parentViewModel  = parentViewModel;
            _importService    = importService;

            AvailableImporters = (ImportEntityType[])Enum.GetValues(typeof(ImportEntityType));

            InitCommands();
            ViewTitle = new ViewTitleBase()
            {
                Title = "Catalogs", SubTitle = "MERCHANDISE MANAGEMENT".Localize()
            };
        }
Beispiel #3
0
 public CatalogImportJobHomeViewModel(
     IRepositoryFactory <IImportRepository> importRepository,
     IViewModelsFactory <ICreateImportJobViewModel> wizardVmFactory,
     IViewModelsFactory <IImportJobRunViewModel> runVmFactory,
     IViewModelsFactory <IImportJobViewModel> itemVmFactory,
     IImportJobEntityFactory entityFactory,
     IAuthenticationContext authContext,
     IImportService importService,
     SubTabsDefaultViewModel parentViewModel)
     : base(importRepository, wizardVmFactory, runVmFactory, itemVmFactory, entityFactory, authContext, importService, parentViewModel)
 {
     AvailableImporters = new[]
     {
         ImportEntityType.Product,
         ImportEntityType.Bundle,
         ImportEntityType.Category,
         ImportEntityType.Association,
         ImportEntityType.DynamicKit,
         ImportEntityType.Package,
         ImportEntityType.Sku,
         ImportEntityType.ItemRelation,
         ImportEntityType.ItemAsset,
         ImportEntityType.Seo
     };
     DefaultImporter = AvailableImporters.First().ToString();
 }
        public EFImportingRepository(IImportJobEntityFactory entityFactory, IInterceptor[] interceptors = null)
            : base(ImportConfiguration.Instance.Connection.SqlConnectionStringName, factory: entityFactory, interceptors: interceptors)
        {
            _entityFactory = entityFactory;
            Database.SetInitializer(new ValidateDatabaseInitializer <EFImportingRepository>());

            this.Configuration.AutoDetectChangesEnabled = true;
            this.Configuration.ProxyCreationEnabled     = false;
        }
        public EFImportingRepository(IImportJobEntityFactory entityFactory, IInterceptor[] interceptors = null)
            : base(ImportConfiguration.Instance.Connection.SqlConnectionStringName, factory: entityFactory, interceptors: interceptors)
		{
			_entityFactory = entityFactory;
            Database.SetInitializer(new ValidateDatabaseInitializer<EFImportingRepository>());

			this.Configuration.AutoDetectChangesEnabled = true;
			this.Configuration.ProxyCreationEnabled = false;
		}
Beispiel #6
0
 public ImportJobMappingStepViewModel(IRepositoryFactory <IImportRepository> repositoryFactory, IRepositoryFactory <ICatalogRepository> catalogRepositoryFactory,
                                      ImportJob item, WizardViewModelBare parentVM,
                                      IImportJobEntityFactory importFactory,
                                      IViewModelsFactory <IPickAssetViewModel> assetVmFactory,
                                      IViewModelsFactory <IColumnMappingViewModel> mappingVmFactory,
                                      IImportService importService,
                                      ImportEntityType[] entityImporters,
                                      IAuthenticationContext authContext)
     : base(repositoryFactory, catalogRepositoryFactory, importFactory, item, parentVM, assetVmFactory, mappingVmFactory, importService, entityImporters, authContext)
 {
 }
		public ImportJobMappingStepViewModel(IRepositoryFactory<IImportRepository> repositoryFactory, IRepositoryFactory<ICatalogRepository> catalogRepositoryFactory, 
			ImportJob item, WizardViewModelBare parentVM,
			IImportJobEntityFactory importFactory,
			IViewModelsFactory<IPickAssetViewModel> assetVmFactory,
			IViewModelsFactory<IColumnMappingViewModel> mappingVmFactory,
			IImportService importService,
			ImportEntityType[] entityImporters,
			IAuthenticationContext authContext)
			: base(repositoryFactory, catalogRepositoryFactory, importFactory, item, parentVM, assetVmFactory, mappingVmFactory, importService, entityImporters, authContext)
		{
		}
		public PricelistImportJobHomeViewModel(
			IRepositoryFactory<IImportRepository> importRepository,
			IViewModelsFactory<ICreateImportJobViewModel> wizardVmFactory,
			IViewModelsFactory<IImportJobRunViewModel> runVmFactory,
			IViewModelsFactory<IImportJobViewModel> itemVmFactory,
			IImportJobEntityFactory entityFactory,
			IAuthenticationContext authContext,
			IImportService importService,
			SubTabsDefaultViewModel parentViewModel)
			:base(importRepository, wizardVmFactory, runVmFactory, itemVmFactory, entityFactory, authContext, importService, parentViewModel)
		{
			AvailableImporters = new[]
				{
					ImportEntityType.Price
				};
			DefaultImporter = AvailableImporters.First().ToString();
		}
 public PricelistImportJobHomeViewModel(
     IRepositoryFactory <IImportRepository> importRepository,
     IViewModelsFactory <ICreateImportJobViewModel> wizardVmFactory,
     IViewModelsFactory <IImportJobRunViewModel> runVmFactory,
     IViewModelsFactory <IImportJobViewModel> itemVmFactory,
     IImportJobEntityFactory entityFactory,
     IAuthenticationContext authContext,
     IImportService importService,
     SubTabsDefaultViewModel parentViewModel)
     : base(importRepository, wizardVmFactory, runVmFactory, itemVmFactory, entityFactory, authContext, importService, parentViewModel)
 {
     AvailableImporters = new[]
     {
         ImportEntityType.Price
     };
     DefaultImporter = AvailableImporters.First().ToString();
 }
Beispiel #10
0
        public ImportJobViewModel(
            IRepositoryFactory <IImportRepository> repositoryFactory,
            IRepositoryFactory <ICatalogRepository> catalogRepositoryFactory,
            IViewModelsFactory <IPickAssetViewModel> assetVmFactory,
            IViewModelsFactory <IColumnMappingViewModel> mappingVmFactory,
            IImportJobEntityFactory importJobFactory,
            INavigationManager navManager,
            ImportJob item,
            IImportService importService,
            ImportEntityType[] entityImporters,
            IAuthenticationContext authContext,
            string homeMenuName)
            : base(importJobFactory, item, false)
        {
            EntityImporters           = entityImporters;
            _assetVmFactory           = assetVmFactory;
            _mappingVmFactory         = mappingVmFactory;
            _importService            = importService;
            _authContext              = authContext;
            _repositoryFactory        = repositoryFactory;
            _catalogRepositoryFactory = catalogRepositoryFactory;
            _navManager   = navManager;
            _homeMenuName = homeMenuName;

            ViewTitle = new ViewTitleBase()
            {
                Title    = "Import job",
                SubTitle = (item != null && !string.IsNullOrEmpty(item.Name)) ? item.Name.ToUpper(CultureInfo.InvariantCulture) : ""
            };

            OpenItemCommand = new DelegateCommand(() =>
            {
                if (true)                 //TODO set permission
                {
                    _navManager.Navigate(NavigationData);
                }
            });
            CommandInit();
        }
Beispiel #11
0
 protected ImportJobViewModel(
     IRepositoryFactory <IImportRepository> repositoryFactory,
     IRepositoryFactory <ICatalogRepository> catalogRepositoryFactory,
     IImportJobEntityFactory importJobFactory,
     ImportJob item,
     WizardViewModelBare parentVM,
     IViewModelsFactory <IPickAssetViewModel> assetVmFactory,
     IViewModelsFactory <IColumnMappingViewModel> mappingVmFactory,
     IImportService importService,
     ImportEntityType[] entityImporters,
     IAuthenticationContext authContext)
     : base(importJobFactory, item, true)
 {
     EntityImporters           = entityImporters;
     _parentViewModel          = parentVM;
     _assetVmFactory           = assetVmFactory;
     _mappingVmFactory         = mappingVmFactory;
     _importService            = importService;
     _authContext              = authContext;
     _repositoryFactory        = repositoryFactory;
     _catalogRepositoryFactory = catalogRepositoryFactory;
     CommandInit();
 }
        public DSImportClient(Uri serviceUri, IImportJobEntityFactory entityFactory, ISecurityTokenInjector tokenInjector)
			: base(serviceUri, entityFactory, tokenInjector)
		{
		}
		public DSImportClient(IImportJobEntityFactory entityFactory, ISecurityTokenInjector tokenInjector, IServiceConnectionFactory connFactory)
			: base(connFactory.GetConnectionString(ImportConfiguration.Instance.Connection.DataServiceUri), entityFactory, tokenInjector)
		{
		}
Beispiel #14
0
 public DSImportClient(Uri serviceUri, IImportJobEntityFactory entityFactory, ISecurityTokenInjector tokenInjector)
     : base(serviceUri, entityFactory, tokenInjector)
 {
 }
Beispiel #15
0
 public DSImportClient(IImportJobEntityFactory entityFactory, ISecurityTokenInjector tokenInjector, IServiceConnectionFactory connFactory)
     : base(connFactory.GetConnectionString(ImportConfiguration.Instance.Connection.DataServiceUri), entityFactory, tokenInjector)
 {
 }