Class ModulePresenterBase<TView>
Inheritance
System.Object
ModulePresenterBase<TView>
Assembly: DotNetNuke.Web.dll
Syntax
public abstract class ModulePresenterBase<TView> : Presenter<TView> where TView : class, IModuleViewBase
Type Parameters
Constructors
|
Improve this Doc
View Source
ModulePresenterBase(TView)
Declaration
protected ModulePresenterBase(TView view)
Parameters
| Type |
Name |
Description |
| TView |
view |
The view.
|
Properties
|
Improve this Doc
View Source
AllowAnonymousAccess
Declaration
protected virtual bool AllowAnonymousAccess { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
AutoDataBind
Declaration
public bool AutoDataBind { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsEditable
Declaration
public bool IsEditable { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsPostBack
Declaration
public bool IsPostBack { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsSuperUser
Declaration
public bool IsSuperUser { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
IsUserAuthorized
Declaration
protected virtual bool IsUserAuthorized { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
LocalResourceFile
Declaration
public string LocalResourceFile { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
ModuleContext
Declaration
public ModuleInstanceContext ModuleContext { get; set; }
Property Value
| Type |
Description |
| ModuleInstanceContext |
|
|
Improve this Doc
View Source
ModuleId
Declaration
public int ModuleId { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
ModuleInfo
Declaration
public ModuleInfo ModuleInfo { get; set; }
Property Value
| Type |
Description |
| ModuleInfo |
|
|
Improve this Doc
View Source
PortalId
Declaration
public int PortalId { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Settings
Declaration
public Dictionary<string, string> Settings { get; set; }
Property Value
| Type |
Description |
| Dictionary<System.String, System.String> |
|
|
Improve this Doc
View Source
TabId
Declaration
public int TabId { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
UserId
Declaration
public int UserId { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Validator
Declaration
public Validator Validator { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
CheckAuthPolicy()
Declaration
protected virtual bool CheckAuthPolicy()
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
LoadFromContext()
Declaration
protected virtual void LoadFromContext()
|
Improve this Doc
View Source
LocalizeString(String)
Declaration
protected virtual string LocalizeString(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
OnInit()
Declaration
protected virtual void OnInit()
|
Improve this Doc
View Source
OnLoad()
Declaration
protected virtual void OnLoad()
|
Improve this Doc
View Source
OnNoCurrentUser()
Declaration
protected virtual void OnNoCurrentUser()
|
Improve this Doc
View Source
OnUnauthorizedUser()
Declaration
protected virtual void OnUnauthorizedUser()
|
Improve this Doc
View Source
ProcessModuleLoadException(Exception)
Declaration
protected void ProcessModuleLoadException(Exception ex)
Parameters
| Type |
Name |
Description |
| Exception |
ex |
|
|
Improve this Doc
View Source
RedirectToAccessDenied()
Declaration
protected void RedirectToAccessDenied()
|
Improve this Doc
View Source
RedirectToCurrentPage()
Declaration
protected void RedirectToCurrentPage()
|
Improve this Doc
View Source
RedirectToLogin()
Declaration
protected void RedirectToLogin()
|
Improve this Doc
View Source
RestoreState(StateBag)
Declaration
public virtual void RestoreState(StateBag stateBag)
Parameters
| Type |
Name |
Description |
| StateBag |
stateBag |
|
|
Improve this Doc
View Source
SaveState(StateBag)
Declaration
public virtual void SaveState(StateBag stateBag)
Parameters
| Type |
Name |
Description |
| StateBag |
stateBag |
|
|
Improve this Doc
View Source
ShowMessage(String, ModuleMessage.ModuleMessageType, Boolean)
Declaration
protected void ShowMessage(string message, ModuleMessage.ModuleMessageType messageType, bool localize)
Parameters
| Type |
Name |
Description |
| System.String |
message |
|
| ModuleMessage.ModuleMessageType |
messageType |
|
| System.Boolean |
localize |
|
|
Improve this Doc
View Source
ShowMessage(String, ModuleMessage.ModuleMessageType)
Declaration
protected void ShowMessage(string message, ModuleMessage.ModuleMessageType messageType)
Parameters
| Type |
Name |
Description |
| System.String |
message |
|
| ModuleMessage.ModuleMessageType |
messageType |
|
|
Improve this Doc
View Source
ShowMessage(String, String, ModuleMessage.ModuleMessageType, Boolean)
Declaration
protected void ShowMessage(string messageHeader, string message, ModuleMessage.ModuleMessageType messageType, bool localize)
Parameters
| Type |
Name |
Description |
| System.String |
messageHeader |
|
| System.String |
message |
|
| ModuleMessage.ModuleMessageType |
messageType |
|
| System.Boolean |
localize |
|
|
Improve this Doc
View Source
ShowMessage(String, String, ModuleMessage.ModuleMessageType)
Declaration
protected void ShowMessage(string messageHeader, string message, ModuleMessage.ModuleMessageType messageType)
Parameters
| Type |
Name |
Description |
| System.String |
messageHeader |
|
| System.String |
message |
|
| ModuleMessage.ModuleMessageType |
messageType |
|
Extension Methods