Click or drag to resize

DataObjectController Class

DataObjectController contains business logic for interacting wtih data objects.
Inheritance Hierarchy
SystemObject
  Omada.OE.AppLogicControllerBase
    Omada.OE.AppLogicDataObjectController

Namespace:  Omada.OE.AppLogic
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public class DataObjectController : ControllerBase, 
	IDataObjectImporter

The DataObjectController type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyConnectionString
Connection string for the database. Can be null.
(Inherited from ControllerBase.)
Public propertyDbCommandTimeout
DbCommandTimeout is applied to SqlCommand objects created using CreateSqlCommand(). The DbCommandTimeout value is (normally) passed on to other controllers created by the controller. If DbCommandTimeout is Zero then the DB default will be used as timeout.
(Inherited from ControllerBase.)
Public propertyDbConnection
Consider using CreateCommand() instead of accessing DbConnection directly. DbConnection and DbTransaction are either specified when constucting the controller or the controller constructs them itself (by using ConnectionString) when calling DoInConnection or DoInTransaction. If the caller specified DbConnection and DbTransaction when constucting the controller then the caller is responsible for the management of the connection.
(Inherited from ControllerBase.)
Public propertyDbTransaction
Consider using CreateCommand() instead of accessing DbTransaction directly. DbConnection and DbTransaction are either specified when constucting the controller or the controller constructs them itself (by using ConnectionString) when calling DoInConnection or DoInTransaction. If the caller specified DbConnection and DbTransaction when constucting the controller then the caller is responsible for the management of the connection.
(Inherited from ControllerBase.)
Public propertyFactory
Factory class for creating controller instances.
(Inherited from ControllerBase.)
Top
Methods
  NameDescription
