Class PortalAliasController
PortalAliasController provides method to manage portal alias.
Inheritance
Inherited Members
Namespace: DotNetNuke.Entities.Portals
Assembly: DotNetNuke.dll
Syntax
public class PortalAliasController : ServiceLocator<IPortalAliasController, PortalAliasController>, IPortalAliasController, IPortalAliasService
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
Properties
| Improve this Doc View SourceInstance
PortalAliasController provides method to manage portal alias.
Declaration
public static IPortalAliasController Instance { get; }
Property Value
| Type | Description |
|---|---|
| IPortalAliasController |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
Methods
| Improve this Doc View SourceAddPortalAlias(PortalAliasInfo)
Adds a new Portal Alias.
Declaration
public int AddPortalAlias(PortalAliasInfo portalAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| PortalAliasInfo | portalAlias | The portal alias to add. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The new portal alias ID. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
DeletePortalAlias(PortalAliasInfo)
Deletes an existing portal alias.
Declaration
public void DeletePortalAlias(PortalAliasInfo portalAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| PortalAliasInfo | portalAlias | The portal alias to remove. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
DeletePortalAlias(Int32)
PortalAliasController provides method to manage portal alias.
Declaration
public void DeletePortalAlias(int portalAliasId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalAliasId |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetFactory()
Gets the service locator factory.
Declaration
protected override Func<IPortalAliasController> GetFactory()
Returns
| Type | Description |
|---|---|
| Func<IPortalAliasController> | A factory function. |
Overrides
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAlias(String, Int32)
Gets the portal alias.
Declaration
public PortalAliasInfo GetPortalAlias(string alias, int portalId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | alias | The portal alias. |
| System.Int32 | portalId | The portal ID. |
Returns
| Type | Description |
|---|---|
| PortalAliasInfo | Portal Alias Info. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAlias(String)
Gets the portal alias info.
Declaration
public PortalAliasInfo GetPortalAlias(string alias)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | alias | The portal alias. |
Returns
| Type | Description |
|---|---|
| PortalAliasInfo | Portal alias info. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAliasArrayByPortalID(Int32)
PortalAliasController provides method to manage portal alias.
Declaration
public ArrayList GetPortalAliasArrayByPortalID(int portalID)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalID |
Returns
| Type | Description |
|---|---|
| ArrayList |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAliasByPortal(Int32, String)
Gets the portal alias by portal.
Declaration
public static string GetPortalAliasByPortal(int portalId, string portalAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | The portal id. |
| System.String | portalAlias | The portal alias. |
Returns
| Type | Description |
|---|---|
| System.String | Portal alias. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAliasByPortalAliasID(Int32)
Gets the portal alias by portal alias ID.
Declaration
public PortalAliasInfo GetPortalAliasByPortalAliasID(int portalAliasId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalAliasId | The portal alias ID. |
Returns
| Type | Description |
|---|---|
| PortalAliasInfo | Portal alias info. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAliasByPortalID(Int32)
PortalAliasController provides method to manage portal alias.
Declaration
public PortalAliasCollection GetPortalAliasByPortalID(int portalID)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalID |
Returns
| Type | Description |
|---|---|
| PortalAliasCollection |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAliasByTab(Int32, String)
Gets the portal alias by tab.
Declaration
public static string GetPortalAliasByTab(int tabId, string portalAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | tabId | The tab ID. |
| System.String | portalAlias | The portal alias. |
Returns
| Type | Description |
|---|---|
| System.String | Portal alias. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAliases()
Get all portal aliases.
Declaration
public PortalAliasCollection GetPortalAliases()
Returns
| Type | Description |
|---|---|
| PortalAliasCollection | A collection of portal aliases. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAliasesByPortalId(Int32)
Gets the portal alias by portal alias ID.
Declaration
public IEnumerable<PortalAliasInfo> GetPortalAliasesByPortalId(int portalId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | The portal ID. |
Returns
| Type | Description |
|---|---|
| IEnumerable<PortalAliasInfo> | Portal alias info. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAliasInfo(String)
PortalAliasController provides method to manage portal alias.
Declaration
public static PortalAliasInfo GetPortalAliasInfo(string httpAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | httpAlias |
Returns
| Type | Description |
|---|---|
| PortalAliasInfo |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAliasLookup()
PortalAliasController provides method to manage portal alias.
Declaration
public static PortalAliasCollection GetPortalAliasLookup()
Returns
| Type | Description |
|---|---|
| PortalAliasCollection |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalAliasLookup(String)
PortalAliasController provides method to manage portal alias.
Declaration
public static PortalAliasInfo GetPortalAliasLookup(string httpAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | httpAlias |
Returns
| Type | Description |
|---|---|
| PortalAliasInfo |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
GetPortalByPortalAliasID(Int32)
Gets the portal by portal alias ID.
Declaration
public PortalInfo GetPortalByPortalAliasID(int portalAliasId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalAliasId | The portal alias id. |
Returns
| Type | Description |
|---|---|
| PortalInfo | Portal info. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
UpdatePortalAlias(PortalAliasInfo)
Update a specified portal alias.
Declaration
public void UpdatePortalAlias(PortalAliasInfo portalAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| PortalAliasInfo | portalAlias | The obj portal alias info. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
UpdatePortalAliasInfo(PortalAliasInfo)
PortalAliasController provides method to manage portal alias.
Declaration
public void UpdatePortalAliasInfo(PortalAliasInfo portalAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| PortalAliasInfo | portalAlias |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
ValidateAlias(String, Boolean)
Validates the alias.
Declaration
public static bool ValidateAlias(string portalAlias, bool ischild)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | portalAlias | The portal alias. |
| System.Boolean | ischild | if set to |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
Explicit Interface Implementations
| Improve this Doc View SourceIPortalAliasService.DeletePortalAlias(IPortalAliasInfo)
Deletes an existing portal alias.
Declaration
void IPortalAliasService.DeletePortalAlias(IPortalAliasInfo portalAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortalAliasInfo | portalAlias | The portal alias to delete. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.
IPortalAliasService.UpdatePortalAlias(IPortalAliasInfo)
Update a specified portal alias.
Declaration
void IPortalAliasService.UpdatePortalAlias(IPortalAliasInfo portalAlias)
Parameters
| Type | Name | Description |
|---|---|---|
| IPortalAliasInfo | portalAlias | The portal alias to update. |
Remarks
For DotNetNuke to know what site a request should load, it uses a system of portal aliases. When a request is received by DotNetNuke from IIS, it extracts the domain name portion and does a comparison against the list of portal aliases and then redirects to the relevant portal to load the appropriate page.