.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

PermissionPolicyRoleBase Class

The base class for a security role that supports the Allow/Deny Permission Policies.

Namespace: DevExpress.Persistent.BaseImpl.EF.PermissionPolicy

Assemblies: DevExpress.Persistent.BaseImpl.EF6.v21.2.dll, DevExpress.Persistent.BaseImpl.EFCore.v21.2.dll

Declaration

public class PermissionPolicyRoleBase :
    IPermissionPolicyRole,
    ISecurityRole,
    ISecuritySystemRole,
    INavigationPermissions,
    INotifyPropertyChanged,
    IActionPermissions

Remarks

In eXpressApp Framework applications, permissions are not assigned to a user directly. Users have roles, which in turn are characterized by a permission set. So, each user has one or more roles that determine what actions can be performed. The list of users associated with the current role is exposed via the Users property.

Refer to the How to: Implement Custom Security Objects (Users, Roles, Operation Permissions) topic to see an example on implementing a custom Role.

Tip

You can use extension methods declared in the static PermissionSettingHelper class with object instances of the PermissionPolicyRoleBase type. Call these extension methods from the ModuleUpdater.UpdateDatabaseAfterUpdateSchema method implemented in the Updater.cs (Updater.vb) file to easily configure predefined permissions in code.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PermissionPolicyRoleBase class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
PermissionPolicyRoleBase
See Also