The requested page is not available for the requested platform. You are viewing the content for Default platform.

PermissionPolicyRoleBase Class

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

Namespace: DevExpress.Persistent.BaseImpl.PermissionPolicy

Assembly: DevExpress.Persistent.BaseImpl.v19.1.dll

Declaration

[Persistent("PermissionPolicyRole")]
public class PermissionPolicyRoleBase :
    BaseObject,
    IPermissionPolicyRole,
    ISecurityRole,
    ISecuritySystemRole,
    INavigationPermissions
<Persistent("PermissionPolicyRole")>
Public Class PermissionPolicyRoleBase
    Inherits BaseObject
    Implements IPermissionPolicyRole,
               ISecurityRole,
               ISecuritySystemRole,
               INavigationPermissions

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.

Implements

DevExpress.Xpo.Helpers.IXPClassInfoAndSessionProvider
DevExpress.Xpo.Helpers.IXPClassInfoProvider
DevExpress.Xpo.Helpers.IObjectLayerProvider
DevExpress.Xpo.Helpers.IDataLayerProvider
DevExpress.Xpo.Metadata.Helpers.IXPDictionaryProvider
DevExpress.Xpo.IXPCustomPropertyStore
DevExpress.Xpo.IXPInvalidateableObject
DevExpress.Xpo.IXPReceiveOnChangedFromDelayedProperty
DevExpress.Xpo.IXPReceiveOnChangedFromArbitrarySource
DevExpress.Xpo.Helpers.IXPImmutableHashCode
DevExpress.Xpo.IXPReceiveOnChangedFromXPPropertyDescriptor
DevExpress.ExpressApp.Security.ISecurityRole
DevExpress.ExpressApp.Security.ISecuritySystemRole
DevExpress.Persistent.Base.INavigationPermissions

Extension Methods

See Also