Add generic ticket activity filters
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user