Show / Hide Table of Contents

Class PortalController

Inheritance
object
ServiceLocator<IPortalController, PortalController>
PortalController
Implements
IPortalController
Inherited Members
ServiceLocator<IPortalController, PortalController>.SetTestableInstance(IPortalController)
ServiceLocator<IPortalController, PortalController>.ClearInstance()
ServiceLocator<IPortalController, PortalController>.GetFactory()
ServiceLocator<IPortalController, PortalController>.Instance
ServiceLocator<IPortalController, PortalController>.Factory
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Entities.Portals
Assembly: DotNetNuke.dll
Syntax
public class PortalController : ServiceLocator<IPortalController, PortalController>, IPortalController

Constructors

PortalController()

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.0. Please use overload with IBusinessControllerProvider. Scheduled removal in v12.0.0.")]
public PortalController()

PortalController(IBusinessControllerProvider)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IHostSettings. Scheduled removal in v12.0.0.")]
public PortalController(IBusinessControllerProvider businessControllerProvider)
Parameters
Type Name Description
IBusinessControllerProvider businessControllerProvider

PortalController(IBusinessControllerProvider, IHostSettings, IApplicationStatusInfo, IEventLogger)

Declaration
public PortalController(IBusinessControllerProvider businessControllerProvider, IHostSettings hostSettings, IApplicationStatusInfo appStatus, IEventLogger eventLogger)
Parameters
Type Name Description
IBusinessControllerProvider businessControllerProvider
IHostSettings hostSettings
IApplicationStatusInfo appStatus
IEventLogger eventLogger

Fields

HttpContextKeyPortalSettingsDictionary

Declaration
protected const string HttpContextKeyPortalSettingsDictionary = "PortalSettingsDictionary{0}{1}"
Field Value
Type Description
string

Methods

AddPortalAlias(int, string)

Declaration
public void AddPortalAlias(int portalId, string portalAlias)
Parameters
Type Name Description
int portalId
string portalAlias

AddPortalDictionary(IHostSettings, DataProvider, int, int)

Declaration
public static void AddPortalDictionary(IHostSettings hostSettings, DataProvider dataProvider, int portalId, int tabId)
Parameters
Type Name Description
IHostSettings hostSettings
DataProvider dataProvider
int portalId
int tabId

AddPortalDictionary(int, int)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IHostSettings. Scheduled for removal in v12.0.0.")]
public static void AddPortalDictionary(int portalId, int tabId)
Parameters
Type Name Description
int portalId
int tabId

CheckDesktopModulesInstalled(XPathNavigator)

Declaration
public static string CheckDesktopModulesInstalled(XPathNavigator nav)
Parameters
Type Name Description
XPathNavigator nav
Returns
Type Description
string

CopyPageTemplate(string, string)

Declaration
public void CopyPageTemplate(string templateFile, string mappedHomeDirectory)
Parameters
Type Name Description
string templateFile
string mappedHomeDirectory

CreateChildPortalFolder(string)

Declaration
public static string CreateChildPortalFolder(string childPath)
Parameters
Type Name Description
string childPath
Returns
Type Description
string

CreatePortal(string, UserInfo, string, string, IPortalTemplateInfo, string, string, string, string, bool)

Declaration
public int CreatePortal(string portalName, UserInfo adminUser, string description, string keyWords, IPortalTemplateInfo template, string homeDirectory, string portalAlias, string serverPath, string childPath, bool isChildPortal)
Parameters
Type Name Description
string portalName
UserInfo adminUser
string description
string keyWords
IPortalTemplateInfo template
string homeDirectory
string portalAlias
string serverPath
string childPath
bool isChildPortal
Returns
Type Description
int

CreatePortal(string, UserInfo, string, string, PortalTemplateInfo, string, string, string, string, bool)

Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use DotNetNuke.Entities.Portals.Templates.PortalTemplateInfo instead. Scheduled for removal in v11.0.0.")]
public int CreatePortal(string portalName, UserInfo adminUser, string description, string keyWords, PortalController.PortalTemplateInfo template, string homeDirectory, string portalAlias, string serverPath, string childPath, bool isChildPortal)
Parameters
Type Name Description
string portalName
UserInfo adminUser
string description
string keyWords
PortalController.PortalTemplateInfo template
string homeDirectory
string portalAlias
string serverPath
string childPath
bool isChildPortal
Returns
Type Description
int

