Click or drag to resize

DataObjectSecurity Class

Contains the security configuration for a data object.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelDataObjectSecurity

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class DataObjectSecurity : IObjectWithId, 
	ICloneable

The DataObjectSecurity type exposes the following members.

Constructors
  NameDescription
Public methodDataObjectSecurity(Int32)
Constructor taking the ID of the DataObject for which the security is defined.
Public methodDataObjectSecurity(Int32, DataObjectPermissions)
Constructor taking the ID of the DataObject for which the security is defined and the permissions.
Top
Properties
  NameDescription
Public propertyActiveUserAccessModifierPermissions
Contains permissions for the active user to the data object, which the security configuration is defined for, according to the applied access modifier. An access modifier can only affect READ and UPDATE permissions - so the remaing ones are always derrived from the data object security model. The permissions are NOT for the data object referred in DataObjectId - but for the data object which embeds the security object. Can be null.
Public propertyDataObjectId
Contains the DataObject for which the security is defined. The DataObjectSecurity object for a specific DataObject can contain the ID of another DataObject. In such case, the object is enheriting it from the other DataObject.
Public propertyPermissions
Contains the permissions on the DataObject
Public propertyPropertyAccess
Systemname of properties on the dataobject, which can be updated
Public propertyUseCloneFlags Obsolete.
Contains the clone permissions on the DataObject
Top
Methods
  NameDescription
Public methodActiveUserHasPermissions
Returns whether the active user has a specified set of permission flags to the data object, which the security object is for. If the data object type (of the data object, which the security object is for) has an access modifier this is taken into consideration.
Public methodClone
Clone of the object
Public methodStatic memberConvertAccessFlags
Static method to convert AccessFlags to PermissionFlags
Public methodStatic memberConvertPermissionFlags
Static method to convert PermissionFlags to AccessFlags
Public methodGetActiveUserPermissionFlags
Returns the permission flags for the active (identity) user. Important: the active users' authlevel is considered - that is, member groups are only considered if their authlevel is less than or eq. to the identity authlevel. Also, if the data object type (of the data object, which the security object is for) has an access modifier then this is taken into consideration as well.
Public methodGetActiveUserPermissionFlags(Boolean)
Returns the permissions flags for the active (identity) user. Important: the active users' authlevel is considered - that is, member groups are only considered if their authlevel is less than or eq. to the identity authlevel.
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
  NameDescription
Explicit interface implementationPrivate methodIObjectWithId.GetId
Top
See Also