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