Click or drag to resize

IPolicyEnforcementServiceSoftDemand Method

Demand the specified policy and return the result

Namespace:  SanteDB.Core.Security.Services
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
bool SoftDemand(
	string policyId,
	IPrincipal principal
)

Parameters

policyId
Type: SystemString
The policy OID for which the demand is occurring
principal
Type: System.Security.PrincipalIPrincipal
The principal for which the policy should be demanded

Return Value

Type: Boolean
True if principal demand for policyId succeeded
Remarks
This method differs from Demand(String, IPrincipal) in that: Callers should use this to "test" if a principal has permission without generating an audit. If an audit is desired, or a decision to halt a process needed, use Demand(String, IPrincipal)
See Also