News download.

This commit is contained in:
2021-02-20 02:30:06 +01:00
parent 1388e55ae7
commit 563d17890a
3 changed files with 98 additions and 30 deletions

View File

@ -937,6 +937,23 @@ public class Miscellaneous extends Service
return result;
}
public static boolean restrictedFeaturesConfigured()
{
if(Rule.isAnyRuleUsing(Trigger.Trigger_Enum.activityDetection))
{
try
{
Class testClass = Class.forName(ActivityManageRule.activityDetectionClassPath);
}
catch (ClassNotFoundException e)
{
return true;
}
}
return false;
}
public static Element getXmlTree(String inputString) throws SAXException, IOException, ParserConfigurationException
{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();