Click or drag to resize

MainLibrary Class

Summary description for Main.
Inheritance Hierarchy
SystemObject
  Omada.OE.UtilityCodeAssembly.LibraryMainLibrary

Namespace:  Omada.OE.UtilityCodeAssembly.Library
Assembly:  Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntax
C#
public class MainLibrary

The MainLibrary type exposes the following members.

Constructors
  NameDescription
Public methodMainLibrary
Top
Methods
  NameDescription
Public methodStatic memberAddUsersToUserGroups
Adds a number of users from a reference property to some user groups in another reference property, and if removeOldUsers = true then it will remove the existing users first.
Public methodStatic memberAddUserToUserGroups
Tilføjer en bruger som medlem i et antal brugergrupper.
Public methodStatic memberAssignSetPropertyValueToReferredObjects
Public methodStatic memberCompleteActivityAsCurrentAssignee
Public methodStatic memberCopyAssigneeToRefProperty
Public methodStatic memberCopyPropertyValueFromReferredObject
Eksempel: et incident objekt har en reference til et CI objekt. CI objektet har en angivelse af CI kategori. Metoden kan kopiere denne CI kategori til incident objektet.
Public methodStatic memberCopyPropertyValues
Public methodStatic memberCopyPropertyValuesFromActiveUser

The action object should be the target object.

The method will set the value of the properties, with the specified ids, on the action object based on the value of the same properties on the active user object.

Public methodStatic memberCopyPropertyValuesFromReferencePath
Method is using "ReferencePath" concept to load a data object and then to copy the value of a property from this one to the target object.
Public methodStatic memberCopyPropertyValuesFromReferredObject
Public methodStatic memberCopyPropertyValuesFromReferredObject2
Public methodStatic memberCopyPropertyValuesToReferredObject
Copies values for the supplied properties (ids) on the action object to the data object referred through the property specified in referencePropertyId.
Public methodStatic memberCopyPropertyValuesToReferredObjects
Copies values for the supplied properties (ids) on the action object to the data objects referred through the property specified in referencePropertyId.
Public methodStatic memberCopyPropertyValuesToReferredObjects2
Copies values for the supplied properties (ids) on the action object to the data objects referred through the property specified in referencePropertyId.
Public methodStatic memberCopySourcePropertyToTargetProperty
Copies the value of source property to the target property Both properties are on the same data object It works only if you: - copy from one value property to another value property - copy from one reference property to another reference property
Public methodStatic memberCreateDataObjectFromTemplate
Method creates a new data object of the specified type. The properties of the specified template object will be copied from the action object to the new data object, based on the settings of the specified copy rule. The method is used in master data management scenarios: when a "new object" process completes, a new master object needs to be created based on the values of the "change request" object, that has been used in the process.
Public methodStatic memberCreateProcessInstance
Public methodStatic memberCreateUserFromTemplate
Method creates a new user. The properties of the specified template object will be copied from the action object to the new user, based on the settings of the specified copy rule. A property id must be provided containing the username on the action object
Public methodStatic memberDerriveConcatenatedCategory
Udregner og assigner en ny værdi for en set property. Ny værdi udregnes på baggrund af de valgte værdier i 2 andre set properties. Action objektet skal rumme alle 3 set properties. Metoden er udviklet til Gastech. Eksempel: setPropertyValue1Id angiver værdien "02. Medium" setPropertyValue2Id angiver værdien "04. Kritisk" keyLength er 2 Metoden forsøger at finde en værdi for derrivedSetPropertyId property'en som starter med "0204".
Public methodStatic memberGenerateIdentifier
Public methodStatic memberGetDataObjectDifferenceDescription
Public methodStatic memberGetDataObjectDifferenceDescription2
Method returns a textual description of the differences between two data objects. The two data objects are not nescessarily of the same data object types. The method is used in master data management scenarios.
Public methodStatic memberGetReferredUserInfo
Public methodStatic memberMaintainUserGroupFromReferenceProperty
Method maintains the members of a user group. The members of the group is found by inspecting all the users in the system. Each user must reference another user through a reference property (typically a manager). After execution, the user group will have all the selected users (managers) as members.
Public methodStatic memberMoveActionObjectToFolder
Public methodStatic memberMoveHelpdeskObjectToCustomerFolder
Metoden flytter actionobjektet til den aktive brugers' firmas folder. Anvendes til Omadas helpdesk.
Public methodStatic memberRouteProcessOnDeadline
Method is used on a timer event to check certain activities in processes of a certain type if are not completed within deadline. If so they will be autocompleted and the process routed to given transition.
Public methodStatic memberSaveDataObjCSV
Method is used to save a CSV file generated from a view in the Omada temp folder.
Public methodStatic memberSaveDataObjCSVExtended
Method is used to save a CSV file generated from a view.
Public methodStatic memberSendMailToRefferedGroup
sends a mail to all the users of a group specified in the reference property.
Public methodStatic memberSetAssigneeToActiveUsersManager
Metoden kan anvendes i en process-event-action (enten timer- eller transition-aktiveret). Metoden opdaterer assignee på actionobjektet (som skal være en aktivitet) til den aktive brugers' manager. Den aktive brugers manager skal være angivet i en reference property på user-objektet i property med id = managerPropertyId. Metoden er velegnet til indkøbsprocesser m.v. hvor det er brugerens manager, som skal godkende et indkøb.
Public methodStatic memberSetTargetPropertyValue
Public methodStatic memberSynchronizeTwoWayReference
Public methodStatic memberSynchronizeTwoWayReferenceFull
Public methodStatic memberUploadFile
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