Exemplo n.º 1
0
        public AggUpdater(
            IAppContext appContext
            , IEntityFinder entityFinder
            , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
            , IPrincipalObjectAccessService principalObjectAccessService
            , IEventPublisher eventPublisher
            , IBusinessUnitService businessUnitService

            , IAttributeFinder attributeFinder
            , IRelationShipFinder relationShipFinder
            , IDataCreater dataCreater
            , IDataUpdater dataUpdater
            , IDataDeleter dataDeleter
            , IOrganizationDataProvider organizationDataProvider
            , IPluginExecutor <AggregateRoot, AggregateRootMetaData> pluginExecutor
            )
            : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
        {
            _attributeFinder          = attributeFinder;
            _relationShipFinder       = relationShipFinder;
            _organizationDataProvider = organizationDataProvider;
            _pluginExecutor           = pluginExecutor;
            _dataCreater = dataCreater;
            _dataUpdater = dataUpdater;
            _dataDeleter = dataDeleter;
        }
Exemplo n.º 2
0
 public DataImporter(IEntityFinder entityFinder
                     , IAttributeFinder attributeFinder
                     , IOptionSetDetailFinder optionSetDetailFinder
                     , IStringMapFinder stringMapFinder
                     , IWebHelper webHelper
                     , IDataCreater dataCreater
                     , IDataUpdater dataUpdater
                     , IDataFinder dataFinder
                     , IAggregateService aggregateService
                     , IImportFileService importFileService
                     , IImportDataService importDataService
                     , IImportMapService importMapService)
 {
     _entityFinder    = entityFinder;
     _attributeFinder = attributeFinder;
     _optionSetDetailServiceFinder = optionSetDetailFinder;
     _stringMapFinder   = stringMapFinder;
     _webHelper         = webHelper;
     _dataCreater       = dataCreater;
     _dataUpdater       = dataUpdater;
     _dataFinder        = dataFinder;
     _aggregateService  = aggregateService;
     _importFileService = importFileService;
     _importDataService = importDataService;
     _importMapService  = importMapService;
 }
Exemplo n.º 3
0
        public AggRootSaveController(IWebAppContext appContext
                                     , IEntityFinder entityFinder
                                     , IAttributeFinder attributeFinder
                                     , IRelationShipFinder relationShipFinder

                                     , IDataCreater dataCreater
                                     , IDataUpdater dataUpdater

                                     , IAggCreater aggCreater
                                     , IAggUpdater aggUpdater
                                     , IAggFinder aggFinder

                                     , IAttachmentCreater attachmentCreater

                                     , IBusinessProcessFlowInstanceUpdater businessProcessFlowInstanceUpdater)
            : base(appContext)
        {
            _entityFinder       = entityFinder;
            _attributeFinder    = attributeFinder;
            _relationShipFinder = relationShipFinder;

            _dataCreater = dataCreater;
            _dataUpdater = dataUpdater;

            _aggCreater = aggCreater;
            _aggUpdater = aggUpdater;
            _aggFinder  = aggFinder;

            _attachmentCreater = attachmentCreater;

            _businessProcessFlowInstanceUpdater = businessProcessFlowInstanceUpdater;
        }
Exemplo n.º 4
0
 public OrgUpdaterController(IWebAppContext appContext
                             , IOrganizationService organizationService
                             , IDataUpdater dataUpdater)
     : base(appContext)
 {
     _organizationService = organizationService;
     _dataUpdater         = dataUpdater;
 }
Exemplo n.º 5
0
 public NoticeController(IWebAppContext appContext
                         , IDataFinder dataFinder
                         , IDataUpdater dataUpdater)
     : base(appContext)
 {
     _dataFinder  = dataFinder;
     _dataUpdater = dataUpdater;
 }
Exemplo n.º 6
0
 public DataUpdatererController(IWebAppContext appContext
                                , IEntityFinder entityFinder
                                , IAttributeFinder attributeFinder
                                , IDataUpdater dataUpdater)
     : base(appContext)
 {
     _entityFinder    = entityFinder;
     _attributeFinder = attributeFinder;
     _dataUpdater     = dataUpdater;
 }
Exemplo n.º 7
0
        public ContentWriter(ITableStorage tableStorage, ILinkReader linkReader, IContentReader contentReader, IDataUpdater dataUpdater)
        {
            _contentReader = contentReader;
            _linkReader    = linkReader;
            _dataUpdater   = dataUpdater;

            _linkTable = tableStorage.TableClient.GetTableReference(Constants.LINKS_TABLE);
            _linkTable.CreateIfNotExistsAsync();
            _contentTable = tableStorage.TableClient.GetTableReference(Constants.CONTENT_TABLE);
            _contentTable.CreateIfNotExistsAsync();
        }
 public BusinessProcessFlowInstanceUpdater(IBusinessProcessFlowInstanceRepository businessProcessFlowInstanceRepository
                                           , IEntityFinder entityFinder
                                           , IProcessStageService processStageService
                                           , IDataFinder dataFinder
                                           , IDataUpdater dataUpdater)
 {
     _businessProcessFlowInstanceRepository = businessProcessFlowInstanceRepository;
     _entityFinder        = entityFinder;
     _processStageService = processStageService;
     _dataFinder          = dataFinder;
     _dataUpdater         = dataUpdater;
 }
