Click or drag to resize

ControllerBaseCheckObjectOperationSecurity Method

Checks that the active user is allowed to perform an CRUD operation on a specific configuration object. (note: except that a Create operation is not for a specific object). Throws a SecurityException if not. Method can be used for all configuration objects that are represented by a ConfigurationObjectType (except those that have a compound key). Method checks auth role security as well as whether it is allowed to modify builtin/feature package objects.

Namespace:  Omada.OE.AppLogic
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
protected void CheckObjectOperationSecurity(
	int id,
	ConfigurationObjectType cot,
	BasicOperation operation,
	int authElementDbId = 0,
	Nullable<int> ownerId = null,
	Nullable<ConfigurationObjectType> ownerCot = null
)

Parameters

id
Type: SystemInt32
Id of the object. If operation is Create then id must be zero. In all other situations id must have a non-zero value.
cot
Type: Omada.OE.ModelConfigurationObjectType
The ConfigurationObjectType of the specified id. Must be a type that doesn't have a compound key (please refer to ConfigurationChange.ObjectTypeHasCompoundKey).
operation
Type: Omada.OE.ModelBasicOperation
authElementDbId (Optional)
Type: SystemInt32
If the type-of-object is represented by an auth element then that must be specified here.
ownerId (Optional)
Type: SystemNullableInt32
ownerCot (Optional)
Type: SystemNullableConfigurationObjectType
See Also