Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="attributeSelector"></param>
        public AttributeSelector( pol.AttributeSelectorElement attributeSelector )
        {
            _attributeSelector = attributeSelector;

            this.Text = "XPath: " + attributeSelector.RequestContextPath;
        }
Пример #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="attributeSelector"></param>
        public AttributeSelector(pol.AttributeSelectorElement attributeSelector)
        {
            _attributeSelector = attributeSelector;

            this.Text = "XPath: " + attributeSelector.RequestContextPath;
        }
Пример #5
0
        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 );
        }
Пример #6
0
        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 );
        }