Esempio n. 1
0
        static UserManager()
        {
#if LEADTOOLS_V19_OR_LATER
            userAgent = GetDataAccess <IUserManagementDataAccessAgent4>(new UserManagementDataAccessConfigurationView2(GlobalPacsConfiguration, DicomDemoSettingsManager.ProductNameStorageServer, null));
#else
            userAgent = GetDataAccess <IUserManagementDataAccessAgent2>(new UserManagementDataAccessConfigurationView2(GlobalPacsConfiguration, DicomDemoSettingsManager.ProductNameStorageServer, null));
#endif
            permissionsAgent  = GetDataAccess <IPermissionManagementDataAccessAgent>(new PermissionManagementDataAccessConfigurationView(GlobalPacsConfiguration, DicomDemoSettingsManager.ProductNameStorageServer, null));
            optionsAgent      = GetDataAccess <IOptionsDataAccessAgent>(new OptionsDataAccessConfigurationView(GlobalPacsConfiguration, DicomDemoSettingsManager.ProductNameStorageServer, null));
            permissionsAgent2 = GetDataAccess <IPermissionManagementDataAccessAgent2>(new PermissionManagementDataAccessConfigurationView(GlobalPacsConfiguration, DicomDemoSettingsManager.ProductNameStorageServer, null));
        }
Esempio n. 2
0
        public void RunView(PasswordOptionsView view)
        {
            EventBroker.Instance.Subscribe <BackgroundProcessEventAgs>(OnBackgroundProcess);

            View = view;

#if LEADTOOLS_V19_OR_LATER
            _userAgent3 = DataAccessServices.GetDataAccessService <IUserManagementDataAccessAgent4>();
            _userAgent2 = DataAccessServices.GetDataAccessService <IUserManagementDataAccessAgent2>();
#else
            _userAgent2 = DataAccessServices.GetDataAccessService <IUserManagementDataAccessAgent2>();
#endif
            _permissionAgent = DataAccessServices.GetDataAccessService <IPermissionManagementDataAccessAgent2>();

#if LEADTOOLS_V19_OR_LATER
            UpdateUsersList();
#endif

            _optionsAgent = DataAccessServices.GetDataAccessService <IOptionsDataAccessAgent>();
            View.Options  = _optionsAgent.Get <PasswordOptions>(PasswordOptions, new PasswordOptions());

            View.SettingsChanged += new EventHandler(View_SettingsChanged);

            // Administration: Password Options
            View.ComplexityLowerCaseChanged += new EventHandler(View_ComplexityLowerCaseChanged);
            View.ComplexityUpperCaseChanged += new EventHandler(View_ComplexityUpperCaseChanged);
            View.ComplexitySymbolChanged    += new EventHandler(View_ComplexitySymbolChanged);
            View.ComplexityNumberChanged    += new EventHandler(View_ComplexityNumberChanged);
            View.MinimumLengthChanged       += new EventHandler(View_MinimumLengthChanged);
            View.DaysToExpirationChanged    += new EventHandler(View_DaysToExpirationChanged);
            View.MaximumRememberedChanged   += new EventHandler(View_MaximumRememberedChanged);
            View.IdleTimeoutEnableChanged   += new EventHandler(View_IdleTimeoutEnableChanged);
            View.IdleTimeoutChanged         += new EventHandler(View_IdleTimeoutChanged);
            View.LoginTypeChanged           += new EventHandler(View_LoginTypeChanged);

            if (View.Options.EnableIdleTimeout)
            {
                StartIdleMonitor();
            }
        }
Esempio n. 3
0
 static RoleManager()
 {
     _BuiltInRoles.Add(Admin);
     permissionsAgent = GetDataAccess <IPermissionManagementDataAccessAgent2>(new PermissionManagementDataAccessConfigurationView(DicomDemoSettingsManager.GetGlobalPacsConfiguration(), DicomDemoSettingsManager.ProductNameStorageServer, null));
 }
Esempio n. 4
0
 public ExportAddin(IStorageDataAccessAgent3 dataAccessAgent, IAuthorizedStorageDataAccessAgent2 authAgent, Lazy <IExternalStoreDataAccessAgent> externalStoreAgent, ILoggingDataAccessAgent loggingAgent, string storageServerServicePath, IStoreAddin storeAddin, IOptionsDataAccessAgent optionsAgent, IPermissionManagementDataAccessAgent2 permissionsAgent, Leadtools.Dicom.Imaging.IDataCacheProvider dataCache)
 {
     _DataAccessAgent     = dataAccessAgent;
     _Exporter            = new Exporter(dataAccessAgent);
     _ObjectRetrieveAddIn = new ObjectRetrieveAddin(dataAccessAgent, externalStoreAgent, loggingAgent, storageServerServicePath, optionsAgent, permissionsAgent, authAgent, dataCache);
     _StoreAddin          = storeAddin;
     _QueryAddIn          = new DatabaseQueryAddin(authAgent, optionsAgent, permissionsAgent, externalStoreAgent, loggingAgent, storageServerServicePath, null, dataCache);
 }
Esempio n. 5
0
 static UserManager()
 {
     userAgent         = Program.GetUserAgent(GlobalPacsConfiguration);
     permissionsAgent2 = Program.GetPermissionsAgent(GlobalPacsConfiguration);
     optionsAgent      = Program.GetOptionsAgent(GlobalPacsConfiguration);
 }