Class TabPermissionsGrid
Implements
Inherited Members
Namespace: DotNetNuke.Security.Permissions.Controls
Assembly: DotNetNuke.dll
Syntax
public class TabPermissionsGrid : PermissionsGrid
Properties
| Improve this Doc View SourcePermissions
Gets the Permissions Collection.
Declaration
public TabPermissionCollection Permissions { get; }
Property Value
| Type | Description |
|---|---|
| TabPermissionCollection |
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.
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 SourceDataBind()
Declaration
public override void DataBind()
GenerateDataGrid()
Generate the Data Grid.
Declaration
public override void GenerateDataGrid()
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, 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)
Load the ViewState.
Declaration
protected override void LoadViewState(object savedState)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | savedState | The saved state. |
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)
returns whether or not the derived grid supports Deny permissions.
Declaration
protected override bool SupportsDenyPermissions(PermissionInfo permissionInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionInfo | permissionInfo |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if this grid supports deny permissions, otherwise false. |