Class TestablePortalAliasController
Inheritance
System.Object
TestablePortalAliasController
Implements
Inherited Members
Namespace: DotNetNuke.Entities.Portals.Internal
Assembly: DotNetNuke.dll
Syntax
public class TestablePortalAliasController : ServiceLocator<IPortalAliasController, TestablePortalAliasController>, IPortalAliasController
Methods
| Improve this Doc View SourceAddPortalAlias(PortalAliasInfo)
Add 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 Id of the newly added portal alias. |
DeletePortalAlias(PortalAliasInfo)
Delete a Portal Alias.
Declaration
public void DeletePortalAlias(PortalAliasInfo portalAlias)
Parameters
Type | Name | Description |
---|---|---|
PortalAliasInfo | portalAlias | The portal alias to remove. |
GetFactory()
Gets the service locator factory.
Declaration
protected override Func<IPortalAliasController> GetFactory()
Returns
Type | Description |
---|---|
Func<IPortalAliasController> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Entities.Portals.Internal.IPortalAliasController, DotNetNuke.Entities.Portals.Internal.TestablePortalAliasController>.GetFactory()
|
Improve this Doc
View Source
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. |
GetPortalAliases()
Gets all the portal aliases defined.
Declaration
public IDictionary<string, PortalAliasInfo> GetPortalAliases()
Returns
Type | Description |
---|---|
IDictionary<System.String, PortalAliasInfo> | A dictionary keyed by the HTTP Alias. |
GetPortalAliasesByPortalId(Int32)
Gets the portal alias by portal 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 collection. |
UpdatePortalAlias(PortalAliasInfo)
Updates the portal alias info.
Declaration
public void UpdatePortalAlias(PortalAliasInfo portalAlias)
Parameters
Type | Name | Description |
---|---|---|
PortalAliasInfo | portalAlias | The obj portal alias info. |