NShape Reference
RoleBasedSecurityManager Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape >

NShape Reference
RoleBasedSecurityManager Class

Previous pageReturn to chapter overviewNext page

An ISecurityManager implementation based on a fixed set of user roles.

Syntax

public class RoleBasedSecurityManager : ISecurityManager

Description

An ISecurityManager implementation based on a fixed set of user roles.

Comes with predefined but customizable permission sets for Domain 'A' and 'B':

Predefined Permission Sets

Role

General Permissions

Domain Permissions

Administrator

Permission.All

Permission.All

Super User

Permission.Designs,
Permission.Templates

Permission.Connect, Permission.Delete, Permission.Insert, Permission.Layout, Permission.Data, Permission.Present

Designer

Permission.Designs

Permission.Layout, Permission.Data, Permission.Present

Operator

Permission.None

Permission.Layout, Permission.Data

Guest

Permission.None

Permission.None

Custom

Permission.None

Permission.None

Public Properties

Name

Description

CurrentRole

Defines the role of the current user.

CurrentRoleName

Defines the role of the current user.

Public Methods

Name

Description

AddDomain

Adds a domain to the security.

AddPermissions

Adds permissions for the given domain and role.

AddRole

Adds a role to the security.

Constructor

Constructs a new instance.

IsGranted

Returns true if the given permission is granted.

RemoveDomain

Removes a domain from the security.

RemovePermissions

Removes permissions from the given domain and role.

SetPermissions

Redefines the permissions of the given domain and role.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape