Click or drag to resize

Main Class

Contains miscellaneous code methods.
Inheritance Hierarchy
SystemObject
  Omada.OE.Solution.OIM.AssemblyMain

Namespace:  Omada.OE.Solution.OIM.Assembly
Assembly:  Omada.OE.Solution.OIM.Assembly (in Omada.OE.Solution.OIM.Assembly.dll) Version: 15.0.0.0
Syntax
C#
public class Main : IAppStartInitializedClass

The Main type exposes the following members.

Constructors
  NameDescription
Public methodMain
Top
Methods
  NameDescription
Public methodCheckIfSetPropertyHasValue
This CM checks if the set property has value provided in the parameters. CM returns boolean value and can be used in the decision block in the process workflow - error is not thrown in any case.
Public methodCopyValuesFromContextObjectToReferringObjectsMatchingView
Copies values from the action object to the referring objects matching view, using specified copy rule. CM updates below objects: - must be member of the specified view - must have reference to the action object in the referring property
Public methodCreateIdentity
Creates a new identity data object. Code method is intended to be used in a "joiner" process. The action object is used as a template.
Codemethod usage
Designed to be used in a process only (Yes/No) No
Action Object (data object type)Object type with reference to Identity
Public methodCreateIdentityUser Obsolete.
The method creates a new OIM user based on an identity selected in a reference property on the action object.
Codemethod usageThe CodeMethod is typically used in a Create Event on an Identity object or in a Joiner process.
Designed to be used in a process only (Yes/No) No
Action Object (data object type)Object type with reference to Identity
Public methodCreateIdentityUserEx Obsolete.
Creates a user for the action object which should be an Identity.
Codemethod usageCode method is intended to be used in a Event Definition triggering on an object of type Identity is created.
Designed to be used in a process only (Yes/No) No
Action Object (data object type)Identity
Public methodCreateInitialIdentityUser Obsolete.
Creates a user for the action object which should be an Identity.
Codemethod usage
Designed to be used in a process only (Yes/No) No
Action Object (data object type)Identity
Public methodCreateInitialIdentityUsers Obsolete.
Creates user for all identities, who are not yet OIM users.
Codemethod usage
Designed to be used in a process only (Yes/No) No
Action Object (data object type)Identity
Public methodMergeReferencePropertyValues
CM merges reference property values. TargetObjectPropertySystemName - optional - target if empty SourceObjectPropertySystemName - optional - target if empty AddValuesPropertySystemName - optional* RemoveValuesPropertySystemName - optional* * at least one must be specified
Public methodMoveActionObjectToFolder
Moves the action object to a specified folder in the data object tree structure. Throws an exception if the active user doesn't have access to move the action object.
Public methodCode exampleSampleCodeMethod

This is a sample code method.

A code method is a .Net method that can be executed by Omada Identity Manager when an event occurs.

In order for a .Net method be be a valid code method it must conform to a set of requirements:

RequirementDescription
Non-staticThe method must not be static.
Return boolThe method must return a boolean.
Invoke contextThe method must take a CodeMethodInvokeContext object as its first parameter.
Simple data typesThe method parameters (except the context) can only be of the following types: string, int, double or bool.
Examples
The following example shows the implementation of a sample code method.
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;

namespace Namespace1
{
  public class MyCodeMethodClass
  {
    public bool AppendText(CodeMethodInvokeContext context, string input, string append, out string result)
    {
      result = input + append;
      return true;
    }
  }
}
Remarks
Remember that Omada Identity can also be extended programatically using Browser Event Handlers and Form Parts.
Public methodSendMailToReferencePath

This code method allows to send emails to a referred object (User / User Group / Identity) via a ReferencePath expression.

Example:

Email notification to the department manager of an identity. The string will be /OUREF/MANAGER.

Codemethod usage
Designed to be used in a process only (Yes/No) No
Action Object (data object type)Object type with reference to Identity
Public methodUpdateIdentityUser Obsolete.

Updates the User object related to an updated Identity data object.

Codemethod usage
Code method is intended to be used in a ""event definition"" triggered when an Identity is updated.The UserName is synchronized with the IdentityID. No
Action Object (data object type)Identity
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
Explicit Interface Implementations
See Also