using System; using System.Collections.Generic; namespace ContractService.Authorization { /// /// Used to cache roles and permissions of a user. /// [Serializable] public class OrgPermissionCacheItem { public const string CacheStoreName = "IwbZeroOrgPermissions"; public string OrgId { get; set; } public HashSet GrantedPermissions { get; set; } public HashSet ProhibitedPermissions { get; set; } public OrgPermissionCacheItem() { GrantedPermissions = new HashSet(); ProhibitedPermissions = new HashSet(); } public OrgPermissionCacheItem(string orgId) : this() { OrgId = orgId; } } }