| DataPolicyFilterServiceValidateQueryTModel Method |
Validate that a query is not using restricted functions
Namespace:
SanteDB.Core.Security.Privacy
Assembly:
SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax public bool ValidateQuery<TModel>(
Expression<Func<TModel, bool>> query,
IPrincipal accessor
)
where TModel : IdentifiedData
Public Function ValidateQuery(Of TModel As IdentifiedData) (
query As Expression(Of Func(Of TModel, Boolean)),
accessor As IPrincipal
) As Boolean
public:
generic<typename TModel>
where TModel : IdentifiedData
virtual bool ValidateQuery(
Expression<Func<TModel, bool>^>^ query,
IPrincipal^ accessor
) sealed
abstract ValidateQuery :
query : Expression<Func<'TModel, bool>> *
accessor : IPrincipal -> bool when 'TModel : IdentifiedData
override ValidateQuery :
query : Expression<Func<'TModel, bool>> *
accessor : IPrincipal -> bool when 'TModel : IdentifiedData
Parameters
- query
- Type: System.Linq.ExpressionsExpressionFuncTModel, Boolean
The query expression - accessor
- Type: System.Security.PrincipalIPrincipal
The user which is running the query
Type Parameters
- TModel
- The type of data being queried
Return Value
Type:
BooleanTrue if the user can execute the query, false if not
Implements
IPrivacyEnforcementServiceValidateQueryTModel(ExpressionFuncTModel, Boolean, IPrincipal)See Also