Public methodAssignPermissions
Assigns a set of permissions to a data object. If the data object inherits its security then the inheritance is broken before the new permissions are assigned. All existing permissions (regardless of whether security is inherited or not) is cleared before the new permissions are assigned.
Protected methodBuildCacheKey
Builds a cache key for use with GetFromCacheIfPresent. The cache key is not hashed because we have experienced a collision using GetHashCode() ie. the cache keys are quite long and there is a price in dictionary size in memory and in dictionary lookups.
(Inherited from ControllerBase.)
Public methodCheckActiveUserPermissions(IEnumerableInt32, PermissionFlags)
Public methodCheckActiveUserPermissions(Int32, PermissionFlags)
Returns whether the active user has a specified set of permissions to a number of specified data objects. The method only returns true if the active user has the specified set of permissions to ALL of the specified data objects. The method inspects the DOSM and any Access Modifier that applies to the data objects. If the active user is the SYSTEM user the method always returns true. Also, if the method is executed inside a SecurityOverrideContext it returns true. The active user's auth level is considered.
Public methodStatic memberCheckActiveUserPermissions(IEnumerableInt32, PermissionFlags, SqlConnection, SqlTransaction) Obsolete.
Public methodStatic memberCheckActiveUserPermissions(Int32, PermissionFlags, SqlConnection, SqlTransaction) Obsolete.
Returns whether the active user has a specified set of permissions to the specified data object. The method inspects the DOSM and any Access Modifier that applies to the data object. If the active user is the SYSTEM user the method always returns true. Also, if the method is executed inside a SecurityOverrideContext it returns true. The active user's auth level is considered.
Public methodCheckAndSaveDataObject(DataObject, DataObjectSaveOptions) Obsolete.
Public methodStatic memberCheckAndSaveDataObject(DataObject, DataObjectSaveOptions, SqlConnection, SqlTransaction) Obsolete.
Protected methodCheckObjectOperationSecurity
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.
(Inherited from ControllerBase.)
Protected methodCheckObjectSaveOperationSecurity
Checks that the active user is allowed to Create a new - or Update an existing configuration 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.
(Inherited from ControllerBase.)
Public methodStatic memberClearDataExchangeConfigId
Public methodConvertId(Int32, ConfigurationObjectType)
Converts the integer id of an object to its transport-safe unique id (UId).
(Inherited from ControllerBase.)
Public methodConvertId(String, ConfigurationObjectType)
Converts a string representation of an integer or Guid id to an integer id.
(Inherited from ControllerBase.)
Public methodConvertId(Guid, ConfigurationObjectType, Boolean)
Converts the transport-safe unique id (UId) of an object to its integer id.
(Inherited from ControllerBase.)
Public methodConvertIds(IEnumerableGuid)
Returns the Ids of one or more data objects from their U(nique)Ids. The UId of a data object remains the same when it is transported to another system - this is not the case with the Id of a data object. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodConvertIds(IEnumerableInt32)
Returns the U(nique)Ids of one or more data objects from their Ids. The UId of a data object remains the same when it is transported to another system - this is not the case with the Id of a data object. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodConvertIds(IEnumerableGuid, ConfigurationObjectType)
Converts the transport-safe unique ids (UId) of a number of objects to integer ids.
(Inherited from ControllerBase.)
Public methodConvertIds(IEnumerableInt32, ConfigurationObjectType)
Converts the integer ids of a number of objects to their transport-safe unique ids (UId).
(Inherited from ControllerBase.)
Protected methodCreateCommand(SQLBuilder) (Inherited from ControllerBase.)
Protected methodCreateCommand(String) (Inherited from ControllerBase.)
Public methodStatic memberCreateDataObjectFromTemplate(Int32, Int32, Int32, SqlConnection, SqlTransaction)
Public methodStatic memberCreateDataObjectFromTemplate(Int32, Int32, Int32, Boolean, SqlConnection, SqlTransaction)
Method creates a new data object of the specified type. The property values of the specified template object will be copied to the new data object based on the settings of the specified copy rule.
Public methodCreateNewDataObject
Creates/instantiates a new data object that is ready to be assigned property values to and being saved to the database. Note that the method doesn't save the data object to the database.
Protected methodCreateSqlBulkCopy
Create a new SqlBulkCopy instance using the connection, transaction and timeout values from the controller
(Inherited from ControllerBase.)
Public methodDataObjectExists(Int32, Boolean)
Public methodStatic memberDataObjectExists(Int32, SqlConnection, SqlTransaction)
Returns whether a data object with a specified id exists in the db - regardless of whether it is marked as deleted or not!
Public methodDataObjectOfTypeExist
Does at least one (non-deleted) data object of a specified type exist in the system?
Public methodDataObjectsExist
The method checks if all data objects exist
Public methodDeleteOldObjectVersions
Deletes all versions of a data object except the current version.
Public methodDeserializeExpressions
Deserializes filter expressions from an xml format.
Public methodDoInConnection(ControllerBaseActionWithNoResult)
Executes an action that doesn't return a result. If no current connection exists, it will establish a connection to the database and close it afterwards. An existing connection will be reused. Inside the action, the connection is available as DbConnection.
(Inherited from ControllerBase.)
Public methodDoInConnection(ActionSqlConnection, SqlTransaction, Boolean)
Executes an action that doesn't return a result. If no current connection exists, it will establish a connection to the database and close it afterwards. Connection and Transaction are passed to delegate, to allow passing to other controllers An existing connection will be reused. Inside the action, the connection is available as DbConnection. To ensure a new connection set forceNew to true.
(Inherited from ControllerBase.)
Public methodDoInConnectionT(ControllerBaseActionWithResultT)
Executes an action and returns the result. If no current connection exists, it will establish a connection to the database and close it afterwards. An existing connection will be reused. Inside the action, the connection is available as DbConnection.
(Inherited from ControllerBase.)
Public methodDoInTransaction(ControllerBaseActionWithNoResult)
Executes an action (that doesn't return a result) in a transaction. If no current connection and/or transaction exists, it will establish it and commit and close it afterwards. An existing connection/transaction will be reused. Inside the action, the connection is available as DbConnection and the transaction as DbTransaction.
(Inherited from ControllerBase.)
Public methodDoInTransactionT(ControllerBaseActionWithResultT)
Executes an action in a transaction and returns the result. If no current connection and/or transaction exists, it will establish it and commit and close it afterwards. An existing connection/transaction will be reused. Inside the action, the connection is available as DbConnection and the transaction as DbTransaction.
(Inherited from ControllerBase.)
Public methodDoInTransactionT(FuncSqlConnection, SqlTransaction, T, Boolean)
Executes an action in a transaction and returns the result. Connection and Transaction are passed to delegate, to allow passing to other controllers If no current connection and/or transaction exists, it will establish it and commit and close it afterwards. An existing connection/transaction will be reused. Set forceNew to true to ensure new connection and transaction Inside the action, the connection is available as DbConnection and the transaction as DbTransaction.
(Inherited from ControllerBase.)
Protected methodDoInTransactionUnlessPostponedDueToPreviousDefaultResultT
The method can postpone a SQL transaction implemented by action if the method returns a default number, eg. 0. If the the action method throws a SQL transitent error, then the next call to action is also postponed.
(Inherited from ControllerBase.)
Protected methodDoUnlessPostponedDueToPreviousDefaultResultT
The method can postpone a method invocation if the previous call returned a default number, eg. 0.
(Inherited from ControllerBase.)
Protected methodExecScalarResultQueryT
Executes a query with a scalar result.
(Inherited from ControllerBase.)
Public methodExecuteMutexOperation(String, Action, Boolean) (Inherited from ControllerBase.)
Protected methodExecuteMutexOperationT(String, FuncT, Boolean) (Inherited from ControllerBase.)
Protected methodExpireCacheItem (Inherited from ControllerBase.)
Public methodGetActiveUserPermissionFlags(Int32)
Public methodStatic memberGetActiveUserPermissionFlags(Int32, SqlConnection, SqlTransaction)
Public methodStatic memberGetCurrentDataObjectVersionId Obsolete.
Public methodGetCurrentVersionId
Public methodGetDataObject(Guid, Boolean)
Loads and returns a single data object. Throws an exception if it can't be found.
Public methodGetDataObject(Int32, Boolean)
Loads and returns a single data object. Throws an exception if it can't be found.
Public methodStatic memberGetDataObject(Int32, SqlConnection, SqlTransaction)
Loads and returns a single data object. Throws an exception if it can't be found. Security is respected.
Public methodStatic memberGetDataObject(Int32, Boolean, SqlConnection, SqlTransaction)
Loads and returns a single data object. Throws an exception if it can't be found.
Public methodGetDataObjectChangeTime(Int32)
Public methodStatic memberGetDataObjectChangeTime(Int32, SqlConnection, SqlTransaction) Obsolete.
Public methodStatic memberGetDataObjectChildrenIds(Int32, SqlConnection, SqlTransaction)
Returns a sorted list of the ids of the data objects that lie directly below a specified data object. Security is disregarded.
Public methodStatic memberGetDataObjectChildrenIds(Int32, Int32, SqlConnection, SqlTransaction)
Returns a sorted list of the ids of the data objects that lie directly below a specified data object. Security is disregarded.
Public methodGetDataObjectCount
Returns the count of dataobjects.
Public methodGetDataObjectCreatedBy(Int32)
Public methodStatic memberGetDataObjectCreatedBy(Int32, SqlConnection, SqlTransaction)
Public methodGetDataObjectCreateTime(Int32)
Public methodStatic memberGetDataObjectCreateTime(Int32, SqlConnection, SqlTransaction)
Public methodStatic memberGetDataObjectDisplayName
Public methodGetDataObjectDisplayNames(IEnumerableInt32)
Public methodStatic memberGetDataObjectDisplayNames(IEnumerableInt32, SqlConnection, SqlTransaction)
Returns the displaynames for a number of data objects. The security model is not considered. Delete-marked data objects are also returned. Note that the names are not necessarily in the same order as the ids.
Public methodGetDataObjectDisplayNames2(IEnumerableInt32)
Tip: use Dictionary<int, string> GeDisplayNamesEx(IEnumerable<int>) instead.
Public methodGetDataObjectDisplayNames2(IEnumerableInt32, Boolean)
Tip: use Dictionary<int, string> GeDisplayNamesEx(IEnumerable<int>) instead.
Public methodGetDataObjectGroupedCount
Returns the count of dataobjects grouped by the grouping parameters provided in the loadOptions. If an data object has an undefined value for a group it is not counted.
Public methodGetDataObjectIdByDisplayName(Int32, String)
Public methodStatic memberGetDataObjectIdByDisplayName(Int32, String, SqlConnection, SqlTransaction)
Public methodStatic memberGetDataObjectIdByIntPropertyValue(Int32, Int32, Int32, SqlConnection, SqlTransaction) Obsolete.
Public methodGetDataObjectIdByIntPropertyValue(Int32, Int32, Int32, Int32, Boolean)
Public methodGetDataObjectIdByKeyValue(Int32, String)
Public methodGetDataObjectIdByKeyValue(Int32, String, String)
Use GetDataObjectIdByKeyValue(int, string, string) instead
Public methodStatic memberGetDataObjectIdByKeyValue(Int32, String, SqlConnection, SqlTransaction)
Public methodGetDataObjectIdByTextPropertyValue(Guid, String, String)
Returns the id of a dataobject (of a specific type) based on the value of a property of datatype text. Security is overridden.
Public methodStatic memberGetDataObjectIdByTextPropertyValue(Int32, Int32, String, SqlConnection, SqlTransaction) Obsolete.
Public methodStatic memberGetDataObjectIdByTextPropertyValue(Int32, Int32, String, Boolean, SqlConnection, SqlTransaction) Obsolete.
Public methodGetDataObjectIdByTextPropertyValue(Int32, Int32, String, Boolean, Int32, Boolean)
Returns the id of a dataobject (of a specific type) based on the value of a property of datatype text. The id of the first dataobject that matches the property value is returned. The property value is caseINsensitive. If no dataobject is found zero is returned.
Public methodGetDataObjectIds(DataObjectIdLoadOptions)
Public methodStatic memberGetDataObjectIds(DataObjectIdLoadOptions, SqlConnection, SqlTransaction)
Public methodGetDataObjectIdsByDisplayNames(Int32, IEnumerableString)
Finds data object ids by their display names.
Public methodStatic memberGetDataObjectIdsByDisplayNames(Int32, IEnumerableString, SqlConnection, SqlTransaction)
Finds data object ids by their display names.
Public methodGetDataObjectIdsByTextPropertyValues(Int32, IEnumerableString, IEnumerableInt32, Boolean, Boolean)
Find data objects that has (one of a set of) specified values in a specified text property. The data object security model is not respected!
Public methodStatic memberGetDataObjectIdsByTextPropertyValues(Int32, Int32, IListString, Boolean, SqlConnection, SqlTransaction) Obsolete.
Returns the ids of one or more dataobjects (of a specific type) based on the values of a property of datatype text.
Public methodGetDataObjectKeyValues(IEnumerableInt32)
Returns a dictionary with data object ids and their key values. The key value of a data object is the value of the (text or integer) property specified as key property on the data object type. If no property is specified as key property on the data object type then the display name is used.
Public methodStatic memberGetDataObjectKeyValues(IEnumerableInt32, SqlConnection, SqlTransaction) Obsolete.
Returnerer dictionary med key values for alle dataobjekter angivet i dataObjIds. Key value er enten værdien for den (key) property som er angivet på dataobjtypen eller dataobjektets displayname.
Public methodGetDataObjectManager(DataObjectLoadOptions)
Returns a dataobject manager object loaded with dataobjects.
Public methodStatic memberGetDataObjectManager(DataObjectLoadOptions, SqlConnection, SqlTransaction)
Public methodGetDataObjectParentId(Int32)
Public methodStatic memberGetDataObjectParentId(Int32, SqlConnection, SqlTransaction)
Public methodGetDataObjectParents(IntegerList)
Public methodStatic memberGetDataObjectParents(IntegerList, SqlConnection, SqlTransaction)
Public methodGetDataObjectPath(Int32)
Public methodGetDataObjectPath(Int32, Int32, Boolean)
Public methodStatic memberGetDataObjectSecurity
Public methodStatic memberGetDataObjectsReferringDataObject(Int32, SqlConnection, SqlTransaction)
Returns the ids of the data objects that refers the indicated data object through a reference property. Looks in all versions.
Public methodGetDataObjectsReferringDataObject(Int32, Int32, Int32, Boolean)
Returns the ids of the data objects that refers the indicated data object through a reference property.
Public methodStatic memberGetDataObjectsReferringDataObject(Int32, Int32, Int32, Boolean, SqlConnection, SqlTransaction)
Returns the ids of the data objects that refers the indicated data object through a reference property.
Public methodGetDataObjectsReferringDataObjects(IEnumerableInt32, IEnumerableInt32, Int32, Int32)
Returns the ids of the data objects that refers one or more of the indicated data objects through a reference property.
Public methodStatic memberGetDataObjectsReferringDataObjects(IEnumerableInt32, IEnumerableInt32, Int32, Int32, SqlConnection, SqlTransaction) Obsolete.
Public methodGetDataObjectTypeDataObjectIdsDictionary
Returns type ids for a number of data objects in the form of a dictionary where the keys are data object type ids and the values are lists of ids of the data objects of the specific type. Disregards security and the deleted flag.
Public methodGetDataObjectTypeId(Int32)
Returns the id of the data object type which a data object is of. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodStatic memberGetDataObjectTypeId(Int32, SqlConnection, SqlTransaction)
Returns the id of the data object type which a data object is of. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodGetDataObjectTypeIdDict(IEnumerableInt32)
Returnerer et dataobjekts typenavn og (eget) nummer.
Public methodStatic memberGetDataObjectTypeIdDict(IEnumerableInt32, SqlConnection, SqlTransaction)
Public methodStatic memberGetDataObjectTypeIdDict(IEnumerableInt32, Boolean, SqlConnection, SqlTransaction)
Returnerer typeids for et antal dataobjekter. Der tages ikke hensyn til security eller om objekterne er slettede.
Public methodGetDataObjectTypeIdDictionary
Returns type ids for a number of data objects. Disregards security and the deleted flag.
Public methodGetDataObjectTypeIds(IEnumerableInt32)
Returns a distinct list of data object type ids for a collection of data object ids. The method doesn't consider the security model. The method doesn't consider whether the data objects are marked as deleted.
Public methodStatic memberGetDataObjectTypeIds(IEnumerableInt32, SqlConnection, SqlTransaction)
Public methodGetDataObjectTypeSystemName(Guid)
Returns the system name of a data object's data object type. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodGetDataObjectTypeSystemName(Int32)
Returns the system name of a data object's data object type. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodGetDataObjectUIds(Int32, String) Obsolete.
Returns the uids of the data objects of the specified type, that hold the specified key value. Security is overridden! Deleted objects are not considered.
Public methodStatic memberGetDataObjectUIds(IntegerList, SqlConnection, SqlTransaction)
Public methodStatic memberGetDataObjectUIds(Int32, String, SqlConnection, SqlTransaction) Obsolete.
Public methodGetDataObjectUIdsByIntegerPropertyValues
Find data objects that has (one of a set of) specified values in a specified integer property.
Public methodGetDataObjectUIdsByTextPropertyValues
Find data objects that has (one of a set of) specified values in a specified text property.
Public methodGetDataObjectWithIngoingReferences(IntegerList, IntegerList)
Public methodStatic memberGetDataObjectWithIngoingReferences(IntegerList, IntegerList, SqlConnection, SqlTransaction)
Protected methodGetDbUTCNow
(Inherited from ControllerBase.)
Public methodGetDisplayName(Int32)
Returns the display name of a data object. Obtaining the DisplayName using this method consumes less resources than loading the entire data object. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodGetDisplayName(Int32, Boolean)
Returns the display name of a data object. Obtaining the DisplayName using this method consumes less resources than loading the entire data object. The method doesn't consider whether the data object is marked as deleted.
Public methodStatic memberGetDisplayName(Int32, SqlConnection, SqlTransaction)
Returns the display name of a data object. Obtaining the DisplayName using this method consumes less resources than loading the entire data object. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodGetDisplayNames(IEnumerableInt32)
Returns the displaynames for a number of data objects. The security model is not considered. Delete-marked data objects are also returned. Note that the names are not necessarily in the same order as the ids.
Public methodGetDisplayNames(IEnumerableInt32, Boolean)
Returns the displaynames for a number of data objects. Delete-marked data objects are also returned. Note that the names are not necessarily in the same order as the ids.
Public methodGetDisplayNamesEx
Returns the displaynames for a number of data objects. The security model is not considered. Delete-marked data objects are also returned. The result is being cached for 2 minutes unless caching is ignore using IgnoreCacheContext
Public methodStatic memberGetFileAttachments
Gets file attachments from a data object.
Public methodGetFromCacheIfPresent(String, ControllerBaseActionWithResultIntegerList, ControllerBaseCacheOptions) (Inherited from ControllerBase.)
Public methodGetFromCacheIfPresent(String, ControllerBaseActionWithResultAppIdentity, ControllerBaseCacheOptions) (Inherited from ControllerBase.)
Public methodGetFromCacheIfPresent(String, ControllerBaseActionWithResultBoolean, ControllerBaseCacheOptions) (Inherited from ControllerBase.)
Public methodGetFromCacheIfPresent(String, ControllerBaseActionWithResultIListGuid, ControllerBaseCacheOptions) (Inherited from ControllerBase.)
Public methodGetFromCacheIfPresent(String, ControllerBaseActionWithResultListGuid, ControllerBaseCacheOptions) (Inherited from ControllerBase.)
Public methodGetFromCacheIfPresent(String, ControllerBaseActionWithResultListInt32, ControllerBaseCacheOptions) (Inherited from ControllerBase.)
Public methodGetFromCacheIfPresent(String, ControllerBaseActionWithResultGuid, ControllerBaseCacheOptions) (Inherited from ControllerBase.)
Public methodGetFromCacheIfPresent(String, ControllerBaseActionWithResultInt32, ControllerBaseCacheOptions) (Inherited from ControllerBase.)
Public methodGetFromCacheIfPresent(String, ControllerBaseActionWithResultTimeZoneInfo, ControllerBaseCacheOptions) (Inherited from ControllerBase.)
Public methodGetFromCacheIfPresentT(String, ControllerBaseActionWithResultListT, ControllerBaseCacheOptions) (Inherited from ControllerBase.)
Public methodGetFromCacheIfPresentT(String, ControllerBaseActionWithResultT, ControllerBaseCacheOptions)
Retrieves some data from the cache or (if it is not there) executes an action and stores the result in the cache. Caching is not applied if the IgnoreCacheContext is used (depending on the parameter for it). Note: caching should only be used with great care as there are a number of potential issues involved in using it!
(Inherited from ControllerBase.)
Public methodGetId
Returns the Id of a data object from its UId. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodStatic memberGetIntegerPropertyValue
Tip: Use GetSinglePropertyValue(int, int, T) instead
Public methodGetMaxDataObjectChangeTime(IntegerList)
Public methodStatic memberGetMaxDataObjectChangeTime(IntegerList, SqlConnection, SqlTransaction)
Protected methodGetNewRowIdentity (Inherited from ControllerBase.)
Public methodGetNumber
Protected methodGetObjectDataVersion
Gets the data version of an object.
(Inherited from ControllerBase.)
Public methodGetObjectsChangedSince
Returns a subset of data objects that has been changed in one or more properties since a specified point in time. The method does not use snapshot reads but reads committed data (unlike the default in APIs). This is because the object ids originate from the view viewPolicyEngineObjectEvents which makes dirty reads.
Public methodStatic memberGetParentId
Returns the id of the parent data object to a data object. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodGetPropertyLogEntries(Int32, Int32)
Returnerer alle logentries for en property (med log) på et givet dataobject. Hvis den aktive bruger ikke har adgang til property returneres en tom collection.
Public methodStatic memberGetPropertyLogEntries(Int32, Int32, SqlConnection, SqlTransaction)
Returnerer alle logentries for en property (med log) på et givet dataobject. Hvis den aktive bruger ikke har adgang til property returneres en tom collection.
Public methodGetPropertyLogEntriesText
Returnerer alle logentries for en property (med log) på et givet dataobject. Hvis den aktive bruger ikke har adgang til property returneres en tom collection.
Public methodGetPropertyValue(Int32, String, String)
TIP: Use GetSinglePropertyValue(int, string, T) instead! Returns a Text or Xml property value of a data object.
Public methodGetPropertyValue(Int32, Int32, String, Int32)
Returns the value of a Value property with data type 'Text' or 'MultiLangText'. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted. Throws an exception if: - The data object doesn't exist - The property doesn't exist or it is not a value property w. data type 'Text' or 'MultiLangText'. - The property is a log property.
Public methodStatic memberGetPropertyValue(Int32, Int32, IListInt32, SqlConnection, SqlTransaction)
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. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted. Throws an exception if: - The data object doesn't exist - The property doesn't exist or it is not a Set property or a Reference property.
Public methodGetPropertyValuesT(Int32, Int32)
Public methodGetPropertyValuesT(Int32, String)
Returns the value(s) for a property or a fixed field on a data object. Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details. The security model is respected. Throws an exception if the data object doesn't exist or security prevents access to it.
Public methodGetReferencePathObjectIds(IListInt32, DataObjectReferencePath, IListString)
Returns the ids of a number of data objects which found by applying a reference path to a number of source data object ids. The security model is not respected!
Public methodStatic memberGetReferencePathObjectIds(IListInt32, DataObjectReferencePath, SqlConnection, SqlTransaction)
Public methodGetReferencePathObjectValues
Returns the display values for the provided data object ids and reference path. Unless "overrideSecurity" is true, the security is respected for the referenced objects.
Public methodGetReferencePropertyControlValues(String, IEnumerableIDataObject)
Returns a collection of reference property control values. If a ReferencePropertyDisplayValueResolver has been implemented this is used to "override" the display values of the referred data objects.
Public methodGetReferencePropertyControlValues(String, IEnumerableInt32)
Returns a collection of reference property control values. The method looks up the data object type ids and display names of the referred data objects. If a ReferencePropertyDisplayValueResolver has been implemented this is used to "override" the display values of the referred data objects. The method doesn't respect the security model. Data objects are returned even if they are marked as deleted.
Public methodGetReferencePropertyValueId(Int32, Int32, Int32)
Public methodGetReferencePropertyValueId(Int32, String, Int32)
Public methodStatic memberGetReferencePropertyValueId(Int32, Int32, Int32, SqlConnection, SqlTransaction)
Returns the value of a specific reference property on a data object. If more than one value are present the first is returned. If no value are present then 'default' is returned.
Public methodStatic memberGetReferencePropertyValueId(Int32, String, Int32, SqlConnection, SqlTransaction) Obsolete.
Returns the value of a specific reference property on a data object. If more than one value are present the first is returned. If no value are present then 'default' is returned.
Public methodGetReferencePropertyValueIdPerDataObject
Returns data object ids that are referred by a number of data objects in a reference property. If the property has multiple values, only the first one is returned If the property has no value, a default value is returned
Public methodGetReferencePropertyValueIds(IEnumerableInt32, Int32)
Returns the distinct data objects that are referred by a number of data objects in a reference property.
Public methodStatic memberGetReferencePropertyValueIds(IEnumerableInt32, Int32, SqlConnection, SqlTransaction)
Public methodGetSetPropertiesValueIdsPerDataObject(IEnumerableInt32, Int32, Int32)
Returns the value of a specific set property for a list of data objects. If more than one value are present then the first is returned. If no value are present then 'default' is returned.
Public methodStatic memberGetSetPropertiesValueIdsPerDataObject(IEnumerableInt32, Int32, SqlConnection, SqlTransaction)
Public methodGetSetPropertyValueIds(Int32, Int32)
Return set property values for a given data object
Public methodStatic memberGetSetPropertyValueIds(Int32, Int32, SqlConnection, SqlTransaction)
Public methodGetSinglePropertyValueT(Guid, String, T)
Public methodGetSinglePropertyValueT(Int32, Int32, T)
Public methodGetSinglePropertyValueT(Int32, String, T)
Returns a single value for a property or a fixed field on a data object. Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details. The security model is respected. Throws an exception if the data object doesn't exist or security prevents access to it.
Public methodGetSinglePropertyValueByOdwMappingT
Returns a single value for a property or a fixed field on a data object based on ODW mapping. Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details. The security model is respected. Throws an exception if the data object doesn't exist or security prevents access to it.
Public methodGetSinglePropertyValuePerDataObjectT
Returns a single value for a property or a fixed field on a list of data objects. Not all fixed fields are supported - please refer to the PropertyValuesContainer class for details. The security model is respected. Throws an exception if the data object doesn't exist or security prevents access to it.
Public methodGetTargetProcessIds(Int32, StateFlags, DeletedStatus, TemplateStatus)
Returns ID's for the process template or instances that use the specified dataobject as target
Public methodStatic memberGetTargetProcessIds(Int32, StateFlags, SqlConnection, SqlTransaction) Obsolete.
Returns ID's for the undeleted process instances that use the specified dataobject as target
Public methodStatic memberGetTargetProcessIds(Int32, StateFlags, DeletedStatus, SqlConnection, SqlTransaction) Obsolete.
Returns ID's for the process instances that use the specified dataobject as target
Public methodGetTextPropertyValues(Int32, IEnumerableInt32)
Returns values for a number of properties (with datatype text) for the current version of a dataobject.
Public methodStatic memberGetTextPropertyValues(Int32, IEnumerableInt32, SqlConnection, SqlTransaction)
Returns values for a number of properties (with datatype text) for the current version of a dataobject.
Public methodGetUId
Returns the U(nique)Id of a data object from its Id. The UId of a data object remains the same when it is transported to another system - this is not the case with the Id of a data object. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodStatic memberGetUIds
Returns the U(nique)Ids of one or more data objects from their Ids. The UId of a data object remains the same when it is transported to another system - this is not the case with the Id of a data object. The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodStatic memberGetUsersWithAccess
Returns the subset of userIds which have the stated permissions to the specified data object. The method doesn't consider authentication levels. The method doesn't consider access modifiers!
Public methodGetVersions
Gets all versions of a dataobject. Index 0 is the current version. Index 1 is the previous version (if any). ... and so forth.
Public methodImportSerializedDataObjects(ListDictionaryString, Object)
Processes a set of data object operations (create, update or delete).
Public methodImportSerializedDataObjects(Stream, ObjectImporterSettings)
Public methodImportSerializedDataObjects(Stream, Stream, ObjectImporterSettings)
Public methodStatic memberImportSerializedDataObjects(Stream, Stream, ObjectImporterSettings, SqlConnection, SqlTransaction) Obsolete.
Imports (creates, updates or deletes) a number of data objects as specified in a "Data Object Exchange ML" xml document.
Protected methodIncrementDataVersion
(Inherited from ControllerBase.)
Protected methodIncrementObjectDataVersion(IEntityObject)
Increments the data version of an entity object. The data version is incremented in the db as well as on the object itself. Method is used to update the data version of an object when an aggregated object is created/modified/deleted. The purpose is to ensure that the id-based cache (in AppIdentity) is updated properly.
(Inherited from ControllerBase.)
Protected methodIncrementObjectDataVersion(Int32, EntityObjectType)
Increments the data version of an entity object in the db. Method is used to update the data version of an object when an aggregated object is created/modified/deleted. The purpose is to ensure that the id-based cache (in AppIdentity) is updated properly.
(Inherited from ControllerBase.)
Public methodInheritDataObjectSecurity
Public methodIsChildOf(Int32, Int32)
Public methodStatic memberIsChildOf(Int32, Int32, SqlConnection, SqlTransaction) Obsolete.
Public methodIsDataObjectVersionCurrent
Public methodIsDeleted(Int32)
Public methodStatic memberIsDeleted(Int32, SqlConnection, SqlTransaction)
Public methodIsTemplateObject(Int32)
The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodStatic memberIsTemplateObject(Int32, SqlConnection, SqlTransaction)
The method doesn't consider the security model. The method doesn't consider whether the data object is marked as deleted.
Public methodIsValidDataObjectFile(Int32, Int32)
check whether the given file is present in any data object as an attachment
Public methodStatic memberIsValidDataObjectFile(Int32, Int32, SqlConnection, SqlTransaction)
Public methodLoadDataObjects(DataObjectLoadOptions)
Public methodStatic memberLoadDataObjects(DataObjectLoadOptions, SqlConnection, SqlTransaction)
The method is used for loading a collection of data objects.
Public methodCode exampleLoadObjects
Loads a number of dataobjects from the database corresponding to the specified load options.
Public methodLoadPropertyReferenceInfos
Public methodMarkDataObjectsAsDeleted
Public methodModifyXmlProperty
Modifies the value of an xml property on (the current version of) a data object.
Public methodStatic memberPopulatePropertiesFromXml
The method populates values for a dataobject version using the XML in tbldataobjectversion.propertyxml. The XMl is loaded using an XmlTextReader, this is more effecient than using a DOM object. A description of the propertyxml format can be found in OE57 'PropertyXML.doc'
Public methodStatic memberPopulatePropertyValuesFromAVP
Populates the property values of a data object from a set of attribute value pairs. The data object is *not* saved.
Protected methodPopulateTempTableT
Creates a temporary db table with a single column and populates it with values.
(Inherited from ControllerBase.)
Protected methodPostponeTransientErrorT
If the action throws a transient sql error, the exception is eaten. An entry is written to the log with level Information. The entire exception is written to the log with level Debug.
(Inherited from ControllerBase.)
Public methodPurgeAgedDataObjectVersions
Purges a chunk of obsolete data object version rows. The minimim age of object versions are configured on the object type, only object versions older than that are deleted
Public methodPurgeAllDeletedDataObjects
Purges *all* delete-marked data objects except: users, user groups, process- and activity-templates. Purging is done in several transactions to improve throughput of other threads.
Public methodPurgeDeletedDataObject
Sletter et dataobjekt helt fra db. Dataobjektet skal være slettemarkeret inden metoden kaldes. Dataobjektet må ikke være af følgende typer: user, usergroup. Dataobjektet må ikke være en proces template (men gerne en instans). Samtidig slettes alle dataobjekter, der befinder sig under do i træstrukturen. Metoden håndterer sletning af specielle dataobjekter korrekt (d.v.s. activities, processes m.v.). Metoden kalder sig selv rekursivt. Såfremt et af de dataobjekter, der skal slettes, ikke kan blive det, rejses en delete exception.
Public methodPurgeDeletedDataObjects
Public methodPurgeObsoleteDataObjectVersions
Purges a chunk of obsolete data object version rows. It is safe to delete the rows for data object types which is not marked with "object versioning"
Public methodPurgeObsoletePropertyValueChunk
Purges a chunk of old property value rows. It is safe to delete the rows because the property values are stored in tblDataObjectVersion.PropertyXML.
Public methodSaveDataObject(DataObject, DataObjectSaveOptions)
Public methodSaveDataObject(DataObject, DataObjectType, DataObjectSaveOptions)
Creates or updates a data object.
Public methodStatic memberSaveDataObject(DataObject, SqlConnection, SqlTransaction)
Public methodStatic memberSaveDataObject(DataObject, DataObjectSaveOptions, SqlConnection, SqlTransaction)
Public methodStatic memberSaveDataObject(DataObject, DataObjectType, DataObjectSaveOptions, SqlConnection, SqlTransaction)
Creates or updates a data object.
Public methodSaveDataObjectSecurity(DataObject)
Public methodStatic memberSaveDataObjectSecurity(DataObject, SqlConnection, SqlTransaction)
Tip: use AssignPermissions() instead.
Public methodSerializeDataObjects
Produces a DataObjectExchangeML xml document with a subset of the data objects that are in a view.
Public methodStatic memberSetDataExchangeConfigId
Public methodSetDataObjectParent(Int32, Int32)
Moves a data object to another location in the tree structure.
Public methodStatic memberSetDataObjectParent(Int32, Int32, SqlConnection, SqlTransaction)
Moves a data object to another location in the tree structure.
Public methodTouchDataObject(Int32)
Method "touches" a data object which stages a MIM sync import.
Public methodStatic memberTouchDataObject(Int32, SqlConnection, SqlTransaction)
Method "touches" a data object which stages a MIM sync import.
Public methodStatic memberTouchDataObjects Obsolete.
Method will touch the provided data object id's which will stage an ILM delta import
Protected methodTransferUIdsToIdsLoadOption
Converts/transfers one or more specified uids in a loadoptions object to ids. The purpose is to enable caching as IEntityObjectsLoadOptions.IdList only works with ids (and not uids).
(Inherited from ControllerBase.)
Public methodUnmarkDataObjectsAsDeleted(IntegerList)
Public methodStatic memberUnmarkDataObjectsAsDeleted(IntegerList, SqlConnection, SqlTransaction)
Public methodUpdateAllDataObjectDisplayNames
Indlæser ALLE dataobjects i systemet og opdaterer deres DisplayName. Anvendes i.f.m. opgradering fra 5.1->5.2 - men også i tilfælde af at db kommer ud af sync!
Public methodUpdateCurrentVersion(Int32, DictionaryInt32, Object, Boolean)
Updates the current version of a data object (that is, without creating a new version) with new property values.
Public methodStatic memberUpdateCurrentVersion(Int32, DictionaryInt32, Object, SqlConnection, SqlTransaction)
Updates the current version of a data object with a set of property values.
Public methodUpdateDataObject
Updates an existing data object in the database by assigning new values to certain properties. The calling user must have the appropriate security rights to perform the operation.
Public methodUpdateDataObjectDisplayName(DataObjectType, DataObject)
Updates the displayname of a single dataobject.
Public methodStatic memberUpdateDataObjectDisplayName(DataObjectType, DataObject, SqlConnection, SqlTransaction) Obsolete.
Public methodUpdateDataObjectDisplayNames(DataObjectType)
Method updates all objects of specific DataObjectType to set their DisplayName to the format specified in the DataObjectType. It also refreshes the SearchData for the data objects.
Public methodStatic memberUpdateDataObjectDisplayNames(DataObjectType, SqlConnection, SqlTransaction) Obsolete.
Method updates all objects of specific DataObjectType to set their DisplayName to the format specified in the DataObjectType. It also refreshes the SearchData for the data objects.
Public methodUpdateDataObjectFromAVP(Int32, NameValueCollection)
Public methodStatic memberUpdateDataObjectFromAVP(Int32, NameValueCollection, SqlConnection, SqlTransaction)
Public methodUpdateDataObjectWithRetry
Saves a data object after having modified it. In case of an UpdateException due to someone else having updated the data object since it was loaded the method will re-load it and try again. In case of an UpdateException (for the same reason) the second time the method will either silently ignore it or re-throw the UpdateException. In case of all other types of exceptions being thrown the method will simply re-throw it.
Public methodUpdateDisplayName(Int32, String)
Opdaterer displayname for et dataobjekt.
Public methodStatic memberUpdateDisplayName(Int32, String, SqlConnection, SqlTransaction) Obsolete.
Public methodUpdateUid
Update the UID of a dataObject
Protected methodValidateDataVersionT
Validates that the data version of an object corresponds to the data version in the DB. Method is used for validation before saving an object.
(Inherited from ControllerBase.)
Public methodStatic memberValidateRegularExpression
Validates a property value towards the regular expression defined on the property.
Top
Events
Fields
  NameDescription
Public fieldStatic memberReferencePropertyDisplayValueResolver
The delegate is used to resolve display values for reference property values. Normally the DisplayName of a referred data object is used as display value. This can be altered by using a custom resolver. The resolver can decide whether to resolve display values from the property system name. If the resolver doesn't want to resolve anything it should return null. Even if the resolver decides to resolve display values it doesn't necessarily have to do it for all values.
Public fieldStatic memberSearchDataResolver
With the DataObjectSearchDataResolver delegate it is possible to change the calculation of searchable terms in the fulltext search. As a starting point, the delegate should calculate somewhat the same result as the standard search terms, but parts of the string can be removed, added or replaced. The search data terms are separated with space.
Public fieldStatic memberSearchDataWordBreaker
With the WordBreaker delegate it is possible to change the calculation of searchable terms in the fulltext search, both the global search and the column search
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
See Also