Class PermissionList
- Namespace
- Shift.Common
- Assembly
- Shift.Common.dll
public class PermissionList
- Inheritance
-
PermissionList
- Inherited Members
-
- Extension Methods
-
Constructors
PermissionList()
Properties
Items
public List<Permission> Items { get; }
Property Value
- List<Permission>
Methods
Add(Permission)
public void Add(Permission item)
Parameters
item Permission
Add(PermissionBundle)
public void Add(PermissionBundle bundle)
Parameters
bundle PermissionBundle
Add(string, string, string)
public void Add(string resource, string role, string access)
Parameters
resource string
role string
access string
AddResource(Resource)
public void AddResource(Resource resource)
Parameters
resource Resource
AddResource(string)
public Resource AddResource(string name)
Parameters
name string
Returns
- Resource
AddResource(string, List<string>)
public void AddResource(string name, List<string> aliases)
Parameters
name string
aliases List<string>
AddResources(List<Resource>)
public void AddResources(List<Resource> resources)
Parameters
resources List<Resource>
AddResources(List<string>)
public void AddResources(List<string> resources)
Parameters
resources List<string>
AddRole(Role)
public void AddRole(Role role)
Parameters
role Role
AddRole(string)
public Role AddRole(string name)
Parameters
name string
Returns
- Role
ContainsResource(string)
public bool ContainsResource(string resource)
Parameters
resource string
Returns
- bool
ContainsRole(string)
public bool ContainsRole(string role)
Parameters
role string
Returns
- bool
FindPermission(Guid, string)
public Permission FindPermission(Guid resource, string role)
Parameters
resource Guid
role string
Returns
- Permission
FindPermission(string, string)
public Permission FindPermission(string resource, string role)
Parameters
resource string
role string
Returns
- Permission
FindResource(Guid)
public Resource FindResource(Guid resource)
Parameters
resource Guid
Returns
- Resource
FindResource(string)
public Resource FindResource(string resource)
Parameters
resource string
Returns
- Resource
FindRole(Guid)
public Role FindRole(Guid role)
Parameters
role Guid
Returns
- Role
FindRole(string)
public Role FindRole(string role)
Parameters
role string
Returns
- Role
IsAllowed(Guid, IEnumerable<Role>)
public bool IsAllowed(Guid resource, IEnumerable<Role> roles)
Parameters
resource Guid
roles IEnumerable<Role>
Returns
- bool
IsAllowed(Guid, string)
public bool IsAllowed(Guid resource, string role)
Parameters
resource Guid
role string
Returns
- bool
IsAllowed(string, IEnumerable<Role>)
public bool IsAllowed(string resource, IEnumerable<Role> roles)
Parameters
resource string
roles IEnumerable<Role>
Returns
- bool
IsAllowed(string, IEnumerable<string>)
public bool IsAllowed(string resource, IEnumerable<string> roles)
Parameters
resource string
roles IEnumerable<string>
Returns
- bool
IsAllowed(string, IEnumerable<string>, AuthorityAccess)
public bool IsAllowed(string resource, IEnumerable<string> roles, AuthorityAccess access)
Parameters
resource string
roles IEnumerable<string>
access AuthorityAccess
Returns
- bool
IsAllowed(string, IEnumerable<string>, HttpAccess)
public bool IsAllowed(string resource, IEnumerable<string> roles, HttpAccess access)
Parameters
resource string
roles IEnumerable<string>
access HttpAccess
Returns
- bool
IsAllowed(string, IEnumerable<string>, OperationAccess)
public bool IsAllowed(string resource, IEnumerable<string> roles, OperationAccess access)
Parameters
resource string
roles IEnumerable<string>
access OperationAccess
Returns
- bool
IsAllowed(string, IEnumerable<string>, SwitchAccess)
public bool IsAllowed(string resource, IEnumerable<string> roles, SwitchAccess access)
Parameters
resource string
roles IEnumerable<string>
access SwitchAccess
Returns
- bool
IsAllowed(string, string)
public bool IsAllowed(string resource, string role)
Parameters
resource string
role string
Returns
- bool
IsAllowed(string, string, AuthorityAccess)
public bool IsAllowed(string resource, string role, AuthorityAccess access)
Parameters
resource string
role string
access AuthorityAccess
Returns
- bool
IsAllowed(string, string, HttpAccess)
public bool IsAllowed(string resource, string role, HttpAccess access)
Parameters
resource string
role string
access HttpAccess
Returns
- bool
IsAllowed(string, string, OperationAccess)
public bool IsAllowed(string resource, string role, OperationAccess access)
Parameters
resource string
role string
access OperationAccess
Returns
- bool
IsAllowed(string, string, SwitchAccess)
public bool IsAllowed(string resource, string role, SwitchAccess access)
Parameters
resource string
role string
access SwitchAccess
Returns
- bool
IsDenied(string, IEnumerable<string>)
public bool IsDenied(string resource, IEnumerable<string> roles)
Parameters
resource string
roles IEnumerable<string>
Returns
- bool
IsDenied(string, string)
public bool IsDenied(string resource, string role)
Parameters
resource string
role string
Returns
- bool
Reindex()