CreatePortal(string, int, string, string, IPortalTemplateInfo, string, string, string, string, bool)

Declaration
public int CreatePortal(string portalName, int adminUserId, string description, string keyWords, IPortalTemplateInfo template, string homeDirectory, string portalAlias, string serverPath, string childPath, bool isChildPortal)
Parameters
Type Name Description
string portalName
int adminUserId
string description
string keyWords
IPortalTemplateInfo template
string homeDirectory
string portalAlias
string serverPath
string childPath
bool isChildPortal
Returns
Type Description
int

CreatePortal(string, int, string, string, PortalTemplateInfo, string, string, string, string, bool)

Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use DotNetNuke.Entities.Portals.Templates.PortalTemplateInfo instead. Scheduled for removal in v11.0.0.")]
public int CreatePortal(string portalName, int adminUserId, string description, string keyWords, PortalController.PortalTemplateInfo template, string homeDirectory, string portalAlias, string serverPath, string childPath, bool isChildPortal)
Parameters
Type Name Description
string portalName
int adminUserId
string description
string keyWords
PortalController.PortalTemplateInfo template
string homeDirectory
string portalAlias
string serverPath
string childPath
bool isChildPortal
Returns
Type Description
int

DeleteExpiredPortals(IPortalController, DataProvider, IPortalAliasService, string)

Declaration
public static void DeleteExpiredPortals(IPortalController portalController, DataProvider dataProvider, IPortalAliasService portalAliasService, string serverPath)
Parameters
Type Name Description
IPortalController portalController
DataProvider dataProvider
IPortalAliasService portalAliasService
string serverPath

