Click or drag to resize

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

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: Boolean
True if the user can execute the query, false if not

Implements

IPrivacyEnforcementServiceValidateQueryTModel(ExpressionFuncTModel, Boolean, IPrincipal)
See Also