DataObjectController Class |
Namespace: Omada.OE.AppLogic
public class DataObjectController : ControllerBase, IDataObjectImporter
The DataObjectController type exposes the following members.
Name | Description | |
---|---|---|
![]() | DataObjectController(String) | |
![]() | DataObjectController(ControllerBase) | |
![]() | DataObjectController(SqlConnection, SqlTransaction, Int32) |
Name | Description | |
---|---|---|
![]() | ConnectionString |
Connection string for the database.
Can be null.
(Inherited from ControllerBase.) |
![]() | DbCommandTimeout |
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.) |
![]() | DbConnection |
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.) |
![]() | DbTransaction |
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.) |
![]() | Factory |
Factory class for creating controller instances.
(Inherited from ControllerBase.) |
Name | Description | |
---|---|---|
![]() | AssignPermissions |
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.
|
![]() | BuildCacheKey |
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.) |
![]() | CheckActiveUserPermissions(IEnumerableInt32, PermissionFlags) | |
![]() | CheckActiveUserPermissions(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.
|
![]() ![]() | CheckActiveUserPermissions(IEnumerableInt32, PermissionFlags, SqlConnection, SqlTransaction) | Obsolete. |
![]() ![]() | CheckActiveUserPermissions(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.
|
![]() | CheckAndSaveDataObject(DataObject, DataObjectSaveOptions) | Obsolete. |
![]() ![]() | CheckAndSaveDataObject(DataObject, DataObjectSaveOptions, SqlConnection, SqlTransaction) | Obsolete. |
![]() | CheckObjectOperationSecurity |
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.) |
![]() | CheckObjectSaveOperationSecurity |
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.) |
![]() ![]() | ClearDataExchangeConfigId | |
![]() | ConvertId(Int32, ConfigurationObjectType) |
Converts the integer id of an object to its transport-safe unique id (UId).
(Inherited from ControllerBase.) |
![]() | ConvertId(String, ConfigurationObjectType) |
Converts a string representation of an integer or Guid id to an integer id.
(Inherited from ControllerBase.) |
![]() | ConvertId(Guid, ConfigurationObjectType, Boolean) |
Converts the transport-safe unique id (UId) of an object to its integer id.
(Inherited from ControllerBase.) |
![]() | ConvertIds(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.
|
![]() | ConvertIds(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.
|
![]() | ConvertIds(IEnumerableGuid, ConfigurationObjectType) |
Converts the transport-safe unique ids (UId) of a number of objects to integer ids.
(Inherited from ControllerBase.) |
![]() | ConvertIds(IEnumerableInt32, ConfigurationObjectType) |
Converts the integer ids of a number of objects to their transport-safe unique ids (UId).
(Inherited from ControllerBase.) |
![]() | CreateCommand(SQLBuilder) | (Inherited from ControllerBase.) |
![]() | CreateCommand(String) | (Inherited from ControllerBase.) |
![]() ![]() | CreateDataObjectFromTemplate(Int32, Int32, Int32, SqlConnection, SqlTransaction) | |
![]() ![]() | CreateDataObjectFromTemplate(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.
|
![]() | CreateNewDataObject |
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.
|
![]() | CreateSqlBulkCopy |
Create a new SqlBulkCopy instance using the connection, transaction and timeout values from the controller
(Inherited from ControllerBase.) |
![]() | DataObjectExists(Int32, Boolean) | |
![]() ![]() | DataObjectExists(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!
|
![]() | DataObjectOfTypeExist |
Does at least one (non-deleted) data object of a specified type exist in the system?
|
![]() | DataObjectsExist |
The method checks if all data objects exist
|
![]() | DeleteOldObjectVersions |
Deletes all versions of a data object except the current version.
|
![]() | DeserializeExpressions |
Deserializes filter expressions from an xml format.
|
![]() | DoInConnection(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.) |
![]() | DoInConnection(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.) |
![]() | DoInConnectionT(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.) |
![]() | DoInTransaction(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.) |
![]() | DoInTransactionT(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.) |
![]() | DoInTransactionT(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.) |
![]() | DoInTransactionUnlessPostponedDueToPreviousDefaultResultT |
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.) |
![]() | DoUnlessPostponedDueToPreviousDefaultResultT |
The method can postpone a method invocation if the previous call returned a default number, eg. 0.
(Inherited from ControllerBase.) |
![]() | ExecScalarResultQueryT |
Executes a query with a scalar result.
(Inherited from ControllerBase.) |
![]() | ExecuteMutexOperation(String, Action, Boolean) | (Inherited from ControllerBase.) |
![]() | ExecuteMutexOperationT(String, FuncT, Boolean) | (Inherited from ControllerBase.) |
![]() | ExpireCacheItem | (Inherited from ControllerBase.) |
![]() | GetActiveUserPermissionFlags(Int32) | |
![]() ![]() | GetActiveUserPermissionFlags(Int32, SqlConnection, SqlTransaction) | |
![]() ![]() | GetCurrentDataObjectVersionId | Obsolete. |
![]() | GetCurrentVersionId | |
![]() | GetDataObject(Guid, Boolean) |
Loads and returns a single data object.
Throws an exception if it can't be found.
|
![]() | GetDataObject(Int32, Boolean) |
Loads and returns a single data object.
Throws an exception if it can't be found.
|
![]() ![]() | GetDataObject(Int32, SqlConnection, SqlTransaction) |
Loads and returns a single data object.
Throws an exception if it can't be found.
Security is respected.
|
![]() ![]() | GetDataObject(Int32, Boolean, SqlConnection, SqlTransaction) |
Loads and returns a single data object.
Throws an exception if it can't be found.
|
![]() | GetDataObjectChangeTime(Int32) | |
![]() ![]() | GetDataObjectChangeTime(Int32, SqlConnection, SqlTransaction) | Obsolete. |
![]() ![]() | GetDataObjectChildrenIds(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.
|
![]() ![]() | GetDataObjectChildrenIds(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.
|
![]() | GetDataObjectCount |
Returns the count of dataobjects.
|
![]() | GetDataObjectCreatedBy(Int32) | |
![]() ![]() | GetDataObjectCreatedBy(Int32, SqlConnection, SqlTransaction) | |
![]() | GetDataObjectCreateTime(Int32) | |
![]() ![]() | GetDataObjectCreateTime(Int32, SqlConnection, SqlTransaction) | |
![]() ![]() | GetDataObjectDisplayName | |
![]() | GetDataObjectDisplayNames(IEnumerableInt32) | |
![]() ![]() | GetDataObjectDisplayNames(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.
|
![]() | GetDataObjectDisplayNames2(IEnumerableInt32) |
Tip: use Dictionary<int, string> GeDisplayNamesEx(IEnumerable<int>) instead.
|
![]() | GetDataObjectDisplayNames2(IEnumerableInt32, Boolean) |
Tip: use Dictionary<int, string> GeDisplayNamesEx(IEnumerable<int>) instead.
|
![]() | GetDataObjectGroupedCount |
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.
|
![]() | GetDataObjectIdByDisplayName(Int32, String) | |
![]() ![]() | GetDataObjectIdByDisplayName(Int32, String, SqlConnection, SqlTransaction) | |
![]() ![]() | GetDataObjectIdByIntPropertyValue(Int32, Int32, Int32, SqlConnection, SqlTransaction) | Obsolete. |
![]() | GetDataObjectIdByIntPropertyValue(Int32, Int32, Int32, Int32, Boolean) | |
![]() | GetDataObjectIdByKeyValue(Int32, String) | |
![]() | GetDataObjectIdByKeyValue(Int32, String, String) |
Use GetDataObjectIdByKeyValue(int, string, string) instead
|
![]() ![]() | GetDataObjectIdByKeyValue(Int32, String, SqlConnection, SqlTransaction) | |
![]() | GetDataObjectIdByTextPropertyValue(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.
|
![]() ![]() | GetDataObjectIdByTextPropertyValue(Int32, Int32, String, SqlConnection, SqlTransaction) | Obsolete. |
![]() ![]() | GetDataObjectIdByTextPropertyValue(Int32, Int32, String, Boolean, SqlConnection, SqlTransaction) | Obsolete. |
![]() | GetDataObjectIdByTextPropertyValue(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.
|
![]() | GetDataObjectIds(DataObjectIdLoadOptions) | |
![]() ![]() | GetDataObjectIds(DataObjectIdLoadOptions, SqlConnection, SqlTransaction) | |
![]() | GetDataObjectIdsByDisplayNames(Int32, IEnumerableString) |
Finds data object ids by their display names.
|
![]() ![]() | GetDataObjectIdsByDisplayNames(Int32, IEnumerableString, SqlConnection, SqlTransaction) |
Finds data object ids by their display names.
|
![]() | GetDataObjectIdsByTextPropertyValues(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!
|
![]() ![]() | GetDataObjectIdsByTextPropertyValues(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.
|
![]() | GetDataObjectKeyValues(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.
|
![]() ![]() | GetDataObjectKeyValues(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.
|
![]() | GetDataObjectManager(DataObjectLoadOptions) |
Returns a dataobject manager object loaded with dataobjects.
|
![]() ![]() | GetDataObjectManager(DataObjectLoadOptions, SqlConnection, SqlTransaction) | |
![]() | GetDataObjectParentId(Int32) | |
![]() ![]() | GetDataObjectParentId(Int32, SqlConnection, SqlTransaction) | |
![]() | GetDataObjectParents(IntegerList) | |
![]() ![]() | GetDataObjectParents(IntegerList, SqlConnection, SqlTransaction) | |
![]() | GetDataObjectPath(Int32) | |
![]() | GetDataObjectPath(Int32, Int32, Boolean) | |
![]() ![]() | GetDataObjectSecurity | |
![]() ![]() | GetDataObjectsReferringDataObject(Int32, SqlConnection, SqlTransaction) |
Returns the ids of the data objects that refers the indicated data object through a reference property.
Looks in all versions.
|
![]() | GetDataObjectsReferringDataObject(Int32, Int32, Int32, Boolean) |
Returns the ids of the data objects that refers the indicated data object through a reference property.
|
![]() ![]() | GetDataObjectsReferringDataObject(Int32, Int32, Int32, Boolean, SqlConnection, SqlTransaction) |
Returns the ids of the data objects that refers the indicated data object through a reference property.
|
![]() | GetDataObjectsReferringDataObjects(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.
|
![]() ![]() | GetDataObjectsReferringDataObjects(IEnumerableInt32, IEnumerableInt32, Int32, Int32, SqlConnection, SqlTransaction) | Obsolete. |
![]() | GetDataObjectTypeDataObjectIdsDictionary |
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.
|
![]() | GetDataObjectTypeId(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.
|
![]() ![]() | GetDataObjectTypeId(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.
|
![]() | GetDataObjectTypeIdDict(IEnumerableInt32) |
Returnerer et dataobjekts typenavn og (eget) nummer.
|
![]() ![]() | GetDataObjectTypeIdDict(IEnumerableInt32, SqlConnection, SqlTransaction) | |
![]() ![]() | GetDataObjectTypeIdDict(IEnumerableInt32, Boolean, SqlConnection, SqlTransaction) |
Returnerer typeids for et antal dataobjekter.
Der tages ikke hensyn til security eller om objekterne er slettede.
|
![]() | GetDataObjectTypeIdDictionary |
Returns type ids for a number of data objects.
Disregards security and the deleted flag.
|
![]() | GetDataObjectTypeIds(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.
|
![]() ![]() | GetDataObjectTypeIds(IEnumerableInt32, SqlConnection, SqlTransaction) | |
![]() | GetDataObjectTypeSystemName(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.
|
![]() | GetDataObjectTypeSystemName(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.
|
![]() | GetDataObjectUIds(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.
|
![]() ![]() | GetDataObjectUIds(IntegerList, SqlConnection, SqlTransaction) | |
![]() ![]() | GetDataObjectUIds(Int32, String, SqlConnection, SqlTransaction) | Obsolete. |
![]() | GetDataObjectUIdsByIntegerPropertyValues |
Find data objects that has (one of a set of) specified values in a specified integer property.
|
![]() | GetDataObjectUIdsByTextPropertyValues |
Find data objects that has (one of a set of) specified values in a specified text property.
|
![]() | GetDataObjectWithIngoingReferences(IntegerList, IntegerList) | |
![]() ![]() | GetDataObjectWithIngoingReferences(IntegerList, IntegerList, SqlConnection, SqlTransaction) | |
![]() | GetDbUTCNow | (Inherited from ControllerBase.) |
![]() | GetDisplayName(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.
|
![]() | GetDisplayName(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.
|
![]() ![]() | GetDisplayName(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.
|
![]() | GetDisplayNames(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.
|
![]() | GetDisplayNames(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.
|
![]() | GetDisplayNamesEx |
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
|
![]() ![]() | GetFileAttachments |
Gets file attachments from a data object.
|
![]() | GetFromCacheIfPresent(String, ControllerBaseActionWithResultIntegerList, ControllerBaseCacheOptions) | (Inherited from ControllerBase.) |
![]() | GetFromCacheIfPresent(String, ControllerBaseActionWithResultAppIdentity, ControllerBaseCacheOptions) | (Inherited from ControllerBase.) |
![]() | GetFromCacheIfPresent(String, ControllerBaseActionWithResultBoolean, ControllerBaseCacheOptions) | (Inherited from ControllerBase.) |
![]() | GetFromCacheIfPresent(String, ControllerBaseActionWithResultIListGuid, ControllerBaseCacheOptions) | (Inherited from ControllerBase.) |
![]() | GetFromCacheIfPresent(String, ControllerBaseActionWithResultListGuid, ControllerBaseCacheOptions) | (Inherited from ControllerBase.) |
![]() | GetFromCacheIfPresent(String, ControllerBaseActionWithResultListInt32, ControllerBaseCacheOptions) | (Inherited from ControllerBase.) |
![]() | GetFromCacheIfPresent(String, ControllerBaseActionWithResultGuid, ControllerBaseCacheOptions) | (Inherited from ControllerBase.) |
![]() | GetFromCacheIfPresent(String, ControllerBaseActionWithResultInt32, ControllerBaseCacheOptions) | (Inherited from ControllerBase.) |
![]() | GetFromCacheIfPresent(String, ControllerBaseActionWithResultTimeZoneInfo, ControllerBaseCacheOptions) | (Inherited from ControllerBase.) |
![]() | GetFromCacheIfPresentT(String, ControllerBaseActionWithResultListT, ControllerBaseCacheOptions) | (Inherited from ControllerBase.) |
![]() | GetFromCacheIfPresentT(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.) |
![]() | GetId |
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.
|
![]() ![]() | GetIntegerPropertyValue |
Tip: Use GetSinglePropertyValue(int, int, T) instead
|
![]() | GetMaxDataObjectChangeTime(IntegerList) | |
![]() ![]() | GetMaxDataObjectChangeTime(IntegerList, SqlConnection, SqlTransaction) | |
![]() | GetNewRowIdentity | (Inherited from ControllerBase.) |
![]() | GetNumber | |
![]() | GetObjectDataVersion |
Gets the data version of an object.
(Inherited from ControllerBase.) |
![]() | GetObjectsChangedSince |
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.
|
![]() ![]() | GetParentId |
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.
|
![]() | GetPropertyLogEntries(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.
|
![]() ![]() | GetPropertyLogEntries(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.
|
![]() | GetPropertyLogEntriesText |
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.
|
![]() | GetPropertyValue(Int32, String, String) |
TIP: Use GetSinglePropertyValue(int, string, T) instead!
Returns a Text or Xml property value of a data object.
|
![]() | GetPropertyValue(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.
|
![]() ![]() | GetPropertyValue(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.
|
![]() | GetPropertyValuesT(Int32, Int32) | |
![]() | GetPropertyValuesT(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.
|
![]() | GetReferencePathObjectIds(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!
|
![]() ![]() | GetReferencePathObjectIds(IListInt32, DataObjectReferencePath, SqlConnection, SqlTransaction) | |
![]() | GetReferencePathObjectValues |
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.
|
![]() | GetReferencePropertyControlValues(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.
|
![]() | GetReferencePropertyControlValues(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.
|
![]() | GetReferencePropertyValueId(Int32, Int32, Int32) | |
![]() | GetReferencePropertyValueId(Int32, String, Int32) | |
![]() ![]() | GetReferencePropertyValueId(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.
|
![]() ![]() | GetReferencePropertyValueId(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.
|
![]() | GetReferencePropertyValueIdPerDataObject |
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
|
![]() | GetReferencePropertyValueIds(IEnumerableInt32, Int32) |
Returns the distinct data objects that are referred by a number of data objects in a reference property.
|
![]() ![]() | GetReferencePropertyValueIds(IEnumerableInt32, Int32, SqlConnection, SqlTransaction) | |
![]() | GetSetPropertiesValueIdsPerDataObject(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.
|
![]() ![]() | GetSetPropertiesValueIdsPerDataObject(IEnumerableInt32, Int32, SqlConnection, SqlTransaction) | |
![]() | GetSetPropertyValueIds(Int32, Int32) |
Return set property values for a given data object
|
![]() ![]() | GetSetPropertyValueIds(Int32, Int32, SqlConnection, SqlTransaction) | |
![]() | GetSinglePropertyValueT(Guid, String, T) | |
![]() | GetSinglePropertyValueT(Int32, Int32, T) | |
![]() | GetSinglePropertyValueT(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.
|
![]() | GetSinglePropertyValueByOdwMappingT |
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.
|
![]() | GetSinglePropertyValuePerDataObjectT |
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.
|
![]() | GetTargetProcessIds(Int32, StateFlags, DeletedStatus, TemplateStatus) |
Returns ID's for the process template or instances that use the specified dataobject as target
|
![]() ![]() | GetTargetProcessIds(Int32, StateFlags, SqlConnection, SqlTransaction) | Obsolete.
Returns ID's for the undeleted process instances that use the specified dataobject as target
|
![]() ![]() | GetTargetProcessIds(Int32, StateFlags, DeletedStatus, SqlConnection, SqlTransaction) | Obsolete.
Returns ID's for the process instances that use the specified dataobject as target
|
![]() | GetTextPropertyValues(Int32, IEnumerableInt32) |
Returns values for a number of properties (with datatype text) for the current
version of a dataobject.
|
![]() ![]() | GetTextPropertyValues(Int32, IEnumerableInt32, SqlConnection, SqlTransaction) |
Returns values for a number of properties (with datatype text) for the current
version of a dataobject.
|
![]() | GetUId |
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.
|
![]() ![]() | GetUIds |
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.
|
![]() ![]() | GetUsersWithAccess |
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!
|
![]() | GetVersions |
Gets all versions of a dataobject.
Index 0 is the current version.
Index 1 is the previous version (if any).
... and so forth.
|
![]() | ImportSerializedDataObjects(ListDictionaryString, Object) |
Processes a set of data object operations (create, update or delete).
|
![]() | ImportSerializedDataObjects(Stream, ObjectImporterSettings) | |
![]() | ImportSerializedDataObjects(Stream, Stream, ObjectImporterSettings) | |
![]() ![]() | ImportSerializedDataObjects(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.
|
![]() | IncrementDataVersion | (Inherited from ControllerBase.) |
![]() | IncrementObjectDataVersion(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.) |
![]() | IncrementObjectDataVersion(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.) |
![]() | InheritDataObjectSecurity | |
![]() | IsChildOf(Int32, Int32) | |
![]() ![]() | IsChildOf(Int32, Int32, SqlConnection, SqlTransaction) | Obsolete. |
![]() | IsDataObjectVersionCurrent | |
![]() | IsDeleted(Int32) | |
![]() ![]() | IsDeleted(Int32, SqlConnection, SqlTransaction) | |
![]() | IsTemplateObject(Int32) |
The method doesn't consider the security model.
The method doesn't consider whether the data object is marked as deleted.
|
![]() ![]() | IsTemplateObject(Int32, SqlConnection, SqlTransaction) |
The method doesn't consider the security model.
The method doesn't consider whether the data object is marked as deleted.
|
![]() | IsValidDataObjectFile(Int32, Int32) |
check whether the given file is present in any data object as an attachment
|
![]() ![]() | IsValidDataObjectFile(Int32, Int32, SqlConnection, SqlTransaction) | |
![]() | LoadDataObjects(DataObjectLoadOptions) | |
![]() ![]() | LoadDataObjects(DataObjectLoadOptions, SqlConnection, SqlTransaction) |
The method is used for loading a collection of data objects.
|
![]() ![]() | LoadObjects |
Loads a number of dataobjects from the database corresponding to the specified load options.
|
![]() | LoadPropertyReferenceInfos | |
![]() | MarkDataObjectsAsDeleted | |
![]() | ModifyXmlProperty |
Modifies the value of an xml property on (the current version of) a data object.
|
![]() ![]() | PopulatePropertiesFromXml |
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'
|
![]() ![]() | PopulatePropertyValuesFromAVP |
Populates the property values of a data object from a set of attribute value pairs.
The data object is *not* saved.
|
![]() | PopulateTempTableT |
Creates a temporary db table with a single column and populates it with values.
(Inherited from ControllerBase.) |
![]() | PostponeTransientErrorT |
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.) |
![]() | PurgeAgedDataObjectVersions |
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
|
![]() | PurgeAllDeletedDataObjects |
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.
|
![]() | PurgeDeletedDataObject |
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.
|
![]() | PurgeDeletedDataObjects | |
![]() | PurgeObsoleteDataObjectVersions |
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"
|
![]() | PurgeObsoletePropertyValueChunk |
Purges a chunk of old property value rows. It is safe to delete the rows because
the property values are stored in tblDataObjectVersion.PropertyXML.
|
![]() | SaveDataObject(DataObject, DataObjectSaveOptions) | |
![]() | SaveDataObject(DataObject, DataObjectType, DataObjectSaveOptions) |
Creates or updates a data object.
|
![]() ![]() | SaveDataObject(DataObject, SqlConnection, SqlTransaction) | |
![]() ![]() | SaveDataObject(DataObject, DataObjectSaveOptions, SqlConnection, SqlTransaction) | |
![]() ![]() | SaveDataObject(DataObject, DataObjectType, DataObjectSaveOptions, SqlConnection, SqlTransaction) |
Creates or updates a data object.
|
![]() | SaveDataObjectSecurity(DataObject) | |
![]() ![]() | SaveDataObjectSecurity(DataObject, SqlConnection, SqlTransaction) |
Tip: use AssignPermissions() instead.
|
![]() | SerializeDataObjects |
Produces a DataObjectExchangeML xml document with a subset of the data objects that are in a view.
|
![]() ![]() | SetDataExchangeConfigId | |
![]() | SetDataObjectParent(Int32, Int32) |
Moves a data object to another location in the tree structure.
|
![]() ![]() | SetDataObjectParent(Int32, Int32, SqlConnection, SqlTransaction) |
Moves a data object to another location in the tree structure.
|
![]() | TouchDataObject(Int32) |
Method "touches" a data object which stages a MIM sync import.
|
![]() ![]() | TouchDataObject(Int32, SqlConnection, SqlTransaction) |
Method "touches" a data object which stages a MIM sync import.
|
![]() ![]() | TouchDataObjects | Obsolete.
Method will touch the provided data object id's which will stage an ILM delta import
|
![]() | TransferUIdsToIdsLoadOption |
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.) |
![]() | UnmarkDataObjectsAsDeleted(IntegerList) | |
![]() ![]() | UnmarkDataObjectsAsDeleted(IntegerList, SqlConnection, SqlTransaction) | |
![]() | UpdateAllDataObjectDisplayNames |
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!
|
![]() | UpdateCurrentVersion(Int32, DictionaryInt32, Object, Boolean) |
Updates the current version of a data object (that is, without creating a new version) with new property values.
|
![]() ![]() | UpdateCurrentVersion(Int32, DictionaryInt32, Object, SqlConnection, SqlTransaction) |
Updates the current version of a data object with a set of property values.
|
![]() | UpdateDataObject |
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.
|
![]() | UpdateDataObjectDisplayName(DataObjectType, DataObject) |
Updates the displayname of a single dataobject.
|
![]() ![]() | UpdateDataObjectDisplayName(DataObjectType, DataObject, SqlConnection, SqlTransaction) | Obsolete. |
![]() | UpdateDataObjectDisplayNames(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.
|
![]() ![]() | UpdateDataObjectDisplayNames(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.
|
![]() | UpdateDataObjectFromAVP(Int32, NameValueCollection) | |
![]() ![]() | UpdateDataObjectFromAVP(Int32, NameValueCollection, SqlConnection, SqlTransaction) | |
![]() | UpdateDataObjectWithRetry |
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.
|
![]() | UpdateDisplayName(Int32, String) |
Opdaterer displayname for et dataobjekt.
|
![]() ![]() | UpdateDisplayName(Int32, String, SqlConnection, SqlTransaction) | Obsolete. |
![]() | UpdateUid |
Update the UID of a dataObject
|
![]() | ValidateDataVersionT |
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.) |
![]() ![]() | ValidateRegularExpression |
Validates a property value towards the regular expression defined on the property.
|
Name | Description | |
---|---|---|
![]() ![]() | AfterSave | |
![]() ![]() | BeforeSave | |
![]() ![]() | PostDelete | |
![]() ![]() | PreDelete |
Name | Description | |
---|---|---|
![]() ![]() | ReferencePropertyDisplayValueResolver |
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.
|
![]() ![]() | SearchDataResolver |
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.
|
![]() ![]() | SearchDataWordBreaker |
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
|
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.) |