Click or drag to resize

AuthElement Class

Models an authorization element, which typically is an entity in the system (like menuitem or sequence).
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelAuthElement

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

The AuthElement type exposes the following members.

Constructors
  NameDescription
Public methodAuthElement(Int32)
Used when an ad-hoc authelement is to be used, e.g. in connection with request for rights for a user. Important that this type of constructor is not used for an existing id (id> 0) if the object (authelement) is subsequently to be saved in db. This will mean that new (useless) appstrings will be created in db! However, this is not a problem for just this particular class since there a sawing method for AuthElement does not exist at all!
Public methodAuthElement(Int32, AppString)
Top
Properties
  NameDescription
Public propertyAllowedPermissions
List of allowed permissions for this AuthElement
Public propertyId
Id
Public propertyName
Name
Public propertyNumber
Number
Public propertySystemName
Technical name of the Authorization element
Public propertyUId
UId
Top
Methods
  NameDescription
Public methodClone
Public methodStatic memberHasPermissionType
Returns whether a specific authelement supports a specific permission type. F.x. only a few authelements supports the 'execute' permission.
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