SimpleDataObject Class |
Namespace: Omada.OE.Model
[SerializableAttribute] public class SimpleDataObject : IObjectWithId, IDataObject, ICloneable
The SimpleDataObject type exposes the following members.
Name | Description | |
---|---|---|
![]() | SimpleDataObject |
Constructor taking all the readonly attributes of the object
|
Name | Description | |
---|---|---|
![]() | DataObjectTypeId |
ID of the DataObjectType object
|
![]() | Deleted |
Returns true of the object is deleted
|
![]() | DisplayName |
DisplayName of the object
|
![]() | Id |
ID of the object
|
![]() | ParentId |
ParentId of the object
|
![]() | Template |
Returns true of the object is a template.
|
![]() | UId |
UID of the object
|
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |
Name | Description | |
---|---|---|
![]() ![]() | IObjectWithId.GetId | |
![]() ![]() | IDataObjectChangeTime |
States the date and time the data object last was changed.
The ChangeTime is not necessarily equal to the CreateTime of the newest version of the data object
since the ChangeTime may be updated independently for ILM integration purposes.
|
![]() ![]() | IDataObjectCreateTime |
States the date and time the data object was created.
|
![]() ![]() | IDataObjectDisplayName |
States the display name of the data object.
|
![]() ![]() | IDataObjectGetPropertyValue(Int32, IEnumerableInt32) |
Returns the value(s) of a Set property or a Reference property.
If the property is a Set property the Ids of the selected Set Property Values are returned.
If the property is a Reference property the Ids of the selected Data Objects are returned.
Throws an exception if:
- The property doesn't exist
- The property is not present in the data object type
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValue(Int32, Int32) |
Returns the value of a Value property with data type 'Integer' or a Set property or a Reference property.
If the property is a Set property the Id of the selected Set Property Value is returned.
If the Set property has more than one selected values then a random one of those is returned.
If the property is a Reference property the Id of the selected Data Object is returned.
If the Reference property has more than one selected values then a random one of those is returned.
Throws an exception if:
- The property is not found
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValue(Int32, String) |
Returns the string value of a property.
If the property is a Value property it must be of data type 'Text' or 'MultiLangText'.
If the property is a Set property the Name of the (first) selected value is returned.
If the property is a Reference property the DisplayName of the (first) selected value is returned.
Throws an exception if:
- The property doesn't exist
- The property is not present in the data object type
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValue(String, Boolean) |
Returns the value of a Value property with data type 'Boolean'.
Throws an exception if:
- The property is not found
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValue(String, IEnumerableInt32) |
Returns the value(s) of a Set property or a Reference property.
If the property is a Set property the Ids of the selected Set Property Values are returned.
If the property is a Reference property the Ids of the selected Data Objects are returned.
Throws an exception if:
- The property doesn't exist
- The property is not present in the data object type
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValue(String, DateTime) |
Returns the value of a Value property with data type 'DateTime'.
Throws an exception if:
- The property is not found
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValue(String, Double) |
Returns the value of a Value property with data type 'Decimal'.
Throws an exception if:
- The property is not found
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValue(String, Guid) |
Returns the value of Set property.
The UId of the selected Set Property Value is returned.
If the Set property has more than one selected values then a random one of those is returned.
Throws an exception if:
- The property doesn't exist
- The property is not present in the data object type
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValue(String, Int32) |
Returns the value of a Value property with data type 'Integer' or a Set property or a Reference property.
If the property is a Set property the Id of the selected Set Property Value is returned.
If the Set property has more than one selected values then a random one of those is returned.
If the property is a Reference property the Id of the selected Data Object is returned.
If the Reference property has more than one selected values then a random one of those is returned.
Throws an exception if:
- The property is not found
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValue(String, String) |
Returns the string value of a property.
If the property is a Value property it must be of data type 'Text' or 'MultiLangText'.
If the property is a Set property the Name of the (first) selected value is returned.
If the property is a Reference property the DisplayName of the (first) selected value is returned.
Throws an exception if:
- The property doesn't exist
- The property is not present in the data object type
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValue(String, TimeSpan) |
Returns the value of a Value property with data type 'TimeSpan'.
Throws an exception if:
- The property is not found
- The property is not of the right type and data type
- The value of the property is not available (because it has not been loaded)
- The value of the property is not accessible due to security
|
![]() ![]() | IDataObjectGetPropertyValues |
Returns a dictionary with the property values of the data object.
The keys in the dictionary are the system names of the properties.
Not all properties are present in the dictionary. The following are excluded:
- Text properties with log
- Hyperlink properties
- Properties w. denied access
- Properties w. an inavailable value
The data type of the property value depends on the type and data type of the property:
- Set property: IEnumerable int of SetPropertyValue ids
- Reference property: IEnumerable<IReferencePropertyValue>
- Value property - Text: string - can be null
- Value property - Integer: int - can be null
- Value property - DateTime: DateTime - can be null
- Value property - Decimal : double - can be null
- Value property - Boolean : bool - can be null
- Value property - TimeSpan : TimeSpan - can be null
- Value property - Multilang. text : string with value in active user's language - can be null
|
![]() ![]() | IDataObjectId |
States the Id of the data object.
|
![]() ![]() | IDataObjectNumber |
States the Number of the data object.
|
![]() ![]() | IDataObjectParentId |
States the Id of the data object which is the parent of the data object.
|
![]() ![]() | IDataObjectTemplate |
States whether the data object is a template.
Template data objects are either: process templates, activity templates or target object templates.
|
![]() ![]() | IDataObjectTypeId |
States the data object type id of the data object.
|
![]() ![]() | IDataObjectUId |
States the UId of the data object.
|