Click or drag to resize

UsersAndRealGroupsIDataObjectAccessModifierCalculateAccess Method

The method calculates and returns a set of access flags for a specific user to a specific 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.

Namespace:  Omada.OE.Solution.OIM.AppLogic.AccessModifiers
Assembly:  Omada.OE.Solution.OIM.AppLogic (in Omada.OE.Solution.OIM.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
AccessFlags IDataObjectAccessModifier.CalculateAccess(
	IDataObject dataObject,
	AccessFlags securityModelAccess,
	AccessCallContext callContext
)

Parameters

dataObject
Type: Omada.OE.Model.PublicIDataObject
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: AccessFlags
Returns the calculated access. Can be: None, Read, Update or Read+Update.

Implements

IDataObjectAccessModifierCalculateAccess(IDataObject, AccessFlags, AccessCallContext)
See Also