• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class TestablePortalAliasController

Inheritance
System.Object
ServiceLocator<IPortalAliasController, TestablePortalAliasController>
TestablePortalAliasController
Implements
IPortalAliasController
Inherited Members
ServiceLocator<IPortalAliasController, TestablePortalAliasController>.Instance
ServiceLocator<IPortalAliasController, TestablePortalAliasController>.Factory
ServiceLocator<IPortalAliasController, TestablePortalAliasController>.SetTestableInstance(IPortalAliasController)
ServiceLocator<IPortalAliasController, TestablePortalAliasController>.ClearInstance()
ServiceLocator<IPortalAliasController, TestablePortalAliasController>.GetFactory()
Namespace: DotNetNuke.Entities.Portals.Internal
Assembly: DotNetNuke.dll
Syntax
public class TestablePortalAliasController : ServiceLocator<IPortalAliasController, TestablePortalAliasController>, IPortalAliasController

Methods

| Improve this Doc View Source

AddPortalAlias(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.

| Improve this Doc View Source

DeletePortalAlias(PortalAliasInfo)

Delete a Portal Alias.

Declaration
public void DeletePortalAlias(PortalAliasInfo portalAlias)
Parameters
Type Name Description
PortalAliasInfo portalAlias

The portal alias to remove.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

UpdatePortalAlias(PortalAliasInfo)

Updates the portal alias info.

Declaration
public void UpdatePortalAlias(PortalAliasInfo portalAlias)
Parameters
Type Name Description
PortalAliasInfo portalAlias

The obj portal alias info.

Implements

IPortalAliasController

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS