public static void DeleteAuthentication(AuthenticationInfo authSystem)
 {
     provider.DeleteAuthentication(authSystem.AuthenticationID);
     Services.Log.EventLog.EventLogController objEventLog = new Services.Log.EventLog.EventLogController();
     objEventLog.AddLog(authSystem, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", Log.EventLog.EventLogController.EventLogType.AUTHENTICATION_DELETED);
 }
 public static int AddPackage(PackageInfo package, bool includeDetail)
 {
     int packageID = provider.AddPackage(package.PortalID, package.Name, package.FriendlyName, package.Description, package.PackageType, package.Version.ToString(3), package.License, package.Manifest, package.Owner, package.Organization,
     package.Url, package.Email, package.ReleaseNotes, package.IsSystemPackage, UserController.GetCurrentUserInfo().UserID);
     Services.Log.EventLog.EventLogController objEventLog = new Services.Log.EventLog.EventLogController();
     objEventLog.AddLog(package, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", Services.Log.EventLog.EventLogController.EventLogType.PACKAGE_CREATED);
     if (includeDetail)
     {
         Locale locale;
         LanguagePackInfo languagePack;
         switch (package.PackageType)
         {
             case "Auth_System":
                 AuthenticationInfo authSystem = new AuthenticationInfo();
                 authSystem.AuthenticationType = package.Name;
                 authSystem.IsEnabled = Null.NullBoolean;
                 authSystem.PackageID = packageID;
                 AuthenticationController.AddAuthentication(authSystem);
                 break;
             case "Container":
             case "Skin":
                 SkinPackageInfo skinPackage = new SkinPackageInfo();
                 skinPackage.SkinName = package.Name;
                 skinPackage.PackageID = packageID;
                 skinPackage.SkinType = package.PackageType;
                 SkinController.AddSkinPackage(skinPackage);
                 break;
             case "CoreLanguagePack":
                 locale = Localization.Localization.GetLocale(PortalController.GetCurrentPortalSettings().DefaultLanguage);
                 languagePack = new LanguagePackInfo();
                 languagePack.PackageID = packageID;
                 languagePack.LanguageID = locale.LanguageID;
                 languagePack.DependentPackageID = -2;
                 LanguagePackController.SaveLanguagePack(languagePack);
                 break;
             case "ExtensionLanguagePack":
                 locale = Localization.Localization.GetLocale(PortalController.GetCurrentPortalSettings().DefaultLanguage);
                 languagePack = new LanguagePackInfo();
                 languagePack.PackageID = packageID;
                 languagePack.LanguageID = locale.LanguageID;
                 languagePack.DependentPackageID = Null.NullInteger;
                 LanguagePackController.SaveLanguagePack(languagePack);
                 break;
             case "Module":
                 DesktopModuleInfo desktopModule = new DesktopModuleInfo();
                 desktopModule.PackageID = packageID;
                 desktopModule.ModuleName = package.Name;
                 desktopModule.FriendlyName = package.FriendlyName;
                 desktopModule.FolderName = package.Name;
                 desktopModule.Description = package.Description;
                 desktopModule.Version = package.Version.ToString(3);
                 desktopModule.SupportedFeatures = 0;
                 int desktopModuleId = DesktopModuleController.SaveDesktopModule(desktopModule, false, true);
                 if (desktopModuleId > Null.NullInteger)
                 {
                     DesktopModuleController.AddDesktopModuleToPortals(desktopModuleId);
                 }
                 break;
             case "SkinObject":
                 SkinControlInfo skinControl = new SkinControlInfo();
                 skinControl.PackageID = packageID;
                 skinControl.ControlKey = package.Name;
                 SkinControlController.SaveSkinControl(skinControl);
                 break;
         }
     }
     return packageID;
 }
 public static int AddAuthentication(AuthenticationInfo authSystem)
 {
     Services.Log.EventLog.EventLogController objEventLog = new Services.Log.EventLog.EventLogController();
     objEventLog.AddLog(authSystem, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", Log.EventLog.EventLogController.EventLogType.AUTHENTICATION_CREATED);
     return provider.AddAuthentication(authSystem.PackageID, authSystem.AuthenticationType, authSystem.IsEnabled, authSystem.SettingsControlSrc, authSystem.LoginControlSrc, authSystem.LogoffControlSrc, UserController.GetCurrentUserInfo().UserID);
 }
 public AuthenticationPackageWriter(AuthenticationInfo authSystem, PackageInfo package)
     : base(package)
 {
     _AuthSystem = authSystem;
     Initialize();
 }
 public AuthenticationPackageWriter(PackageInfo package)
     : base(package)
 {
     _AuthSystem = AuthenticationController.GetAuthenticationServiceByPackageID(package.PackageID);
     Initialize();
 }
 public static void DeleteAuthentication(AuthenticationInfo authSystem)
 {
     provider.DeleteAuthentication(authSystem.AuthenticationID);
     Services.Log.EventLog.EventLogController objEventLog = new Services.Log.EventLog.EventLogController();
     objEventLog.AddLog(authSystem, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", Log.EventLog.EventLogController.EventLogType.AUTHENTICATION_DELETED);
 }
 public static int AddAuthentication(AuthenticationInfo authSystem)
 {
     Services.Log.EventLog.EventLogController objEventLog = new Services.Log.EventLog.EventLogController();
     objEventLog.AddLog(authSystem, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", Log.EventLog.EventLogController.EventLogType.AUTHENTICATION_CREATED);
     return(provider.AddAuthentication(authSystem.PackageID, authSystem.AuthenticationType, authSystem.IsEnabled, authSystem.SettingsControlSrc, authSystem.LoginControlSrc, authSystem.LogoffControlSrc, UserController.GetCurrentUserInfo().UserID));
 }