예제 #1
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);
        }
예제 #2
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);
        }
예제 #3
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 );
		}
예제 #4
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 );
		}