Example #1
0
		private void CreateResourceAttributeDesignatorFromFunction( object sender, EventArgs args )
		{
			FunctionExecution func = (FunctionExecution)tvwCondition.SelectedNode;
			pol.ApplyBaseReadWrite parentApply = func.ApplyBaseDefinition;

			pol.ResourceAttributeDesignatorElement att = new pol.ResourceAttributeDesignatorElement( string.Empty, false, "TODO: Add attribute id", string.Empty, XacmlVersion.Version11 );
			AttributeDesignator node = new AttributeDesignator( att );

			func.Nodes.Add( node );
			parentApply.Arguments.Add( att );
		}
Example #2
0
		private void CreateResourceAttributeDesignator( object sender, EventArgs args )
		{
			pol.ResourceAttributeDesignatorElement att = new pol.ResourceAttributeDesignatorElement( string.Empty, false, "TODO: Add attribute id", string.Empty, XacmlVersion.Version11 );
			AttributeDesignator node = new AttributeDesignator( att );

			tvwCondition.Nodes.Add( node );
			_condition.Arguments.Add( att );
		}