Class TriggerManager
Provides trigger management methods.
Inheritance
Inherited Members
Namespace: Mediachase.BusinessFoundation.Data.Meta.Management
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 12.17.2Syntax
public static class TriggerManager
Remarks
The TriggerManager class allows to add (remove) triggers to (from) specified meta class.
Properties
ActionMethods
Gets the action methods.
Declaration
public static TriggerMethodInfo[] ActionMethods { get; }
Property Value
Type | Description |
---|---|
TriggerMethodInfo[] | The action methods. |
ConditionMethods
Gets the condition methods.
Declaration
public static TriggerMethodInfo[] ConditionMethods { get; }
Property Value
Type | Description |
---|---|
TriggerMethodInfo[] | The condition methods. |
Methods
AddTrigger(MetaClass, Trigger)
Adds the trigger.
Declaration
public static void AddTrigger(MetaClass metaClass, Trigger newItem)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
Trigger | newItem | The new item. |
AddTrigger(String, Trigger)
Adds the trigger.
Declaration
public static void AddTrigger(string metaClassName, Trigger newItem)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
Trigger | newItem | The new item. |
CallTriggers(Guid)
Calls the triggers.
Declaration
public static void CallTriggers(Guid transactionUid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | transactionUid | The transaction uid. |
GetActionMethod(String)
Gets the action method associated with the method name.
Declaration
public static TriggerMethodInfo GetActionMethod(string methodName)
Parameters
Type | Name | Description |
---|---|---|
System.String | methodName | Name of the method. |
Returns
Type | Description |
---|---|
TriggerMethodInfo | A TriggerMethodInfo for the specified method. |
GetConditionMethod(String)
Gets the condition method associated with the method name.
Declaration
public static TriggerMethodInfo GetConditionMethod(string methodName)
Parameters
Type | Name | Description |
---|---|---|
System.String | methodName | Name of the method. |
Returns
Type | Description |
---|---|
TriggerMethodInfo | A TriggerMethodInfo for the specified method. |
GetTrigger(MetaClass, String)
Gets the trigger.
Declaration
public static Trigger GetTrigger(MetaClass metaClass, string name)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
System.String | name | The name. |
Returns
Type | Description |
---|---|
Trigger |
GetTrigger(String, String)
Gets the trigger.
Declaration
public static Trigger GetTrigger(string metaClassName, string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.String | name | The name. |
Returns
Type | Description |
---|---|
Trigger |
GetTriggers(MetaClass)
Gets the triggers.
Declaration
public static Trigger[] GetTriggers(MetaClass metaClass)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
Returns
Type | Description |
---|---|
Trigger[] |
GetTriggers(String)
Gets the triggers.
Declaration
public static Trigger[] GetTriggers(string metaClassName)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
Returns
Type | Description |
---|---|
Trigger[] |
IsRegistered(MetaObject)
Determines whether the specified meta object is registered.
Declaration
public static bool IsRegistered(MetaObject metaObject)
Parameters
Type | Name | Description |
---|---|---|
MetaObject | metaObject | The meta object. |
Returns
Type | Description |
---|---|
System.Boolean |
|
LoadTriggerMethods(Assembly)
Loads the trigger methods in the given assembly.
Declaration
public static void LoadTriggerMethods(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly | The assembly to use. |
LoadTriggerMethods(String)
Loads the trigger methods.
Declaration
public static void LoadTriggerMethods(string assemblyString)
Parameters
Type | Name | Description |
---|---|---|
System.String | assemblyString | The assembly string. |
Register(MetaObject)
Registers the specified meta object.
Declaration
public static void Register(MetaObject metaObject)
Parameters
Type | Name | Description |
---|---|---|
MetaObject | metaObject | The meta object. |
RemoveTrigger(MetaClass, Trigger)
Removes the trigger from the referenced meta class.
Declaration
public static void RemoveTrigger(MetaClass metaClass, Trigger oldItem)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
Trigger | oldItem | The trigger to remove. |
RemoveTrigger(String, Trigger)
Removes the trigger.
Declaration
public static void RemoveTrigger(string metaClassName, Trigger oldItem)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
Trigger | oldItem | The old item. |
RemoveTriggerAt(MetaClass, Int32)
Removes the trigger at.
Declaration
public static void RemoveTriggerAt(MetaClass metaClass, int index)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
System.Int32 | index | The index. |
RemoveTriggerAt(String, Int32)
Removes the trigger at specified index.
Declaration
public static void RemoveTriggerAt(string metaClassName, int index)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
System.Int32 | index | The index of the trigger to remove. |
SetTriggers(MetaClass, Trigger[])
Sets the triggers.
Declaration
public static void SetTriggers(MetaClass metaClass, Trigger[] triggers)
Parameters
Type | Name | Description |
---|---|---|
MetaClass | metaClass | The meta class. |
Trigger[] | triggers | The triggers. |
SetTriggers(String, Trigger[])
Sets the triggers.
Declaration
public static void SetTriggers(string metaClassName, Trigger[] triggers)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaClassName | Name of the meta class. |
Trigger[] | triggers | The triggers. |