private void CreateAttributeSelector(object sender, EventArgs args) { pol.AttributeSelectorElement attr = new pol.AttributeSelectorElement(string.Empty, false, "TODO: Add XPath", Xacml.XacmlVersion.Version11); TreeNodes.AttributeSelector node = new TreeNodes.AttributeSelector(attr); tvwCondition.Nodes.Add(node); _condition.Arguments.Add(attr); }
private void CreateAttributeSelectorFromFunction(object sender, EventArgs args) { TreeNodes.FunctionExecution func = (TreeNodes.FunctionExecution)tvwCondition.SelectedNode; pol.ApplyBaseReadWrite parentApply = func.ApplyBaseDefinition; pol.AttributeSelectorElement attr = new pol.AttributeSelectorElement(string.Empty, false, "TODO: Add XPath", Xacml.XacmlVersion.Version11); TreeNodes.AttributeSelector node = new TreeNodes.AttributeSelector(attr); func.Nodes.Add(node); parentApply.Arguments.Add(attr); }
/// <summary> /// /// </summary> /// <param name="attributeSelector"></param> public AttributeSelector( pol.AttributeSelectorElement attributeSelector ) { _attributeSelector = attributeSelector; this.Text = "XPath: " + attributeSelector.RequestContextPath; }
/// <summary> /// /// </summary> /// <param name="attributeSelector"></param> public AttributeSelector(pol.AttributeSelectorElement attributeSelector) { _attributeSelector = attributeSelector; this.Text = "XPath: " + attributeSelector.RequestContextPath; }
private void CreateAttributeSelectorFromFunction( object sender, EventArgs args ) { TreeNodes.FunctionExecution func = (TreeNodes.FunctionExecution)tvwCondition.SelectedNode; pol.ApplyBaseReadWrite parentApply = func.ApplyBaseDefinition; pol.AttributeSelectorElement attr = new pol.AttributeSelectorElement( string.Empty, false, "TODO: Add XPath", Xacml.XacmlVersion.Version11 ); TreeNodes.AttributeSelector node = new TreeNodes.AttributeSelector( attr ); func.Nodes.Add( node ); parentApply.Arguments.Add( attr ); }
private void CreateAttributeSelector( object sender, EventArgs args ) { pol.AttributeSelectorElement attr = new pol.AttributeSelectorElement( string.Empty, false, "TODO: Add XPath", Xacml.XacmlVersion.Version11 ); TreeNodes.AttributeSelector node = new TreeNodes.AttributeSelector( attr ); tvwCondition.Nodes.Add( node ); _condition.Arguments.Add( attr ); }