Class ModulePermissionsGrid
Implements
Inherited Members
Namespace: DotNetNuke.Security.Permissions.Controls
Assembly: DotNetNuke.dll
Syntax
public class ModulePermissionsGrid : PermissionsGrid
Constructors
| Improve this Doc View SourceModulePermissionsGrid()
Initializes a new instance of the ModulePermissionsGrid class.
Declaration
public ModulePermissionsGrid()
Properties
| Improve this Doc View SourceInheritViewPermissionsFromTab
Gets or sets a value indicating whether the Module inherits the Page's(Tab's) permissions.
Declaration
public bool InheritViewPermissionsFromTab { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
ModuleID
Gets or sets the ID of the Module.
Declaration
public int ModuleID { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Permissions
Gets the ModulePermission Collection.
Declaration
public ModulePermissionCollection Permissions { get; }
Property Value
| Type | Description |
|---|---|
| ModulePermissionCollection |
PermissionsList
Declaration
protected override List<PermissionInfoBase> PermissionsList { get; }
Property Value
| Type | Description |
|---|---|
| List<PermissionInfoBase> |
Overrides
| Improve this Doc View SourceTabId
Gets or sets the ID of the Tab associated with this module.
Declaration
public int TabId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceAddPermission(ArrayList, UserInfo)
Updates a Permission.
Declaration
protected override void AddPermission(ArrayList permissions, UserInfo user)
Parameters
| Type | Name | Description |
|---|---|---|
| ArrayList | permissions | The permissions collection. |
| UserInfo | user | The user to add. |
Overrides
| Improve this Doc View SourceAddPermission(ArrayList, RoleInfo)
Updates a Permission.
Declaration
protected override void AddPermission(ArrayList permissions, RoleInfo role)
Parameters
| Type | Name | Description |
|---|---|---|
| ArrayList | permissions | The permissions collection. |
| RoleInfo | role | The role to add. |
Overrides
| Improve this Doc View SourceAddPermission(PermissionInfo, Int32, String, Int32, String, Boolean)
Declaration
protected override void AddPermission(PermissionInfo permission, int roleId, string roleName, int userId, string displayName, bool allowAccess)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | permission | |
| System.Int32 | roleId | |
| System.String | roleName | |
| System.Int32 | userId | |
| System.String | displayName | |
| System.Boolean | allowAccess |
Overrides
| Improve this Doc View SourceCreateChildControls()
Declaration
protected override void CreateChildControls()
Overrides
| Improve this Doc View SourceGenerateDataGrid()
Generate the Data Grid.
Declaration
public override void GenerateDataGrid()
Overrides
| Improve this Doc View SourceGetEnabled(PermissionInfo, UserInfo, Int32)
Gets the Enabled status of the permission.
Declaration
protected override bool GetEnabled(PermissionInfo objPerm, UserInfo user, int column)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | objPerm | The permission being loaded. |
| UserInfo | user | The user. |
| System.Int32 | column | The column of the Grid. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the permission is enabled, otherwise false. |
Overrides
| Improve this Doc View SourceGetEnabled(PermissionInfo, RoleInfo, Int32)
Gets the Enabled status of the permission.
Declaration
protected override bool GetEnabled(PermissionInfo objPerm, RoleInfo role, int column)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | objPerm | The permission being loaded. |
| RoleInfo | role | The role. |
| System.Int32 | column | The column of the Grid. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the permission is enabled, otherwise false. |
Overrides
| Improve this Doc View SourceGetPermission(PermissionInfo, UserInfo, Int32, String)
Gets the Value of the permission.
Declaration
protected override string GetPermission(PermissionInfo objPerm, UserInfo user, int column, string defaultState)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | objPerm | The permission being loaded. |
| UserInfo | user | The user. |
| System.Int32 | column | The column of the Grid. |
| System.String | defaultState | Default State. |
Returns
| Type | Description |
|---|---|
| System.String | The permission state (one of PermissionTypeGrant, PermissionTypeDeny or |
Overrides
| Improve this Doc View SourceGetPermission(PermissionInfo, RoleInfo, Int32, String)
Gets the Value of the permission.
Declaration
protected override string GetPermission(PermissionInfo objPerm, RoleInfo role, int column, string defaultState)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | objPerm | The permission being loaded. |
| RoleInfo | role | The role. |
| System.Int32 | column | The column of the Grid. |
| System.String | defaultState | Default State. |
Returns
| Type | Description |
|---|---|
| System.String | The permission state (one of PermissionTypeGrant, PermissionTypeDeny or |
Overrides
| Improve this Doc View SourceGetPermissions()
Gets the permissions from the Database.
Declaration
protected override ArrayList GetPermissions()
Returns
| Type | Description |
|---|---|
| ArrayList | An |
Overrides
| Improve this Doc View SourceIsFullControl(PermissionInfo)
Declaration
protected override bool IsFullControl(PermissionInfo permissionInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | permissionInfo |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceIsViewPermisison(PermissionInfo)
Declaration
protected override bool IsViewPermisison(PermissionInfo permissionInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | permissionInfo |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceLoadViewState(Object)
Declaration
protected override void LoadViewState(object savedState)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | savedState |
RemovePermission(Int32, Int32, Int32)
Declaration
protected override void RemovePermission(int permissionID, int roleID, int userID)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | permissionID | |
| System.Int32 | roleID | |
| System.Int32 | userID |
Overrides
| Improve this Doc View SourceSaveViewState()
Declaration
protected override object SaveViewState()
Returns
| Type | Description |
|---|---|
| System.Object |
SupportsDenyPermissions(PermissionInfo)
Declaration
protected override bool SupportsDenyPermissions(PermissionInfo permissionInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | permissionInfo |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceUpdatePermission(PermissionInfo, Int32, String, String)
Updates a Permission.
Declaration
protected override void UpdatePermission(PermissionInfo permission, int roleId, string roleName, string stateKey)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | permission | The permission being updated. |
| System.Int32 | roleId | Role Id. |
| System.String | roleName | The name of the role. |
| System.String | stateKey | The permission state. |
Overrides
| Improve this Doc View SourceUpdatePermission(PermissionInfo, String, Int32, String)
Updates a Permission.
Declaration
protected override void UpdatePermission(PermissionInfo permission, string displayName, int userId, string stateKey)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | permission | The permission being updated. |
| System.String | displayName | The user's display name. |
| System.Int32 | userId | The user's id. |
| System.String | stateKey | The permission state. |