DeleteExpiredPortals(string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static void DeleteExpiredPortals(string serverPath)
Parameters
Type Name Description
string serverPath

DeletePortal(IPortalController, IPortalAliasService, IPortalInfo, string)

Declaration
public static string DeletePortal(IPortalController portalController, IPortalAliasService portalAliasService, IPortalInfo portal, string serverPath)
Parameters
Type Name Description
IPortalController portalController
IPortalAliasService portalAliasService
IPortalInfo portal
string serverPath
Returns
Type Description
string

DeletePortal(PortalInfo, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static string DeletePortal(PortalInfo portal, string serverPath)
Parameters
Type Name Description
PortalInfo portal
string serverPath
Returns
Type Description
string

DeletePortalFolder(string, string)

Declaration
public static void DeletePortalFolder(string serverPath, string portalFolder)
Parameters
Type Name Description
string serverPath
string portalFolder

DeletePortalSetting(DataProvider, IEventLogger, IUserController, int, string)

Declaration
public static void DeletePortalSetting(DataProvider dataProvider, IEventLogger eventLogger, IUserController userController, int portalId, string settingName)
Parameters
Type Name Description
DataProvider dataProvider
IEventLogger eventLogger
IUserController userController
int portalId
string settingName

DeletePortalSetting(DataProvider, IEventLogger, IUserController, int, string, string)

Declaration
public static void DeletePortalSetting(DataProvider dataProvider, IEventLogger eventLogger, IUserController userController, int portalId, string settingName, string cultureCode)
Parameters
Type Name Description
DataProvider dataProvider
IEventLogger eventLogger
IUserController userController
int portalId
string settingName
string cultureCode

DeletePortalSetting(int, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with DataProvider. Scheduled for removal in v12.0.0.")]
public static void DeletePortalSetting(int portalID, string settingName)
Parameters
Type Name Description
int portalID
string settingName

DeletePortalSetting(int, string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with DataProvider. Scheduled for removal in v12.0.0.")]
public static void DeletePortalSetting(int portalID, string settingName, string cultureCode)
Parameters
Type Name Description
int portalID
string settingName
string cultureCode

DeletePortalSettings(DataProvider, IEventLogger, IUserController, int)

Declaration
public static void DeletePortalSettings(DataProvider dataProvider, IEventLogger eventLogger, IUserController userController, int portalId)
Parameters
Type Name Description
DataProvider dataProvider
IEventLogger eventLogger
IUserController userController
int portalId

DeletePortalSettings(DataProvider, IEventLogger, IUserController, int, string)

Declaration
public static void DeletePortalSettings(DataProvider dataProvider, IEventLogger eventLogger, IUserController userController, int portalId, string cultureCode)
Parameters
Type Name Description
DataProvider dataProvider
IEventLogger eventLogger
IUserController userController
int portalId
string cultureCode

DeletePortalSettings(int)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with DataProvider. Scheduled for removal in v12.0.0.")]
public static void DeletePortalSettings(int portalID)
Parameters
Type Name Description
int portalID

DeletePortalSettings(int, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with DataProvider. Scheduled for removal in v12.0.0.")]
public static void DeletePortalSettings(int portalID, string cultureCode)
Parameters
Type Name Description
int portalID
string cultureCode

GetActivePortalLanguage(IHostSettings, IApplicationStatusInfo, int)

Declaration
public static string GetActivePortalLanguage(IHostSettings hostSettings, IApplicationStatusInfo appStatus, int portalId)
Parameters
Type Name Description
IHostSettings hostSettings
IApplicationStatusInfo appStatus
int portalId
Returns
Type Description
string

GetActivePortalLanguage(int)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IHostSettings. Scheduled for removal in v12.0.0.")]
public static string GetActivePortalLanguage(int portalID)
Parameters
Type Name Description
int portalID
Returns
Type Description
string

GetAvailablePortalTemplates()

Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use DotNetNuke.Entities.Portals.Templates.PortalTemplateController.Instance.GetPortalTemplates instead. Scheduled for removal in v11.0.0.")]
public IList<PortalController.PortalTemplateInfo> GetAvailablePortalTemplates()
Returns
Type Description
IList<PortalController.PortalTemplateInfo>

GetEffectivePortalId(IPortalController, IApplicationStatusInfo, IPortalGroupController, int)

Declaration
public static int GetEffectivePortalId(IPortalController portalController, IApplicationStatusInfo appStatus, IPortalGroupController portalGroupController, int portalId)
Parameters
Type Name Description
IPortalController portalController
IApplicationStatusInfo appStatus
IPortalGroupController portalGroupController
int portalId
Returns
Type Description
int

GetEffectivePortalId(int)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static int GetEffectivePortalId(int portalId)
Parameters
Type Name Description
int portalId
Returns
Type Description
int

GetEncryptedString(IHostSettings, IPortalController, string, int, string)

Declaration
public static string GetEncryptedString(IHostSettings hostSettings, IPortalController portalController, string settingName, int portalId, string passPhrase)
Parameters
Type Name Description
IHostSettings hostSettings
IPortalController portalController
string settingName
int portalId
string passPhrase
Returns
Type Description
string

GetEncryptedString(string, int, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Use overload taking IHostSettings. Scheduled for removal in v12.0.0.")]
public static string GetEncryptedString(string settingName, int portalID, string passPhrase)
Parameters
Type Name Description
string settingName
int portalID
string passPhrase
Returns
Type Description
string

GetExpiredPortals()

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with DataProvider. Scheduled for removal in v12.0.0.")]
public static ArrayList GetExpiredPortals()
Returns
Type Description
ArrayList

GetExpiredPortals(DataProvider)

Declaration
public static ArrayList GetExpiredPortals(DataProvider dataProvider)
Parameters
Type Name Description
DataProvider dataProvider
Returns
Type Description
ArrayList

GetFactory()

Declaration
protected override Func<IPortalController> GetFactory()
Returns
Type Description
Func<IPortalController>
Overrides
ServiceLocator<IPortalController, PortalController>.GetFactory()

GetPortal(Guid)

Declaration
public PortalInfo GetPortal(Guid uniqueId)
Parameters
Type Name Description
Guid uniqueId
Returns
Type Description
PortalInfo

GetPortal(int)

Declaration
public PortalInfo GetPortal(int portalId)
Parameters
Type Name Description
int portalId
Returns
Type Description
PortalInfo

GetPortal(int, string)

Declaration
public PortalInfo GetPortal(int portalId, string cultureCode)
Parameters
Type Name Description
int portalId
string cultureCode
Returns
Type Description
PortalInfo

GetPortalDefaultLanguage(IHostSettings, int)

Declaration
public static string GetPortalDefaultLanguage(IHostSettings hostSettings, int portalId)
Parameters
Type Name Description
IHostSettings hostSettings
int portalId
Returns
Type Description
string

GetPortalDefaultLanguage(int)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IHostSettings. Scheduled for removal in v12.0.0.")]
public static string GetPortalDefaultLanguage(int portalID)
Parameters
Type Name Description
int portalID
Returns
Type Description
string

GetPortalDictionary()

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IHostSettings. Scheduled for removal in v12.0.0.")]
public static Dictionary<int, int> GetPortalDictionary()
Returns
Type Description
Dictionary<int, int>

GetPortalDictionary(IHostSettings, DataProvider)

Declaration
public static Dictionary<int, int> GetPortalDictionary(IHostSettings hostSettings, DataProvider dataProvider)
Parameters
Type Name Description
IHostSettings hostSettings
DataProvider dataProvider
Returns
Type Description
Dictionary<int, int>

GetPortalFolder(string)

Declaration
public static string GetPortalFolder(string alias)
Parameters
Type Name Description
string alias
Returns
Type Description
string

GetPortalList(string)

Declaration
public List<PortalInfo> GetPortalList(string cultureCode)
Parameters
Type Name Description
string cultureCode
Returns
Type Description
List<PortalInfo>

GetPortalSetting(IPortalController, string, int, string)

Declaration
public static string GetPortalSetting(IPortalController portalController, string settingName, int portalId, string defaultValue)
Parameters
Type Name Description
IPortalController portalController
string settingName
int portalId
string defaultValue
Returns
Type Description
string

GetPortalSetting(IPortalController, string, int, string, string)

Declaration
public static string GetPortalSetting(IPortalController portalController, string settingName, int portalId, string defaultValue, string cultureCode)
Parameters
Type Name Description
IPortalController portalController
string settingName
int portalId
string defaultValue
string cultureCode
Returns
Type Description
string

GetPortalSetting(string, int, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static string GetPortalSetting(string settingName, int portalID, string defaultValue)
Parameters
Type Name Description
string settingName
int portalID
string defaultValue
Returns
Type Description
string

GetPortalSetting(string, int, string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static string GetPortalSetting(string settingName, int portalID, string defaultValue, string cultureCode)
Parameters
Type Name Description
string settingName
int portalID
string defaultValue
string cultureCode
Returns
Type Description
string

GetPortalSettingAsBoolean(IHostSettings, IApplicationStatusInfo, string, int, bool, string)

Declaration
public static bool GetPortalSettingAsBoolean(IHostSettings hostSettings, IApplicationStatusInfo appStatus, string key, int portalId, bool defaultValue, string cultureCode)
Parameters
Type Name Description
IHostSettings hostSettings
IApplicationStatusInfo appStatus
string key
int portalId
bool defaultValue
string cultureCode
Returns
Type Description
bool

GetPortalSettingAsBoolean(IPortalController, string, int, bool)

Declaration
public static bool GetPortalSettingAsBoolean(IPortalController portalController, string key, int portalId, bool defaultValue)
Parameters
Type Name Description
IPortalController portalController
string key
int portalId
bool defaultValue
Returns
Type Description
bool

GetPortalSettingAsBoolean(string, int, bool)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static bool GetPortalSettingAsBoolean(string key, int portalID, bool defaultValue)
Parameters
Type Name Description
string key
int portalID
bool defaultValue
Returns
Type Description
bool

GetPortalSettingAsBoolean(string, int, bool, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IHostSettings. Scheduled for removal in v12.0.0.")]
public static bool GetPortalSettingAsBoolean(string key, int portalID, bool defaultValue, string cultureCode)
Parameters
Type Name Description
string key
int portalID
bool defaultValue
string cultureCode
Returns
Type Description
bool

GetPortalSettingAsDouble(IPortalController, string, int, double)

Declaration
public static double GetPortalSettingAsDouble(IPortalController portalController, string key, int portalId, double defaultValue)
Parameters
Type Name Description
IPortalController portalController
string key
int portalId
double defaultValue
Returns
Type Description
double

GetPortalSettingAsDouble(string, int, double)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static double GetPortalSettingAsDouble(string key, int portalId, double defaultValue)
Parameters
Type Name Description
string key
int portalId
double defaultValue
Returns
Type Description
double

GetPortalSettingAsInteger(IHostSettings, IApplicationStatusInfo, string, int, int, string)

Declaration
public static int GetPortalSettingAsInteger(IHostSettings hostSettings, IApplicationStatusInfo appStatus, string key, int portalId, int defaultValue, string cultureCode)
Parameters
Type Name Description
IHostSettings hostSettings
IApplicationStatusInfo appStatus
string key
int portalId
int defaultValue
string cultureCode
Returns
Type Description
int

GetPortalSettingAsInteger(IPortalController, string, int, int)

Declaration
public static int GetPortalSettingAsInteger(IPortalController portalController, string key, int portalId, int defaultValue)
Parameters
Type Name Description
IPortalController portalController
string key
int portalId
int defaultValue
Returns
Type Description
int

GetPortalSettingAsInteger(string, int, int)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static int GetPortalSettingAsInteger(string key, int portalID, int defaultValue)
Parameters
Type Name Description
string key
int portalID
int defaultValue
Returns
Type Description
int

GetPortalSettingAsInteger(string, int, int, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IHostSettings. Scheduled for removal in v12.0.0.")]
public static int GetPortalSettingAsInteger(string key, int portalID, int defaultValue, string cultureCode)
Parameters
Type Name Description
string key
int portalID
int defaultValue
string cultureCode
Returns
Type Description
int

GetPortalSettings(int)

Declaration
public Dictionary<string, string> GetPortalSettings(int portalId)
Parameters
Type Name Description
int portalId
Returns
Type Description
Dictionary<string, string>

GetPortalSettings(int, string)

Declaration
public Dictionary<string, string> GetPortalSettings(int portalId, string cultureCode)
Parameters
Type Name Description
int portalId
string cultureCode
Returns
Type Description
Dictionary<string, string>

GetPortalSpaceUsedBytes(int)

Declaration
public long GetPortalSpaceUsedBytes(int portalId)
Parameters
Type Name Description
int portalId
Returns
Type Description
long

GetPortalTemplate(string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use DotNetNuke.Entities.Portals.Templates.PortalTemplateController.Instance.GetPortalTemplate instead. Scheduled for removal in v11.0.0.")]
public PortalController.PortalTemplateInfo GetPortalTemplate(string templatePath, string cultureCode)
Parameters
Type Name Description
string templatePath
string cultureCode
Returns
Type Description
PortalController.PortalTemplateInfo

GetPortals()

Declaration
public ArrayList GetPortals()
Returns
Type Description
ArrayList

GetPortalsByName(DataProvider, string, int, int, ref int)

Declaration
public static ArrayList GetPortalsByName(DataProvider dataProvider, string nameToMatch, int pageIndex, int pageSize, ref int totalRecords)
Parameters
Type Name Description
DataProvider dataProvider
string nameToMatch
int pageIndex
int pageSize
int totalRecords
Returns
Type Description
ArrayList

GetPortalsByName(string, int, int, ref int)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with DataProvider. Scheduled for removal in v12.0.0.")]
public static ArrayList GetPortalsByName(string nameToMatch, int pageIndex, int pageSize, ref int totalRecords)
Parameters
Type Name Description
string nameToMatch
int pageIndex
int pageSize
int totalRecords
Returns
Type Description
ArrayList

GetPortalsByUser(DataProvider, int)

Declaration
public static ArrayList GetPortalsByUser(DataProvider dataProvider, int userId)
Parameters
Type Name Description
DataProvider dataProvider
int userId
Returns
Type Description
ArrayList

GetPortalsByUser(int)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with DataProvider. Scheduled for removal in v12.0.0.")]
public static ArrayList GetPortalsByUser(int userId)
Parameters
Type Name Description
int userId
Returns
Type Description
ArrayList

HasSpaceAvailable(int, long)

Declaration
public bool HasSpaceAvailable(int portalId, long fileSizeBytes)
Parameters
Type Name Description
int portalId
long fileSizeBytes
Returns
Type Description
bool

IncrementCrmVersion(IPortalController, int)

Declaration
public static void IncrementCrmVersion(IPortalController portalController, int portalId)
Parameters
Type Name Description
IPortalController portalController
int portalId

IncrementCrmVersion(int)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static void IncrementCrmVersion(int portalID)
Parameters
Type Name Description
int portalID

IncrementOverridingPortalsCrmVersion()

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static void IncrementOverridingPortalsCrmVersion()

IncrementOverridingPortalsCrmVersion(IPortalController)

Declaration
public static void IncrementOverridingPortalsCrmVersion(IPortalController portalController)
Parameters
Type Name Description
IPortalController portalController

IsChildPortal(IPortalAliasService, IPortalInfo, string)

Declaration
public static bool IsChildPortal(IPortalAliasService portalAliasService, IPortalInfo portal, string serverPath)
Parameters
Type Name Description
IPortalAliasService portalAliasService
IPortalInfo portal
string serverPath
Returns
Type Description
bool

IsChildPortal(PortalInfo, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalAliasService. Scheduled for removal in v12.0.0.")]
public static bool IsChildPortal(PortalInfo portal, string serverPath)
Parameters
Type Name Description
PortalInfo portal
string serverPath
Returns
Type Description
bool

IsMemberOfPortalGroup(IPortalController, int)

Declaration
public static bool IsMemberOfPortalGroup(IPortalController portalController, int portalId)
Parameters
Type Name Description
IPortalController portalController
int portalId
Returns
Type Description
bool

IsMemberOfPortalGroup(int)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static bool IsMemberOfPortalGroup(int portalId)
Parameters
Type Name Description
int portalId
Returns
Type Description
bool

MapLocalizedSpecialPages(int, string)

Declaration
public void MapLocalizedSpecialPages(int portalId, string cultureCode)
Parameters
Type Name Description
int portalId
string cultureCode

ParseTemplate(int, PortalTemplateInfo, int, PortalTemplateModuleAction, bool)

Declaration
[Obsolete("Deprecated in DotNetNuke 9.11.1. Use DotNetNuke.Entities.Portals.Templates.PortalTemplateController.Instance.ApplyPortalTemplate instead. Scheduled for removal in v11.0.0.")]
public void ParseTemplate(int portalId, PortalController.PortalTemplateInfo template, int administratorId, PortalTemplateModuleAction mergeTabs, bool isNewPortal)
Parameters
Type Name Description
int portalId
PortalController.PortalTemplateInfo template
int administratorId
PortalTemplateModuleAction mergeTabs
bool isNewPortal

ProcessResourceFileExplicit(string, string)

Declaration
public void ProcessResourceFileExplicit(string portalPath, string resoureceFile)
Parameters
Type Name Description
string portalPath
string resoureceFile

RemovePortalLocalization(int, string, bool)

Declaration
public void RemovePortalLocalization(int portalId, string cultureCode, bool clearCache = true)
Parameters
Type Name Description
int portalId
string cultureCode
bool clearCache

UpdateEncryptedString(IHostSettings, int, string, string, string)

Declaration
public static void UpdateEncryptedString(IHostSettings hostSettings, int portalId, string settingName, string settingValue, string passPhrase)
Parameters
Type Name Description
IHostSettings hostSettings
int portalId
string settingName
string settingValue
string passPhrase

UpdateEncryptedString(int, string, string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Use overload taking IHostSettings. Scheduled for removal in v12.0.0.")]
public static void UpdateEncryptedString(int portalID, string settingName, string settingValue, string passPhrase)
Parameters
Type Name Description
int portalID
string settingName
string settingValue
string passPhrase

UpdatePortalDefaultLanguage(DataProvider, int, string)

Declaration
public static void UpdatePortalDefaultLanguage(DataProvider dataProvider, int portalId, string cultureCode)
Parameters
Type Name Description
DataProvider dataProvider
int portalId
string cultureCode

UpdatePortalDefaultLanguage(int, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with DataProvider. Scheduled for removal in v12.0.0.")]
public static void UpdatePortalDefaultLanguage(int portalID, string cultureCode)
Parameters
Type Name Description
int portalID
string cultureCode

UpdatePortalExpiry(int, string)

Declaration
public void UpdatePortalExpiry(int portalId, string cultureCode)
Parameters
Type Name Description
int portalId
string cultureCode

UpdatePortalInfo(PortalInfo)

Declaration
public void UpdatePortalInfo(PortalInfo portal)
Parameters
Type Name Description
PortalInfo portal

UpdatePortalSetting(IPortalController, int, string, string)

Declaration
public static void UpdatePortalSetting(IPortalController portalController, int portalId, string settingName, string settingValue)
Parameters
Type Name Description
IPortalController portalController
int portalId
string settingName
string settingValue

UpdatePortalSetting(IPortalController, int, string, string, bool)

Declaration
public static void UpdatePortalSetting(IPortalController portalController, int portalId, string settingName, string settingValue, bool clearCache)
Parameters
Type Name Description
IPortalController portalController
int portalId
string settingName
string settingValue
bool clearCache

UpdatePortalSetting(IPortalController, int, string, string, bool, string)

Declaration
public static void UpdatePortalSetting(IPortalController portalController, int portalId, string settingName, string settingValue, bool clearCache, string cultureCode)
Parameters
Type Name Description
IPortalController portalController
int portalId
string settingName
string settingValue
bool clearCache
string cultureCode

UpdatePortalSetting(IPortalController, int, string, string, bool, string, bool)

Declaration
public static void UpdatePortalSetting(IPortalController portalController, int portalId, string settingName, string settingValue, bool clearCache, string cultureCode, bool isSecure)
Parameters
Type Name Description
IPortalController portalController
int portalId
string settingName
string settingValue
bool clearCache
string cultureCode
bool isSecure

UpdatePortalSetting(int, string, string)

Declaration
public static void UpdatePortalSetting(int portalID, string settingName, string settingValue)
Parameters
Type Name Description
int portalID
string settingName
string settingValue

UpdatePortalSetting(int, string, string, bool)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static void UpdatePortalSetting(int portalID, string settingName, string settingValue, bool clearCache)
Parameters
Type Name Description
int portalID
string settingName
string settingValue
bool clearCache

UpdatePortalSetting(int, string, string, bool, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static void UpdatePortalSetting(int portalID, string settingName, string settingValue, bool clearCache, string cultureCode)
Parameters
Type Name Description
int portalID
string settingName
string settingValue
bool clearCache
string cultureCode

UpdatePortalSetting(int, string, string, bool, string, bool)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.0.2. Please use overload with IPortalController. Scheduled for removal in v12.0.0.")]
public static void UpdatePortalSetting(int portalID, string settingName, string settingValue, bool clearCache, string cultureCode, bool isSecure)
Parameters
Type Name Description
int portalID
string settingName
string settingValue
bool clearCache
string cultureCode
bool isSecure

UpdatePortalSetting(int, string, string, string)

Declaration
[Obsolete("Deprecated in DotNetNuke 9.2.0. Use the overload with the 'isSecure' parameter instead. Scheduled for removal in v11.0.0.")]
public static void UpdatePortalSetting(int portalID, string settingName, string settingValue, string cultureCode)
Parameters
Type Name Description
int portalID
string settingName
string settingValue
string cultureCode

Implements

IPortalController

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS