/// <summary>
 /// IoC initializer.
 /// </summary>
 new public void Init()
 {
     base.Init();
     FieldNotInitializedException.ThrowIfNull(this, ref _activityManager);
     FieldNotInitializedException.ThrowIfNull(this, ref _settingsProvider);
     FieldNotInitializedException.ThrowIfNull(this, ref _accountPolicyManager);
 }
Example #2
0
 public void Init()
 {
     FieldNotInitializedException.ThrowIfNull(this, ref _documentContentManager);
     FieldNotInitializedException.ThrowIfNull(this, ref _idProvider);
     FieldNotInitializedException.ThrowIfNull(this, ref _documentDao);
     FieldNotInitializedException.ThrowIfNull(this, ref _compressionHelper);
 }
Example #3
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _accountDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _serviceDao);
        }
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _partnerDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _nodeEndpointClientFactory);
        }
Example #5
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _requestManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _documentManager);
        }
 public void Init()
 {
     if (string.IsNullOrEmpty(_tempFolderPath))
     {
         _tempFolderPath = Path.GetTempPath();
     }
     else
     {
         if (_tempFolderPath.StartsWith(".") || _tempFolderPath.StartsWith("\\") || _tempFolderPath.StartsWith("/"))
         {
             throw new ArgException(string.Format("The setting 'wnos.temp.dir.path' in Deployment.config cannot be a relative or network path: {0}", _tempFolderPath));
         }
     }
     if (!Directory.Exists(_tempFolderPath))
     {
         throw new DirectoryNotFoundException(string.Format("The node temporary folder does not exist: {0}",
                                                            _tempFolderPath));
     }
     if (!Directory.Exists(_logsFolderPath))
     {
         throw new DirectoryNotFoundException(string.Format("The node logs folder does not exist: {0}",
                                                            _logsFolderPath));
     }
     FieldNotInitializedException.ThrowIfEmptyString(this, ref _nodeOrganizationName);
     FieldNotInitializedException.ThrowIfEmptyString(this, ref _nodeAdminEmail);
     FieldNotInitializedException.ThrowIfEmptyString(this, ref _nodeId);
     FieldNotInitializedException.ThrowIfEmptyString(this, ref _endpoint11Url);
     FieldNotInitializedException.ThrowIfEmptyString(this, ref _endpoint20Url);
     FieldNotInitializedException.ThrowIfEmptyString(this, ref _adminUrl);
     FieldNotInitializedException.ThrowIfNull(this, ref _nodeBoundingBox);
 }
        new public void Init()
        {
			base.Init();
 			
 			FieldNotInitializedException.ThrowIfNull(this, ref _transactionManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowManager);
        }
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, AccountDao, "AccountDao");
            FieldNotInitializedException.ThrowIfNull(this, TransactionDao, "TransactionDao");
        }
Example #9
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _accountDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _naasManager);
            FieldNotInitializedException.ThrowIfEmptyString(this, ref _adminUserName);
            FieldNotInitializedException.ThrowIfEmptyString(this, ref _runtimeUserName);
            FieldNotInitializedException.ThrowIfNull(this, ref _notificationManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _transactionManager);
            FieldNotInitializedException.ThrowIfEmptyString(this, ref _securityFlowName);
            FieldNotInitializedException.ThrowIfEmptyString(this, ref _securityBulkAddUsersServiceName);

            _adminAccount = _accountDao.GetByName(_adminUserName);

            if (_adminAccount == null)
            {
                throw new ArgumentException(
                          "Admin account not set in the database or its name is not: " +
                          _adminUserName);
            }
            _runtimeAccount = _accountDao.GetByName(_runtimeUserName);

            if (_runtimeAccount == null)
            {
                throw new ArgumentException(
                          "Runtime account not set in the database or its name is not: " +
                          _runtimeUserName);
            }
        }
Example #10
0
        /// <summary>
        /// IoC initializer
        /// </summary>
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _dataProviderDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _pluginLoader);
        }
Example #11
0
        /// <summary>
        /// IoC intializer
        /// </summary>
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _settingsProvider);

            CheckForDatabaseStartup();
        }
 public void Init()
 {
     FieldNotInitializedException.ThrowIfNull(this, ref _threadQueueServer);
     FieldNotInitializedException.ThrowIfNull(this, ref _nodeProcessorMutexFactory);
     FieldNotInitializedException.ThrowIfNull(this, ref _pluginLoader);
     FieldNotInitializedException.ThrowIfNull(this, ref _settingsProvider);
     FieldNotInitializedException.ThrowIfNull(this, ref _activityManager);
 }
Example #13
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, EndpointUserDao, "EndpointUserDao");
            FieldNotInitializedException.ThrowIfNull(this, NAASManager, "NAASManager");
            FieldNotInitializedException.ThrowIfNull(this, NodeEndpointClientFactory, "NodeEndpointClientFactory");
        }
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _serializationHelper);
            FieldNotInitializedException.ThrowIfNull(this, ref _transactionDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _documentManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowDao);
        }
Example #15
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            FieldNotInitializedException.ThrowIfNull(this, ref _securityService);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountService);
            FieldNotInitializedException.ThrowIfNull(this, ref _visitProvider);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowService);
        }
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _accountManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountService);
            FieldNotInitializedException.ThrowIfNull(this, ref _naasManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowManager);
        }
