Show / Hide Table of Contents

Class RedirectionController

Inheritance
object
RedirectionController
Implements
IRedirectionController
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Services.Mobile
Assembly: DotNetNuke.dll
Syntax
public class RedirectionController : IRedirectionController

Constructors

RedirectionController()

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

RedirectionController(IPortalController, IEventLogger)

Declaration
[Obsolete("Deprecated in DotNetNuke 10.2.4. Please use overload with IHostSettings. Scheduled removal in v12.0.0.")]
public RedirectionController(IPortalController portalController, IEventLogger eventLogger)
Parameters
Type Name Description
IPortalController portalController
IEventLogger eventLogger

RedirectionController(IPortalController, IEventLogger, IHostSettings, ITabController)

Declaration
public RedirectionController(IPortalController portalController, IEventLogger eventLogger, IHostSettings hostSettings, ITabController tabController)
Parameters
Type Name Description
IPortalController portalController
IEventLogger eventLogger
IHostSettings hostSettings
ITabController tabController

Methods

Delete(int, int)

Declaration
public void Delete(int portalId, int id)
Parameters
Type Name Description
int portalId
int id

DeleteRule(int, int, int)

Declaration
public void DeleteRule(int portalId, int redirectionId, int ruleId)
Parameters
Type Name Description
int portalId
int redirectionId
int ruleId

GetAllRedirections()

Declaration
public IList<IRedirection> GetAllRedirections()
Returns
Type Description
IList<IRedirection>

GetFullSiteUrl()

Declaration
public string GetFullSiteUrl()
Returns
Type Description
string

GetFullSiteUrl(int, int)

Declaration
public string GetFullSiteUrl(int portalId, int currentTabId)
Parameters
Type Name Description
int portalId
int currentTabId
Returns
Type Description
string

GetMobileSiteUrl()

Declaration
public string GetMobileSiteUrl()
Returns
Type Description
string

GetMobileSiteUrl(int, int)

Declaration
public string GetMobileSiteUrl(int portalId, int currentTabId)
Parameters
Type Name Description
int portalId
int currentTabId
Returns
Type Description
string

GetRedirectUrl(string)

Declaration
public string GetRedirectUrl(string userAgent)
Parameters
Type Name Description
string userAgent
Returns
Type Description
string

GetRedirectUrl(string, int, int)

Declaration
public string GetRedirectUrl(string userAgent, int portalId, int currentTabId)
Parameters
Type Name Description
string userAgent
int portalId
int currentTabId
Returns
Type Description
string

GetRedirectUrlFromRule(IRedirection, int, int)

Declaration
public string GetRedirectUrlFromRule(IRedirection redirection, int portalId, int currentTabId)
Parameters
Type Name Description
IRedirection redirection
int portalId
int currentTabId
Returns
Type Description
string

GetRedirectionById(int, int)

Declaration
public IRedirection GetRedirectionById(int portalId, int id)
Parameters
Type Name Description
int portalId
int id
Returns
Type Description
IRedirection

GetRedirectionsByPortal(int)

Declaration
public IList<IRedirection> GetRedirectionsByPortal(int portalId)
Parameters
Type Name Description
int portalId
Returns
Type Description
IList<IRedirection>

IsRedirectAllowedForTheSession(HttpApplication)

Declaration
public bool IsRedirectAllowedForTheSession(HttpApplication app)
Parameters
Type Name Description
HttpApplication app
Returns
Type Description
bool

PurgeInvalidRedirections(int)

Declaration
public void PurgeInvalidRedirections(int portalId)
Parameters
Type Name Description
int portalId

Save(IRedirection)

Declaration
public void Save(IRedirection redirection)
Parameters
Type Name Description
IRedirection redirection

Implements

IRedirectionController

Extension Methods

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