Back to Devexpress

SecurityStrategyComplex.RoleType Property

expressappframework-devexpress-dot-expressapp-dot-security-dot-securitystrategycomplex.md

latest7.8 KB
Original Source

SecurityStrategyComplex.RoleType Property

Specifies the type of a security strategy role.

Namespace : DevExpress.ExpressApp.Security

Assembly : DevExpress.ExpressApp.Security.v25.2.dll

NuGet Package : DevExpress.ExpressApp.Security

Declaration

csharp
public Type RoleType { get; set; }
vb
Public Property RoleType As Type

Property Value

TypeDescription
Type

The type of a security strategy role.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the RoleType property.

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.

XAF_How-to-get-role-code-from-the-UI/CS/XPO/GenerateRole/GenerateRole.Module/Controllers/RoleGeneratorController.cs#L37

csharp
SecurityStrategy security = Application.GetSecurityStrategy();
roleType = ((SecurityStrategyComplex)(Application.Security)).RoleType;
roleGeneratorAction.Active["ActionExecuted"] = IsEnableRoleGeneratorAction() && security.CanRead(roleType);

XAF_how-to-show-filter-dialog-before-listview/CS/E1554.Web/WebApplication.cs#L70

csharp
this.securityStrategyComplex1.Authentication = this.authenticationActiveDirectory1;
this.securityStrategyComplex1.RoleType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole);
this.securityStrategyComplex1.UserType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser);

xaf-how-to-implement-a-custom-security-operation-that-can-be-permitted-at-the-type-level/CS/CustomSecurityOperation.Web/WebApplication.cs#L52

csharp
this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
this.securityStrategyComplex1.RoleType = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyRole);
this.securityStrategyComplex1.UserType = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser);

xaf-how-to-implement-a-security-system-user-based-on-an-existing-business-class/CS/EmployeeAsUserExample.Web/WebApplication.cs#L42

csharp
this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
this.securityStrategyComplex1.RoleType = typeof(EmployeeAsUserExample.Module.BusinessObjects.EmployeeRole);
this.securityStrategyComplex1.UserType = typeof(EmployeeAsUserExample.Module.BusinessObjects.Employee);

xaf-separate-employees-data-in-different-departments-using-security-permissions/CS/MainDemo.Web/WebApplication.cs#L51

csharp
this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
this.securityStrategyComplex1.RoleType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole);
this.securityStrategyComplex1.UserType = typeof(MainDemo.Module.BusinessObjects.Employee);

xaf-how-to-use-data-from-security-in-criterion/VB/CustomFunctionCriteriaOperator.Web/WebApplication.vb#L63

vb
Me.securityStrategyComplex1.Authentication = Me.authenticationStandard1
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole)
Me.securityStrategyComplex1.UserType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser)

XAF_how-to-show-filter-dialog-before-listview/VB/E1554.Web/WebApplication.vb#L63

vb
Me.securityStrategyComplex1.Authentication = Me.authenticationActiveDirectory1
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole)
Me.securityStrategyComplex1.UserType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser)

xaf-how-to-implement-a-custom-security-operation-that-can-be-permitted-at-the-type-level/VB/CustomSecurityOperation.Web/WebApplication.vb#L53

vb
Me.securityStrategyComplex1.Authentication = Me.authenticationStandard1
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyRole)
Me.securityStrategyComplex1.UserType = GetType(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser)

xaf-how-to-implement-a-security-system-user-based-on-an-existing-business-class/VB/EmployeeAsUserExample.Web/WebApplication.vb#L44

vb
Me.securityStrategyComplex1.Authentication = Me.authenticationStandard1
Me.securityStrategyComplex1.RoleType = GetType(EmployeeAsUserExample.Module.BusinessObjects.EmployeeRole)
Me.securityStrategyComplex1.UserType = GetType(EmployeeAsUserExample.Module.BusinessObjects.Employee)

xaf-separate-employees-data-in-different-departments-using-security-permissions/VB/MainDemo.Web/WebApplication.vb#L48

vb
Me.securityStrategyComplex1.Authentication = Me.authenticationStandard1
Me.securityStrategyComplex1.RoleType = GetType(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole)
Me.securityStrategyComplex1.UserType = GetType(MainDemo.[Module].BusinessObjects.Employee)

See Also

SecurityStrategyComplex Class

SecurityStrategyComplex Members

DevExpress.ExpressApp.Security Namespace