Click or drag to resize

ObjectsWithIdentityPropertyMatch Class

The access modifier controls access to data objects of an unspecified type (for example 'Roles'). It is only to be used in views as it has no access calculation logic (only load-option modification!). An object is accessible to a user if: - he has an identity (if not an error is thrown!) - the identity has the same value for a specified property as the object itself (that is, the object must have the very same property with the very same value(s) as the identity) - if the property is a multi-value set- or reference-property just one value need to be in common before it is considered a match

The access modifier requires the parameter MATCHPROPERTY which holds a system name of a property. The MATCHPROPERTY is the one being matched. MATCHPROPERTY must be present on both the Identity DOT as well as the DOT for the objects controlled by the access modifier. There is, however, and exception to this - see IDENTITYPROPERTY for details.

If MATCHPROPERTY is a reference property then the optional parameter IDENTITYPROPERTY can be applied. IDENTITYPROPERTY holds a system name of a reference property present on the Identity DOT. If IDENTITYPROPERTY is specified then the identity's value(s) for IDENTITYPROPERTY will be matched with the objects' value(s) for MATCHPROPERTY.

If MATCHPROPERTY is a reference property then the optional parameter INCLUDEIDENTITYVALUEPARENTS can be applied. INCLUDEIDENTITYVALUEPARENTS is a boolean indicating whether the parents of the identity values should be included in the match. As an example: if the MATCHPROPERTY states an org. unit and INCLUDEIDENTITYVALUEPARENTS is true then the match will be performed on the identity's org. unit as well as all parent data objects to the org. unit (on all levels up to the root).

OVERRIDEGROUPS parameter can be spcified with a list of user group UIds, if the active user is a member of any of these specified groups then the access modifier is overriden

The match property must be either: - a set property - a reference property - a value property w. datatype 'text' or 'integer'

Inheritance Hierarchy
SystemObject
  Omada.OE.AppLogic.AccessModifiersAccessModifierBase
    Omada.OE.AppLogic.AccessModifiersCommonAccessModifierBase
      Omada.OE.AppLogic.AccessModifiersViewAccessModifierBase
        Omada.OE.Solution.OIM.AppLogic.AccessModifiersObjectsWithIdentityPropertyMatch

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#
public class ObjectsWithIdentityPropertyMatch : ViewAccessModifierBase

The ObjectsWithIdentityPropertyMatch type exposes the following members.

Constructors
Properties
  NameDescription
Protected propertyDbConnection
Note: not available in the Initialize() method.
(Inherited from CommonAccessModifierBase.)
Protected propertyDbTransaction
Note: not available in the Initialize() method.
(Inherited from CommonAccessModifierBase.)
Protected propertyFactory
The factory can be used to create controller instances running on the connection/transaction that the call is executed in. Note: not available in the Initialize() method.
(Inherited from CommonAccessModifierBase.)
Protected propertyParameters
The parameters specified for the access modifier in the Initialize() method. Tip: retrieve a parameter value by using the GetParameterValue() method.
(Inherited from CommonAccessModifierBase.)
Top
Methods
  NameDescription
Public methodCalculateAccess (Inherited from ViewAccessModifierBase.)
Public methodGetAccessFlags
Get accessflags according to the readergroups, admingroups, and configuration of authrole elements.
(Inherited from CommonAccessModifierBase.)
Public methodGetParameterValue(IDictionaryString, String, String, Boolean)
Returns the value of a boolean parameter from the parameter values delivered to the Initialize() method. Method is intended to be used as utility in implementations of the Initialize() method.
(Inherited from AccessModifierBase.)
Public methodGetParameterValue(IDictionaryString, String, String, Guid)
Returns the value of a string parameter from the parameter values delivered to the Initialize() method. Method is intended to be used as utility in implementations of the Initialize() method.
(Inherited from AccessModifierBase.)
Public methodGetParameterValue(IDictionaryString, String, String, Int32)
Returns the value of an integer parameter from the parameter values delivered to the Initialize() method. Method is intended to be used as utility in implementations of the Initialize() method.
(Inherited from AccessModifierBase.)
Public methodGetParameterValue(IDictionaryString, String, String, String)
Returns the value of a string parameter from the parameter values delivered to the Initialize() method. Method is intended to be used as utility in implementations of the Initialize() method.
(Inherited from AccessModifierBase.)
Public methodGetUIdsFromParameter(String, String, IDictionaryString, String)
Returns a collection of UIds from the parameters delivered to the Initialize() method. Method is intended to be used as utility in implementations of the Initialize() method.
(Inherited from AccessModifierBase.)
Public methodGetUIdsFromParameter(String, String, IDictionaryString, String, Guid)
Returns a collection of UIds from the parameters delivered to the Initialize() method. Method is intended to be used as utility in implementations of the Initialize() method.
(Inherited from AccessModifierBase.)
Public methodInitialize (Overrides CommonAccessModifierBaseInitialize(IDictionaryString, String).)
Public methodModifyLoadOptions (Overrides CommonAccessModifierBaseModifyLoadOptions(DataObjectLoadOptionsBase, AccessCallContext).)
Public methodPrepareAccessCalculation
(Inherited from CommonAccessModifierBase.)
Protected methodQueryDataObjectIds
Queries the database and returns the ids of the data obejcts that meet a set of expressions. The security model is overridden.
(Inherited from CommonAccessModifierBase.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
Explicit Interface Implementations
See Also