<< Click to Display Table of Contents >> NShape Reference
|
An ISecurityManager implementation based on a fixed set of user roles.
public class RoleBasedSecurityManager : ISecurityManager |
An ISecurityManager implementation based on a fixed set of user roles.
Comes with predefined but customizable permission sets for Domain 'A' and 'B':
Role |
General Permissions |
Domain Permissions |
---|---|---|
Administrator |
Permission.All |
Permission.All |
Super User |
Permission.Designs, |
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 |
Name |
Description |
---|---|
CurrentRole |
Defines the role of the current user. |
CurrentRoleName |
Defines the role of the current user. |
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. |
Namespace: Dataweb.NShape
Assembly: Dataweb.NShape