Click or drag to resize

ProcessTargetAccessModifier Class

The access modifier gives read and update access to target instance data objects which the active user has either created or has a work item for. The access modifier doesn't affect access to template target data objects.

--- ADMINGROUPS is deprecated! Use the ProcessTargetAccessModifier authorization element to control permissions --- The access modifier supports the parameter ADMINGROUPS which can be used to specify a number of user groups who's members should have READ+UPDATE access to all target instance data objects. The value of ADMINGROUPS must be a comma delimited string with user group uids. If ADMINGROUPS is not specified then the value defaults to the built-in Administrators group. If ADMINGROUPS is specified then the built-in Administrators group must be included in order to have READ+UPDATE access. --- ADMINGROUPSKEY is deprecated! Use the ProcessTargetAccessModifier authorization element to toggle Admin permissions --- The access modifier also supports the parameter ADMINGROUPSKEY which works in the same way except that the value must be the key of a customer setting which holds a comma delimited string with user group uids.

--- READERGROUPS is deprecated! Use the ProcessTargetAccessModifier authorization element to control permissions --- The access modifier supports the parameter READERGROUPS which can be used to specify a number of user groups who's members should have READ access to all target instance data objects. The value of READERGROUPS must be a comma delimited string with user group uids. --- READERGROUPSKEY is deprecated! Use the ProcessTargetAccessModifier authorization element to toggle Read permissions --- The access modifier also supports the parameter READERGROUPSKEY which works in the same way except that the value must be the key of a customer setting which holds a comma delimited string with user group uids.

The access modifier supports the parameter ADMINSPROPERTY which can be used to specify the system name of a reference property (present on the target data objects) for referencing users (and groups). The users in this property will have READ+UPDATE access to the target data objects they are stated on.

The access modifier supports the boolean parameter DisallowAuthRoleAccess. If true, the Process Target access modifier authrole elements for any authorization role will be ignored when calculating security permissions

Inheritance Hierarchy
SystemObject
  Omada.OE.AppLogic.AccessModifiersAccessModifierBase
    Omada.OE.AppLogic.AccessModifiersCommonAccessModifierBase
      Omada.OE.AppLogic.AccessModifiersProcessTargetAccessModifier

Namespace:  Omada.OE.AppLogic.AccessModifiers
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public class ProcessTargetAccessModifier : CommonAccessModifierBase

The ProcessTargetAccessModifier 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 (Overrides CommonAccessModifierBaseCalculateAccess(DataObject, AccessFlags, AccessCallContext).)
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 (Overrides CommonAccessModifierBasePrepareAccessCalculation(ListDataObject, AccessCallContext).)
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