using System;
using System.Collections.Generic;
namespace IwbZero.Caching
{
///
/// Used to cache roles and permissions of a user.
///
[Serializable]
public class IwbUserPermissionCacheItem
{
public const string CacheStoreName = "IwbAdminUserPermissions";
public long UserId { get; set; }
public List RoleIds { get; set; }
public HashSet GrantedPermissions { get; set; }
public HashSet ProhibitedPermissions { get; set; }
public IwbUserPermissionCacheItem()
{
RoleIds = new List();
GrantedPermissions = new HashSet();
ProhibitedPermissions = new HashSet();
}
public IwbUserPermissionCacheItem(long userId)
: this()
{
UserId = userId;
}
}
}