private void CreateFunctionExecution(object sender, EventArgs args) { pol.ApplyElement apply = new pol.ApplyElement("urn:new_function", new pol.IExpressionReadWriteCollection(), XacmlVersion.Version11); FunctionExecution node = new FunctionExecution(apply); tvwCondition.Nodes.Add(node); _condition.Arguments.Add(apply); }
private void CreateFunctionExecutionFromFunction(object sender, EventArgs args) { FunctionExecution func = (FunctionExecution)tvwCondition.SelectedNode; pol.ApplyBaseReadWrite parentApply = func.ApplyBaseDefinition; pol.ApplyElement apply = new pol.ApplyElement("urn:new_function", new pol.IExpressionReadWriteCollection(), XacmlVersion.Version11); FunctionExecution node = new FunctionExecution(apply); func.Nodes.Add(node); parentApply.Arguments.Add(apply); }
/// <summary> /// Creates a new Apply using the reference to the apply definition in the policy document. /// </summary> /// <param name="apply">The apply definition of the policy document.</param> public Apply(pol.ApplyElement apply) : base(apply) { }
private void CreateFunctionExecutionFromFunction( object sender, EventArgs args ) { FunctionExecution func = (FunctionExecution)tvwCondition.SelectedNode; pol.ApplyBaseReadWrite parentApply = func.ApplyBaseDefinition; pol.ApplyElement apply = new pol.ApplyElement( "urn:new_function", new pol.IExpressionReadWriteCollection(), XacmlVersion.Version11 ); FunctionExecution node = new FunctionExecution( apply ); func.Nodes.Add( node ); parentApply.Arguments.Add( apply ); }
private void CreateFunctionExecution( object sender, EventArgs args ) { pol.ApplyElement apply = new pol.ApplyElement( "urn:new_function", new pol.IExpressionReadWriteCollection(), XacmlVersion.Version11 ); FunctionExecution node = new FunctionExecution( apply ); tvwCondition.Nodes.Add( node ); _condition.Arguments.Add( apply ); }