/// <summary> /// Creates a new Policy with the specified arguments. /// </summary> /// <param name="id">The policy id.</param> /// <param name="description">THe policy description.</param> /// <param name="target">THe policy target.</param> /// <param name="rules">THe rules for this policy.</param> /// <param name="ruleCombiningAlgorithm">THe rule combining algorithm.</param> /// <param name="obligations">The Obligations for this policy.</param> /// <param name="xpathVersion">The XPath version supported.</param> /// <param name="combinerParameters">The combiner parameters in this policy.</param> /// <param name="ruleCombinerParameters">The rule parameters in this policy.</param> /// <param name="variableDefinitions">The variable definitions of this policy.</param> /// <param name="schemaVersion">The version of the schema that was used to validate.</param> public PolicyElement( string id, string description, TargetElementReadWrite target, RuleReadWriteCollection rules, string ruleCombiningAlgorithm, ObligationReadWriteCollection obligations, string xpathVersion, ArrayList combinerParameters, ArrayList ruleCombinerParameters, IDictionary variableDefinitions, XacmlVersion schemaVersion ) : base( id, description, target, rules, ruleCombiningAlgorithm, obligations, xpathVersion, combinerParameters, ruleCombinerParameters, variableDefinitions, schemaVersion ) { }
/// <summary> /// Creates a TargetItemCollection, with the items contained in a ReadWriteTargetItemCollection /// </summary> /// <param name="items"></param> public RuleCollection(RuleReadWriteCollection items) { if (items == null) throw new ArgumentNullException("items"); foreach (RuleElementReadWrite item in items) { this.List.Add(new RuleElement(item.Id, item.Description, item.Target, item.Condition, item.Effect, item.SchemaVersion)); } }
/// <summary> /// Creates a TargetItemCollection, with the items contained in a ReadWriteTargetItemCollection /// </summary> /// <param name="items"></param> public RuleCollection(RuleReadWriteCollection items) { if (items == null) { throw new ArgumentNullException("items"); } foreach (RuleElementReadWrite item in items) { this.List.Add(new RuleElement(item.Id, item.Description, item.Target, item.Condition, item.Effect, item.SchemaVersion)); } }
/// <summary> /// Creates a new Policy with the specified arguments. /// </summary> /// <param name="id">The policy id.</param> /// <param name="description">The policy description.</param> /// <param name="target">The policy target.</param> /// <param name="rules">The rules for this policy.</param> /// <param name="ruleCombiningAlgorithm">The rule combining algorithm.</param> /// <param name="obligations">The Obligations for this policy.</param> /// <param name="xpathVersion">The XPath version supported.</param> /// <param name="combinerParameters">The combiner parameters in this policy.</param> /// <param name="ruleCombinerParameters">The rule parameters in this policy.</param> /// <param name="variableDefinitions">The variable definitions of this policy.</param> /// <param name="schemaVersion">The version of the schema that was used to validate.</param> public PolicyElementReadWrite(string id, string description, TargetElementReadWrite target, RuleReadWriteCollection rules, string ruleCombiningAlgorithm, ObligationReadWriteCollection obligations, string xpathVersion, ArrayList combinerParameters, ArrayList ruleCombinerParameters, IDictionary variableDefinitions, XacmlVersion schemaVersion) : base(XacmlSchema.Policy, schemaVersion) { _id = id; _description = description; _target = target; _rules = rules; _ruleCombiningAlgorithm = ruleCombiningAlgorithm; _obligations = obligations; _combinerParameters = combinerParameters; _ruleCombinerParameters = ruleCombinerParameters; _variableDefinitions = variableDefinitions; _xpathVersion = xpathVersion; }
/// <summary> /// Creates a new Policy with the specified arguments. /// </summary> /// <param name="id">The policy id.</param> /// <param name="description">THe policy description.</param> /// <param name="target">THe policy target.</param> /// <param name="rules">THe rules for this policy.</param> /// <param name="ruleCombiningAlgorithm">THe rule combining algorithm.</param> /// <param name="obligations">The Obligations for this policy.</param> /// <param name="xpathVersion">The XPath version supported.</param> /// <param name="combinerParameters">The combiner parameters in this policy.</param> /// <param name="ruleCombinerParameters">The rule parameters in this policy.</param> /// <param name="variableDefinitions">The variable definitions of this policy.</param> /// <param name="schemaVersion">The version of the schema that was used to validate.</param> public PolicyElement(string id, string description, TargetElementReadWrite target, RuleReadWriteCollection rules, string ruleCombiningAlgorithm, ObligationReadWriteCollection obligations, string xpathVersion, ArrayList combinerParameters, ArrayList ruleCombinerParameters, IDictionary variableDefinitions, XacmlVersion schemaVersion) : base(id, description, target, rules, ruleCombiningAlgorithm, obligations, xpathVersion, combinerParameters, ruleCombinerParameters, variableDefinitions, schemaVersion) { }