BaseRolePermissionService<TRolePermissionRow> class
namespace: Serenity.Extensions assembly: Serenity.Extensions
Base permission service that provides common functionality for permission services.
public abstract class BaseRolePermissionService<TRolePermissionRow> : IRolePermissionService
where TRolePermissionRow : class, IRolePermissionRow, new()
| parameter |
description |
| TRolePermissionRow |
Role permission row type |
| cache |
Cache |
| sqlConnections |
SQL connections |
| typeSource |
Type source |
Public Members
Protected Members
| name |
description |
| BaseRolePermissionService(…) |
Base permission service that provides common functionality for permission services. |
| virtual GetCachedRolePermissions(…) |
Gets the role permissions for the specified role. |
| virtual GetCacheDuration() |
Gets the cache duration for role permissions. Default is zero, meaning it will be cached indefinitely, unless expired by using the cache group key. |
| virtual GetCacheGroupKey() |
Gets the cache group key for role permissions. |
| virtual GetCacheKey(…) |
Gets the cache key for role permissions. |
| virtual IsValidRoleKeyOrName(…) |
Gets whether the specified role is a valid role key or name. By default, a role is valid if it is not null or empty. |
| virtual LoadRolePermissions(…) |
Loads role permissions from database. |
See Also