Example #17
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _configDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _cryptographyProvider);

            Load();
        }
Example #18
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _activityDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _transactionDao);
        }
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _accountAuthorizationRequestDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _naasManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountDao);
        }
Example #20
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _flowDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _serviceDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _pluginLoader);
            FieldNotInitializedException.ThrowIfNull(this, ref _configManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _dataProviderDao);
        }
 new public void Init()
 {
     base.Init();
     FieldNotInitializedException.ThrowIfNull(this, ref _transactionManager);
     FieldNotInitializedException.ThrowIfNull(this, ref _documentManager);
     FieldNotInitializedException.ThrowIfNull(this, ref _notificationManager);
     FieldNotInitializedException.ThrowIfNull(this, ref _submitDocumentProcessor);
     FieldNotInitializedException.ThrowIfNull(this, ref _transactionService);
     FieldNotInitializedException.ThrowIfNull(this, ref _transactionService);
     FieldNotInitializedException.ThrowIfNull(this, SecurityService, "SecurityService");
 }
Example #22
0
 new public void Init()
 {
     base.Init();
     FieldNotInitializedException.ThrowIfNull(this, ref _transactionManager);
     FieldNotInitializedException.ThrowIfNull(this, ref _documentManager);
     FieldNotInitializedException.ThrowIfNull(this, ref _notificationManager);
     FieldNotInitializedException.ThrowIfNull(this, ref _requestManager);
     FieldNotInitializedException.ThrowIfNull(this, ref _pluginLoader);
     FieldNotInitializedException.ThrowIfNull(this, ref _notifyDocumentProcessor);
     FieldNotInitializedException.ThrowIfNull(this, ref _solicitProcessor);
     FieldNotInitializedException.ThrowIfNull(this, SecurityService, "SecurityService");
 }
Example #23
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _authProvider);
            FieldNotInitializedException.ThrowIfNull(this, ref _faultProvider);
            FieldNotInitializedException.ThrowIfNull(this, ref _idProvider);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _serializationHelper);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowManager);
            FieldNotInitializedException.ThrowIfNull(this, CompressionHelper, "CompressionHelper");
        }
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _configManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _dataProviderManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _partnerManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _serviceManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _compressionHelper);
            FieldNotInitializedException.ThrowIfNull(this, ref _serializationHelper);
        }
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _processors);
            if (_threadsPerProcessor <= 0)
            {
                _threadsPerProcessor = 3;
            }
            if (_maxNumConcurrentThreads <= 0)
            {
                _maxNumConcurrentThreads = _threadsPerProcessor * Environment.ProcessorCount;
            }
        }
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _scheduleDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _serviceManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _partnerManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _schematronHelper);
            FieldNotInitializedException.ThrowIfNull(this, ref _activityDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _endpointUserManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _scheduleProcessor);
        }
Example #27
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _cryptographyProvider);
            FieldNotInitializedException.ThrowIfNull(this, ref _flowDao);

            MAP_USER_ACCOUNT_COLUMNS = "Id;NAASAccount;IsActive;SystemRole;ModifiedBy;ModifiedOn";

            AreEndpointUsersEnabled = CheckIfColumnExists(TABLE_NAME, "IsEndpointUser");
            if (AreEndpointUsersEnabled)
            {
                MAP_USER_ACCOUNT_COLUMNS += ";PasswordHash;IsEndpointUser";
            }
        }
Example #28
0
        new public void Init()
        {
            base.Init();
            FieldNotInitializedException.ThrowIfNull(this, ref _activityDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _serviceDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountManager);
            FieldNotInitializedException.ThrowIfNull(this, AccountDao, "AccountDao");

            MAP_SCHEDULED_ITEM_COLUMNS = "Id;Name;FlowId;StartOn;EndOn;SourceType;SourceId;SourceFlow;SourceOperation;" +
                                         "TargetType;TargetId;TargetFlow;TargetOperation;LastExecuteActivityId;LastExecutedOn;" +
                                         "NextRun;FrequencyType;Frequency;ModifiedBy;ModifiedOn;IsActive;ExecuteStatus";
            if (AreEndpointUsersEnabled)
            {
                MAP_SCHEDULED_ITEM_COLUMNS += ";SourceEndpointUser;TargetEndpointUser";
            }
        }
Example #29
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _requestManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _documentManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _scheduleManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _accountManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _transactionManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _serviceManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _notificationManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _partnerManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _compressionHelper);
            FieldNotInitializedException.ThrowIfNull(this, ref _schematronHelper);
            FieldNotInitializedException.ThrowIfNull(this, ref _endpointUserManager);
        }
Example #30
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _flowDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _messageBodyFilePaths);
            FieldNotInitializedException.ThrowIfNull(this, ref _fromEmailAddress);
            FieldNotInitializedException.ThrowIfNull(this, ref _notificationDao);

            FieldNotInitializedException.ThrowIfEmptyString(this, ref _smtpHost);
            FieldNotInitializedException.ThrowIfZero(this, ref _smtpPort);
            FieldNotInitializedException.ThrowIfEmptyString(this, ref _adminInterfaceUrl);

            // Make sure all of the files are present
            foreach (KeyValuePair <string, string> pair in MessageBodyFilePaths)
            {
                FieldNotInitializedException.ThrowIfRelativeFileMissing(pair.Value);
            }
        }