Skip to main content
.NET 6.0+

PermissionSettingHelper Members

Provides extension methods for security roles that support the Allow/Deny Permission Policy, and for type permissions associated with these roles.

Methods

Name Description
AddActionPermission(IPermissionPolicyRole, String) static
AddMemberPermission(IPermissionPolicyRole, Type, String, String, String, Nullable<SecurityPermissionState>) static Finds the first type permission for the given type in the current role and adds the member permission to it. If the appropriate type permission is not found, it is created.
AddMemberPermission(IPermissionPolicyTypePermissionObject, String, String, String, Nullable<SecurityPermissionState>) static Adds the member permission to the current type permission.
AddMemberPermission<T>(IPermissionPolicyRole, String, String, String, Nullable<SecurityPermissionState>) static Finds the first type permission for the specified type in the role and adds the member permission to it. If the appropriate type permission is not found, this method creates it.
AddMemberPermissionFromLambda<T>(IPermissionPolicyRole, String, String, Expression<Func<T, Boolean>>, Nullable<SecurityPermissionState>) static Finds the first type permission for the specified type in the role and adds the member permission to it. If the appropriate type permission is not found, this method creates it.
AddNavigationPermission(IPermissionPolicyRole, String, Nullable<SecurityPermissionState>) static Adds the navigation permission to the current role with the specified settings.
AddObjectPermission(IPermissionPolicyRole, Type, String, String, Nullable<SecurityPermissionState>) static Finds the first type permission for the specified type in the role and adds the object permission to it. If the appropriate type permission is not found, this method creates it.
AddObjectPermission(IPermissionPolicyTypePermissionObject, String, String, Nullable<SecurityPermissionState>) static Finds the first type permission for the given type in the current role and adds the object permission to it. If the appropriate type permission is not found, it is created.
AddObjectPermission<T>(IPermissionPolicyRole, String, String, Nullable<SecurityPermissionState>) static Finds the first type permission for the specified type in the role and adds the object permission to it. If the appropriate type permission is not found, this method creates it.
AddObjectPermissionFromLambda<T>(IPermissionPolicyRole, String, Expression<Func<T, Boolean>>, Nullable<SecurityPermissionState>) static Finds the first type permission for the specified type in the role and adds the object permission to it. If the appropriate type permission is not found, this method creates it.
AddTypePermission(IPermissionPolicyRole, Type, String, Nullable<SecurityPermissionState>) static Adds the type permission to the current role with the specified settings. If the permission for the given type exists already, then the settings if this existing type permission are altered.
AddTypePermission<T>(IPermissionPolicyRole, String, Nullable<SecurityPermissionState>) static Adds the type permission to the current role with the specified settings. If the permission for the given type exists already, then the settings if this existing type permission are altered.
AddTypePermissionsRecursively(IPermissionPolicyRole, Type, String, Nullable<SecurityPermissionState>, ITypesInfo) static Recursively adds type permissions to the current role for each type which is assignable from the given type (or is equal to it). If the permission for the type already exists, then the settings of this existing type permission are altered.
AddTypePermissionsRecursively<T>(IPermissionPolicyRole, String, Nullable<SecurityPermissionState>, ITypesInfo) static Recursively adds type permissions to the current role for each type which is assignable from the given type (or is equal to it). If the permission for the type exists already, then the settings of this existing type permission are altered.
EnsureNavigationPermission(IPermissionPolicyRole, String) static Searches for the first permission for the specified navigation item in the current role. If the navigation permission is not found, it is created.
EnsureTypePermission(IPermissionPolicyRole, Type) static Searches for the first permission for the specified type in the current role. If the type permission is not found, it is created.
EnsureTypePermission<T>(IPermissionPolicyRole) static Searches for the first permission for the specified type in the current role. If the type permission is not found, it is created.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FindFirstTypePermission(IPermissionPolicyRole, Type) static Searches for the first permission for the specified type in the current role.
FindFirstTypePermission<T>(IPermissionPolicyRole) static Searches for the first permission for the specified type in the current role.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
SetTypePermission(IPermissionPolicyRole, Type, String, Nullable<SecurityPermissionState>) static Searches for the first permission for the specified type in the current role, and rewrites its settings according to the specified parameters. If the type permission is not found, it is created.
SetTypePermission<T>(IPermissionPolicyRole, String, Nullable<SecurityPermissionState>) static Searches for the first permission for the specified type in the current role, and rewrites its settings according to the specified parameters. If the type permission is not found, it is created.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also