BasePermissionService<TUserPermissionRow,TUserRoleRow> class
namespace: Serenity.Extensions assembly: Serenity.Extensions
Base permission service that provides common functionality for permission services.
public abstract class BasePermissionService<TUserPermissionRow, TUserRoleRow> :
BasePermissionService
where TUserPermissionRow : class, IUserPermissionRow, new()
where TUserRoleRow : class, IUserRoleRow, new()
| parameter | description |
|---|---|
| TUserPermissionRow | User permission row type |
| TUserRoleRow | User role row type |
| cache | Cache |
| sqlConnections | Sql connections |
| typeSource | Type source |
| userAccessor | User accessor |
| rolePermissions | Role permissions |
| httpContextItemsAccessor | HTTP context items accessor |
Protected Members
| name | description |
|---|---|
| BasePermissionService(…) | Base permission service that provides common functionality for permission services. |
| virtual GetCachedUserPermissions(…) | Gets the cached user permissions. |
| virtual GetCachedUserRoles(…) | Gets the cached user roles. |
| virtual GetUserPermissions(…) | Gets directly assigned permissions for the specified user. |
| virtual GetUserPermissionsCacheDuration() | Gets the cache duration for user permissions. Default is zero, meaning it will be cached indefinitely, unless expired by using the cache group key. |
| virtual GetUserPermissionsCacheGroupKey() | Gets the cache group key for user permissions. |
| virtual GetUserPermissionsCacheKey(…) | Gets the cache key for user permissions. |
| override GetUserRoles(…) | Gets the roles of the specified user. |
| virtual GetUserRolesCacheDuration() | Gets the cache duration for user roles. Default is zero, meaning it will be cached indefinitely, unless expired by using the cache group key. |
| virtual GetUserRolesCacheGroupKey() | Gets the cache group key for user roles. |
| virtual GetUserRolesCacheKey(…) | Gets the cache key for user roles. |
| virtual LoadUserPermissions(…) | Loads user permissions from database. |
| virtual LoadUserRoles(…) | Loads user roles from database. |
| override UserHasPermission(…) |
See Also
- class BasePermissionService
- interface IUserPermissionRow
- interface IUserRoleRow
- Source: BasePermissionServiceT.cs