public XmlConditionGroupReader(XmlPolicyReader reader, object parent, string xpath) : 
			base(reader, parent, xpath)
		{
            m_xpath += "/*";

            m_availableConditionGroups = m_reader.CataloguesCache.ConditionGroups;
		}
        private static PolicyObjectReader CreateXmlActionGroupReader(XmlNode parentNode, XmlPolicyReader reader, object parent, string xPath)
        {
            string guid = parentNode.Attributes.GetNamedItem("id").InnerText;
            Guid identifier = new Guid(guid);

            xPath = string.Format(CultureInfo.InvariantCulture, @"{0}/ActionGroup[@id='{1}']",
            xPath.Substring(0, xPath.LastIndexOf("/")),
                identifier.ToString("B").ToUpper(CultureInfo.InvariantCulture));

            return new XmlActionGroupReader(reader, parent, xPath);
        }
        public static PolicyObjectReader CreateReader(XmlNode parentNode, XmlPolicyReader reader, object parent, string xPath)
		{
			switch(parentNode.Name)
			{
                case "Action":
                    return CreateXmlActionReader(parentNode, reader, parent, xPath);
                case "ActionGroup":
                    return CreateXmlActionGroupReader(parentNode, reader, parent, xPath);
                default:
                    {
                        Utilities.ErrorMessage errorMessage = new Utilities.ErrorMessage(
                            "UNKNOWN_READER",
                            "Workshare.Policy.Store.Properties.Resources",
                            System.Reflection.Assembly.GetExecutingAssembly());
						Logger.LogError(errorMessage.LogString);
						throw new Workshare.Policy.Exceptions.PolicyException(errorMessage.DisplayString);
                    }
			}
		}
示例#4
0
 protected PolicyObjectReader(XmlPolicyReader reader, object parent, string xpath)
 {
     m_parent = parent;
     m_reader = reader;
     m_xpath = xpath;
 }
 public XmlActionGroupReader(XmlPolicyReader reader, object parent, string xpath)
     : base(reader, parent, xpath)
 {
     m_xpath += "/*";
 }
示例#6
0
 public XmlActionsReader(XmlPolicyReader reader, object parent, IPolicy policy, string xpath)
     : base(reader, parent, xpath)
 {
     m_policy = policy;
 }
示例#7
0
 public XmlActionReader(XmlPolicyReader reader, object parent, string xpath)
     : base(reader, parent, xpath)
 {
 }
 public XmlChannelRoutingReader(XmlPolicyReader reader, object parent, string xpath)
     : base(reader, parent, xpath)
 {
 }
示例#9
0
 public XmlChannelsReader(XmlPolicyReader reader, object parent, IPolicy policy, string xpath) :
     base(reader, parent, xpath)
 {
     m_xpath += "/*";
     m_policy = policy;
 }