Dear SDK Team,
Using the ConfigurationItem, I think it would be really great if we could retreive the following data. The goal is to have better control on our custom AC licensing.
We want to be able to control how many AC doors and AC server can be added for a specific plugin. My AC plugin is unique enough that I can count the number of Access Control servers with a particular tree under it but I don’t know which doors are licensed in Milestone or if the server is enable or not. So to make this better, please can we have access to the following data (if there is another way of getting any of this data please let me know!)
- Access Control System Kind/Plugin GUID (To know what kind of AC Plugin it is)
- AC Server Enabled (Will not count a disabled server in license)
- AC Server Name (this can be found using Config API but I cannot find a way to access it from within the ACPlugin itself. Would be great to seperate out logging into different servers)
- For each door item, a bool indicating if the door is licensed or not and number of days left.
using VideoOS.Platform.ConfigurationItems;
public static ICollection<VideoOS.Platform.ConfigurationItems.AccessControlSystem> GetAccessControlServers()
{
ManagementServer ms = new ManagementServer(EnvironmentManager.Instance.MasterSite.ServerId);
var acs = ms.AccessControlSystemFolder.AccessControlSystems;
if (acs != null && acs.Count > 0)
{
return acs;
}
else
{
Logger.Log("No Access Control servers found!", true);
return null;
}
}