Exemplo n.º 9
0
 public UserSettingsController(IWebAppContext appContext
                               , ILanguageService languageService
                               , IEntityFinder entityFinder
                               , IAttributeFinder attributeFinder
                               , IDataFinder dataFinder
                               , IDataUpdater dataUpdater)
     : base(appContext)
 {
     _languageService = languageService;
     _entityFinder    = entityFinder;
     _attributeFinder = attributeFinder;
     _dataFinder      = dataFinder;
     _dataUpdater     = dataUpdater;
 }
Exemplo n.º 10
0
 public OrgController(IWebAppContext appContext
                      , IEntityFinder entityFinder
                      , IAttributeFinder attributeFinder
                      , IOrganizationService organizationService
                      , ILanguageService languageService
                      , IDataFinder dataFinder
                      , IDataUpdater dataUpdater
                      , IDataCreater dataCreater)
     : base(appContext)
 {
     _entityFinder        = entityFinder;
     _attributeFinder     = attributeFinder;
     _organizationService = organizationService;
     _languageService     = languageService;
     _dataFinder          = dataFinder;
     _dataUpdater         = dataUpdater;
     _dataCreater         = dataCreater;
 }
Exemplo n.º 11
0
        public void UpdateDataSerialized <T>(string path, IDataUpdater <T> updater)
        {
            Stat stat = new Stat();
            bool retry;

            do
            {
                retry = false;
                try
                {
                    T oldData = ReadData <T>(path, stat);
                    T newData = updater.Update(oldData);
                    WriteData(path, newData, stat.Version);
                }
                catch (ZKBadVersionException e)
                {
                    retry = true;
                }
            } while (retry);
        }
Exemplo n.º 12
0
        public void RunExcelInit(OrdersParser parser, IDataUpdater dataUpdater)
        {
            DataUpdater = dataUpdater;

            OrdersParser._Form = parser;

            Excel.init();
            Outlook.init();

            // create temp results folder
            Utils.createResultsFolder();

            // parse local DB
            Excel.getDetailsFromLocalDb();

            // fetch and save to file the most updated orders excel file
            Outlook.readLastOrdersFile();

            // parse the orders DB
            Excel.getOrderDetails();
        }
Exemplo n.º 13
0
 public BusinessFlowController(IWebAppContext appContext
                               , IEntityFinder entityFinder
                               , IEntityMapFinder entityMapFinder
                               , IWorkFlowFinder workFlowFinder
                               , IBusinessProcessFlowInstanceService businessProcessFlowInstanceService
                               , IBusinessProcessFlowInstanceUpdater businessProcessFlowInstanceUpdater
                               , IProcessStageService processStageService
                               , IDataFinder dataFinder
                               , IDataUpdater dataUpdater
                               , IDataMapper dataMapper)
     : base(appContext)
 {
     _entityFinder    = entityFinder;
     _entityMapFinder = entityMapFinder;
     _workFlowFinder  = workFlowFinder;
     _businessProcessFlowInstanceService = businessProcessFlowInstanceService;
     _businessProcessFlowInstanceUpdater = businessProcessFlowInstanceUpdater;
     _processStageService = processStageService;
     _dataFinder          = dataFinder;
     _dataUpdater         = dataUpdater;
     _dataMapper          = dataMapper;
 }
Exemplo n.º 14
0
        public ProjectCreationWindow(IDataUpdater caller)
        {
            InitializeComponent();

            callingWindow = caller;
        }
Exemplo n.º 15
0
 public DesktopMainModule(IRegionManager regionManager, IDataUpdater updater)
 {
     _regionManager = regionManager;
     _updater       = updater;
 }
Exemplo n.º 16
0
 public UpdateEntityProcessState(IDataUpdater dataUpdater)
 {
     _dataUpdater = dataUpdater;
 }
Exemplo n.º 17
0
 public WorkFlowProcessUpdater(IWorkFlowProcessRepository workFlowProcessRepository
                               , IDataUpdater dataUpdater)
 {
     _workFlowProcessRepository = workFlowProcessRepository;
     _dataUpdater = dataUpdater;
 }
Exemplo n.º 18
0
 public void RegisterDataUpdater(IDataUpdater updater)
 {
     this.updaters.Add(updater);
 }
Exemplo n.º 19
0
 public UserStore(IDataFetcher dataFetcher, IDataUpdater dataUpdater)
 {
     _dataFetcher = dataFetcher;
     _dataUpdater = dataUpdater;
 }