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

Class ModulePermissionsGrid

Inheritance
System.Object
PermissionsGrid
ModulePermissionsGrid
Implements
INamingContainer
Inherited Members
PermissionsGrid.PermissionTypeGrant
PermissionsGrid.PermissionTypeDeny
PermissionsGrid.PermissionTypeNull
PermissionsGrid.rolePermissionsGrid
PermissionsGrid.userPermissionsGrid
PermissionsGrid.AlternatingItemStyle
PermissionsGrid.Columns
PermissionsGrid.FooterStyle
PermissionsGrid.HeaderStyle
PermissionsGrid.ItemStyle
PermissionsGrid.Items
PermissionsGrid.SelectedItemStyle
PermissionsGrid.AdministratorRoleId
PermissionsGrid.RegisteredUsersRoleId
PermissionsGrid.PortalId
PermissionsGrid.AutoGenerateColumns
PermissionsGrid.CellSpacing
PermissionsGrid.GridLines
PermissionsGrid.DynamicColumnAdded
PermissionsGrid.dtRolePermissions
PermissionsGrid.dtUserPermissions
PermissionsGrid.Roles
PermissionsGrid.ResourceFile
PermissionsGrid.RefreshGrid
PermissionsGrid.RegisterScriptsForAjaxPanel()
PermissionsGrid.BuildKey(Boolean, Int32, Int32, Int32, String)
PermissionsGrid.BuildKey(Boolean, Int32, Int32, Int32, String, Int32, String)
PermissionsGrid.GetPermission(PermissionInfo, RoleInfo, Int32)
PermissionsGrid.GetPermission(PermissionInfo, UserInfo, Int32)
PermissionsGrid.GetUsers()
PermissionsGrid.OnInit(EventArgs)
PermissionsGrid.OnPreRender(EventArgs)
PermissionsGrid.ParsePermissionKeys(PermissionInfoBase, String[])
PermissionsGrid.UpdatePermission(PermissionInfo, Int32, String, Boolean)
PermissionsGrid.UpdatePermission(PermissionInfo, String, Int32, Boolean)
PermissionsGrid.UpdatePermissions()
PermissionsGrid.UpdateRolePermissions()
PermissionsGrid.UpdateUserPermissions()
PermissionsGrid.RoleGroupsSelectedIndexChanged(Object, EventArgs)
PermissionsGrid.AddUser(Object, EventArgs)
Namespace: DotNetNuke.Security.Permissions.Controls
Assembly: DotNetNuke.dll
Syntax
public class ModulePermissionsGrid : PermissionsGrid

Constructors

| Improve this Doc View Source

ModulePermissionsGrid()

Initializes a new instance of the ModulePermissionsGrid class.

Declaration
public ModulePermissionsGrid()

Properties

| Improve this Doc View Source

InheritViewPermissionsFromTab

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
| Improve this Doc View Source

ModuleID

Gets or sets the ID of the Module.

Declaration
public int ModuleID { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Permissions

Gets the ModulePermission Collection.

Declaration
public ModulePermissionCollection Permissions { get; }
Property Value
Type Description
ModulePermissionCollection
| Improve this Doc View Source

PermissionsList

Declaration
protected override List<PermissionInfoBase> PermissionsList { get; }
Property Value
Type Description
List<PermissionInfoBase>
Overrides
PermissionsGrid.PermissionsList
| Improve this Doc View Source

TabId

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 Source

AddPermission(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
PermissionsGrid.AddPermission(ArrayList, UserInfo)
| Improve this Doc View Source

AddPermission(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
PermissionsGrid.AddPermission(ArrayList, RoleInfo)
| Improve this Doc View Source

AddPermission(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
PermissionsGrid.AddPermission(PermissionInfo, Int32, String, Int32, String, Boolean)
| Improve this Doc View Source

CreateChildControls()

Declaration
protected override void CreateChildControls()
Overrides
PermissionsGrid.CreateChildControls()
| Improve this Doc View Source

GenerateDataGrid()

Generate the Data Grid.

Declaration
public override void GenerateDataGrid()
Overrides
PermissionsGrid.GenerateDataGrid()
| Improve this Doc View Source

GetEnabled(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
PermissionsGrid.GetEnabled(PermissionInfo, UserInfo, Int32)
| Improve this Doc View Source

GetEnabled(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
PermissionsGrid.GetEnabled(PermissionInfo, RoleInfo, Int32)
| Improve this Doc View Source

GetPermission(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 defaultState).

Overrides
PermissionsGrid.GetPermission(PermissionInfo, UserInfo, Int32, String)
| Improve this Doc View Source

GetPermission(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 defaultState).

Overrides
PermissionsGrid.GetPermission(PermissionInfo, RoleInfo, Int32, String)
| Improve this Doc View Source

GetPermissions()

Gets the permissions from the Database.

Declaration
protected override ArrayList GetPermissions()
Returns
Type Description
ArrayList

An of PermissionInfo instances.

Overrides
PermissionsGrid.GetPermissions()
| Improve this Doc View Source

IsFullControl(PermissionInfo)

Declaration
protected override bool IsFullControl(PermissionInfo permissionInfo)
Parameters
Type Name Description
PermissionInfo permissionInfo
Returns
Type Description
System.Boolean
Overrides
PermissionsGrid.IsFullControl(PermissionInfo)
| Improve this Doc View Source

IsViewPermisison(PermissionInfo)

Declaration
protected override bool IsViewPermisison(PermissionInfo permissionInfo)
Parameters
Type Name Description
PermissionInfo permissionInfo
Returns
Type Description
System.Boolean
Overrides
PermissionsGrid.IsViewPermisison(PermissionInfo)
| Improve this Doc View Source

LoadViewState(Object)

Declaration
protected override void LoadViewState(object savedState)
Parameters
Type Name Description
System.Object savedState
| Improve this Doc View Source

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
PermissionsGrid.RemovePermission(Int32, Int32, Int32)
| Improve this Doc View Source

SaveViewState()

Declaration
protected override object SaveViewState()
Returns
Type Description
System.Object
| Improve this Doc View Source

SupportsDenyPermissions(PermissionInfo)

Declaration
protected override bool SupportsDenyPermissions(PermissionInfo permissionInfo)
Parameters
Type Name Description
PermissionInfo permissionInfo
Returns
Type Description
System.Boolean
Overrides
PermissionsGrid.SupportsDenyPermissions(PermissionInfo)
| Improve this Doc View Source

UpdatePermission(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
PermissionsGrid.UpdatePermission(PermissionInfo, Int32, String, String)
| Improve this Doc View Source

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

Overrides
PermissionsGrid.UpdatePermission(PermissionInfo, String, Int32, String)

Implements

INamingContainer

Extension Methods

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