/// <summary>
 /// Saves the specified global setting.
 /// </summary>
 /// <param name="globalSetting">The global setting.</param>
 public static void Save(GlobalSetting globalSetting)
 {
     try
     {
         DataAccessFactory.GetDataInterface <IGlobalSettingData>().Save(globalSetting);
     }
     catch (ConcurrencyException ex)
     {
         LogicBase.SetConcurrencyUserSafeMessage(ex, "Global setting");
         throw;
     }
 }
Beispiel #2
0
        public static void Save(ApplicationServer applicationServer)
        {
            if (applicationServer == null)
            {
                throw new ArgumentNullException("applicationServer");
            }

            try
            {
                DataAccessFactory.GetDataInterface <IApplicationServerData>().Save(applicationServer);
            }
            catch (ConcurrencyException ex)
            {
                LogicBase.SetConcurrencyUserSafeMessage(ex, applicationServer.Name);
                throw;
            }
        }
Beispiel #3
0
        public static void SaveActiveDirectoryInfo(ActiveDirectoryInfo adInfo)
        {
            if (adInfo == null)
            {
                throw new ArgumentNullException("adInfo");
            }

            try
            {
                DataAccessFactory.GetDataInterface <ISecurityData>().SaveActiveDirectoryInfo(adInfo);
            }
            catch (ConcurrencyException ex)
            {
                LogicBase.SetConcurrencyUserSafeMessage(ex, adInfo.Id);
                throw;
            }
        }
Beispiel #4
0
        public static void Save(AdGroupWithRoles groupWithRoles)
        {
            if (groupWithRoles == null)
            {
                throw new ArgumentNullException("groupWithRoles");
            }

            try
            {
                DataAccessFactory.GetDataInterface <ISecurityData>().Save(groupWithRoles);
            }
            catch (ConcurrencyException ex)
            {
                LogicBase.SetConcurrencyUserSafeMessage(ex, groupWithRoles.AdGroupName);
                throw;
            }
        }
Beispiel #5
0
        public static void Save(CustomVariableGroup customVariableGroup)
        {
            if (customVariableGroup == null)
            {
                throw new ArgumentNullException("customVariableGroup");
            }

            try
            {
                DataAccessFactory.GetDataInterface <ICustomVariableGroupData>().Save(customVariableGroup);
            }
            catch (ConcurrencyException ex)
            {
                LogicBase.SetConcurrencyUserSafeMessage(ex, customVariableGroup.Name);
                throw;
            }
        }