A security role that supports the Allow/Deny Permission Policies.
[ImageName("BO_Role")] public class PermissionPolicyRole : PermissionPolicyRoleBase, IPermissionPolicyRole, ISecurityRole, ISecuritySystemRole, INavigationPermissions, IPermissionPolicyRoleWithUsers, ICanInitializeRole
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 PermissionPolicyRole.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.
You can use extension methods declared in the PermissionSettingHelper static class with object instances of the PermissionPolicyRole 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.