Add generic ticket activity filters

This commit is contained in:
Drechsler, Meik
2026-07-23 11:18:42 +02:00
parent d8022567af
commit 8f66923952
15 changed files with 502 additions and 181 deletions

View File

@@ -49,7 +49,7 @@ namespace C4IT.DataHistoryProvider
{
}
public override bool InstantiateProperties(XmlElement XRoot, cXmlParser Parser)
public override bool InstantiateProperties(XmlElement XRoot, cXmlParser Parser)
{
MethodBase CM = null; if (cLogManager.DefaultLogger.IsDebug) { CM = MethodBase.GetCurrentMethod(); LogMethodBegin(CM); }
try
@@ -118,9 +118,34 @@ namespace C4IT.DataHistoryProvider
if (CM != null) LogMethodEnd(CM);
}
return false;
}
}
return false;
}
public override bool DoXmlUpdates(XmlElement xmlRoot, bool withM42Config = false, bool withIntuneConfig = false, bool withMobileDeviceConfig = false, bool withCitrixConfig = false)
{
// Queue filtering moved to the provider-neutral global ActivityFilters policy.
// InstantiateProperties runs first, so the values remain available for the
// one-time migration while the obsolete XML is removed.
if (!(xmlRoot.SelectSingleNode("Matrix42-WPM") is XmlElement matrix42))
return false;
var changed = false;
if (matrix42.HasAttribute("ActivityQueueFilter"))
{
matrix42.RemoveAttribute("ActivityQueueFilter");
changed = true;
}
var queues = matrix42.SelectSingleNode("Queues");
if (queues != null)
{
matrix42.RemoveChild(queues);
changed = true;
}
return changed;
}
}
public class cDataHistoryConfigDatabase : IConfigNodeValidation
{