Interface ISecuritySession
Security session interface
Namespace: XData.Interfaces
Assembly: XData.docfx.dll
Syntax
public interface ISecuritySession
Properties
| Improve this Doc View SourceIsSupervisor
Current user is supervisor flag
Declaration
bool IsSupervisor { get; }
Property Value
Type | Description |
---|---|
Boolean |
Roles
Current user roles list
Declaration
string[] Roles { get; }
Property Value
Type | Description |
---|---|
String[] |
UserName
Current user name
Declaration
string UserName { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceFilterGrantedObjects<T>(String, Expression)
Converts initial IQueryable expression filtering granted objects only
Declaration
Expression FilterGrantedObjects<T>(string context, Expression allDataExpr)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
String | context | Context name |
Expression | allDataExpr | Initial IQueryable expression |
Returns
Type | Description |
---|---|
Expression | Modified IQueryable expression |
Type Parameters
Name | Description |
---|---|
T | Data object type |
GetGrantedActions<T>(String)
Returns list of granted actions for current user
Declaration
string[] GetGrantedActions<T>(string context = null)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
String | context | Context name |
Returns
Type | Description |
---|---|
String[] | Actions list |
Type Parameters
Name | Description |
---|---|
T | Data object type |
GetRestrictedProperties<T>(String)
Returns list of restricted properties for current user
Declaration
string[] GetRestrictedProperties<T>(string context = null)
where T : class, IDataObject, new()
Parameters
Type | Name | Description |
---|---|---|
String | context | Context name |
Returns
Type | Description |
---|---|
String[] | Properties name list |
Type Parameters
Name | Description |
---|---|
T | Data object type |