Exemplo n.º 1
0
 public static void Initialize(CoordinatorPluginPhase pluginPhase, ContractorCoordinator coordinator, Contractor businessObject)
 {
     if (pluginPhase == CoordinatorPluginPhase.SaveObject && coordinator != null && businessObject.BOType == BusinessObjectType.ApplicationUser)
     {
         coordinator.Plugins.Add(new ApplicationUserPlugin());
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Loads plugins for the current coordinator.
        /// </summary>
        /// <param name="pluginPhase">Coordinator plugin phase.</param>
        /// <param name="businessObject">Main business object currently processed.</param>
        protected override void LoadPlugins(CoordinatorPluginPhase pluginPhase, IBusinessObject businessObject)
        {
            base.LoadPlugins(pluginPhase, businessObject);

            Configuration conf = (Configuration)businessObject;

            ContractorsGroupDefinitionPlugin.Initialize(pluginPhase, this, conf);
            ConfigurationRefreshPlugin.Initialize(pluginPhase, this, conf);
        }
Exemplo n.º 3
0
        public static void Initialize(CoordinatorPluginPhase pluginPhase, ItemCoordinator coordinator)
        {
            if (pluginPhase != CoordinatorPluginPhase.SaveObject)
            {
                return;
            }

            coordinator.Plugins.Add(new ItemCodeExistenceCheckPlugin());
        }
Exemplo n.º 4
0
        /// <summary>
        /// Initializes plugin.
        /// </summary>
        /// <param name="pluginPhase">Coordinator plugin phase.</param>
        /// <param name="coordinator">Coordinator to attach the plugin.</param>
        public static void Initialize(CoordinatorPluginPhase pluginPhase, RepositoryCoordinator coordinator)
        {
            if (pluginPhase != CoordinatorPluginPhase.SaveObject)
            {
                return;
            }

            coordinator.Plugins.Add(new FileDescriptorPlugin());
        }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes plugin.
 /// </summary>
 /// <param name="pluginPhase">Coordinator plugin phase.</param>
 /// <param name="coordinator">ConfigurationCoordinator to attach the plugin.</param>
 /// <param name="businessObject">Configuration business object.</param>
 public static void Initialize(CoordinatorPluginPhase pluginPhase, ConfigurationCoordinator coordinator, Configuration businessObject)
 {
     if (pluginPhase == CoordinatorPluginPhase.SaveObject)
     {
         if (businessObject.Key.StartsWith("templates.", StringComparison.Ordinal))
         {
             coordinator.Plugins.Add(new ConfigurationRefreshPlugin());
         }
     }
 }
        /// <summary>
        /// Initializes plugin.
        /// </summary>
        /// <param name="pluginPhase">Coordinator plugin phase.</param>
        /// <param name="coordinator">ConfigurationCoordinator to attach the plugin.</param>
        /// <param name="businessObject">Configuration business object.</param>
        public static void Initialize(CoordinatorPluginPhase pluginPhase, ConfigurationCoordinator coordinator, Configuration businessObject)
        {
            if (pluginPhase != CoordinatorPluginPhase.SaveObject)
            {
                return;
            }

            if (businessObject.Key == "contractors.group" || businessObject.Key == "items.group")
            {
                coordinator.Plugins.Add(new ContractorsGroupDefinitionPlugin(businessObject));
            }
        }
Exemplo n.º 7
0
        public static void Initialize(CoordinatorPluginPhase pluginPhase, ItemCoordinator coordinator, Item businessObject)
        {
            if (pluginPhase != CoordinatorPluginPhase.SaveObject)
            {
                return;
            }

            if (businessObject != null && !businessObject.IsNew)
            {
                coordinator.Plugins.Add(new ItemEquivalentGroupRemovalPlugin(businessObject));
            }
        }
Exemplo n.º 8
0
 /// <summary>
 /// Loads plugins for the current coordinator.
 /// </summary>
 /// <param name="pluginPhase">Coordinator plugin phase.</param>
 /// <param name="businessObject">Main business object currently processed.</param>
 protected override void LoadPlugins(CoordinatorPluginPhase pluginPhase, IBusinessObject businessObject)
 {
     base.LoadPlugins(pluginPhase, businessObject);
     FileDescriptorPlugin.Initialize(pluginPhase, this);
 }
Exemplo n.º 9
0
 /// <summary>
 /// Loads plugins for the current coordinator.
 /// </summary>
 /// <param name="pluginPhase">Coordinator plugin phase.</param>
 /// <param name="businessObject">Main business object currently processed.</param>
 protected override void LoadPlugins(CoordinatorPluginPhase pluginPhase, IBusinessObject businessObject)
 {
     base.LoadPlugins(pluginPhase, businessObject);
     ApplicationUserPlugin.Initialize(pluginPhase, this, businessObject as Contractor);
     ContractorCodeExistenceCheckPlugin.Initialize(pluginPhase, this);
 }
Exemplo n.º 10
0
 protected override void LoadPlugins(CoordinatorPluginPhase pluginPhase, IBusinessObject businessObject)
 {
     base.LoadPlugins(pluginPhase, businessObject);
     ItemEquivalentGroupRemovalPlugin.Initialize(pluginPhase, this, businessObject as Item);
     ItemCodeExistenceCheckPlugin.Initialize(pluginPhase, this);
 }