namespace VberZero.Authorization.Users;
///
/// Used to cache roles and permissions of a user.
///
[Serializable]
public class UserPermissionCacheItem
{
public const string CacheStoreName = "AbpZeroUserPermissions";
public long UserId { get; set; }
public List RoleIds { get; set; }
public HashSet GrantedPermissions { get; set; }
public HashSet ProhibitedPermissions { get; set; }
public UserPermissionCacheItem()
{
RoleIds = new List();
GrantedPermissions = new HashSet();
ProhibitedPermissions = new HashSet();
}
public UserPermissionCacheItem(long userId)
: this()
{
UserId = userId;
}
}