Click or drag to resize

IDataObjectFieldLevelAccessModifierCalculateAccess Method

The method calculates and returns a set of access flags for a specific user to a specific data object and/or update rights for specific properties on the data object. The method can both add and remove access compared to the access stated by the DOSM security model. Implementation should be lightweight as the method is called for each data object beling loaded when DataObjectLoadOptions.LoadSecurity==true. Specifying specific properties only makes sense/has an effect if the active user is granted "Update" access to the data object.

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
AccessComputationResult CalculateAccess(
	DataObject dataObject,
	AccessFlags securityModelAccess,
	AccessCallContext callContext
)

Parameters

dataObject
Type: Omada.OE.ModelDataObject
The data object that access should be calculated for.
securityModelAccess
Type: Omada.OE.ModelAccessFlags
Contains the access which the user has to the data object according to the security model. Note that the user doesn't necessarily have any such access if the data object is being loaded with the OverrideSecurity option.
callContext
Type: Omada.OE.ModelAccessCallContext
Contains info about the user which access should be calculated for.

Return Value

Type: AccessComputationResult
Returns the calculated access. Can be: None, Read, Update or Read+Update. The result also contains an array (PropertyAccess) referrering to systemnames of properties, which may be updated by the active user
See Also