/// <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);
 }
 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);
 }
Example #3
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 #4
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 #6
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _requestManager);
            FieldNotInitializedException.ThrowIfNull(this, ref _documentManager);
        }
Example #7
0
        public void Init()
        {
            FieldNotInitializedException.ThrowIfEmptyString(this, ref _repositoryDirectoryPath);
            FieldNotInitializedException.ThrowIfEmptyString(this, ref _documentExtension);

            if (!Directory.Exists(_repositoryDirectoryPath))
            {
                throw new DirectoryNotFoundException(string.Format("Repository directory does not exist: \"{0}\"",
                                                                   _repositoryDirectoryPath));
            }

            string testFilePath = Path.Combine(_repositoryDirectoryPath, Guid.NewGuid().ToString());

            try
            {
                LOG.Debug("Configuring DocumentContentManager with: " + _repositoryDirectoryPath);

                LOG.Debug("Writing test file to assure the provider has necessary rights: " + testFilePath);
                File.WriteAllText(testFilePath, DateTime.Now.ToString());

                LOG.Debug("Deleting test file to ensure the provider has necessary rights: " + testFilePath);
                File.Delete(testFilePath);

                LOG.Debug("OK");
            }
            catch (Exception ex)
            {
                FileUtils.SafeDeleteFile(testFilePath);
                throw new UnauthorizedAccessException(string.Format("Repository directory is not writable: \"{0}\"",
                                                                    _repositoryDirectoryPath), ex);
            }
        }
        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 #10
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 #11
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 #12
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 #14
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 #16
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 #18
0
        new public void Init()
        {
            base.Init();

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

            Load();
        }
Example #19
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 #21
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 #23
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 #24
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 #28
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 #29
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 #30
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);
        }