Class RedirectionController
Inheritance
RedirectionController
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
RedirectionController(IPortalController, IEventLogger, IHostSettings, ITabController)
Declaration
public RedirectionController(IPortalController portalController, IEventLogger eventLogger, IHostSettings hostSettings, ITabController tabController)
Parameters
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
GetFullSiteUrl()
Declaration
public string GetFullSiteUrl()
Returns
GetFullSiteUrl(int, int)
Declaration
public string GetFullSiteUrl(int portalId, int currentTabId)
Parameters
| Type |
Name |
Description |
| int |
portalId |
|
| int |
currentTabId |
|
Returns
GetMobileSiteUrl()
Declaration
public string GetMobileSiteUrl()
Returns
GetMobileSiteUrl(int, int)
Declaration
public string GetMobileSiteUrl(int portalId, int currentTabId)
Parameters
| Type |
Name |
Description |
| int |
portalId |
|
| int |
currentTabId |
|
Returns
GetRedirectUrl(string)
Declaration
public string GetRedirectUrl(string userAgent)
Parameters
| Type |
Name |
Description |
| string |
userAgent |
|
Returns
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
GetRedirectUrlFromRule(IRedirection, int, int)
Declaration
public string GetRedirectUrlFromRule(IRedirection redirection, int portalId, int currentTabId)
Parameters
Returns
GetRedirectionById(int, int)
Declaration
public IRedirection GetRedirectionById(int portalId, int id)
Parameters
| Type |
Name |
Description |
| int |
portalId |
|
| int |
id |
|
Returns
GetRedirectionsByPortal(int)
Declaration
public IList<IRedirection> GetRedirectionsByPortal(int portalId)
Parameters
| Type |
Name |
Description |
| int |
portalId |
|
Returns
IsRedirectAllowedForTheSession(HttpApplication)
Declaration
public bool IsRedirectAllowedForTheSession(HttpApplication app)
Parameters
Returns
PurgeInvalidRedirections(int)
Declaration
public void PurgeInvalidRedirections(int portalId)
Parameters
| Type |
Name |
Description |
| int |
portalId |
|
Save(IRedirection)
Declaration
public void Save(IRedirection redirection)
Parameters
Implements
Extension Methods