565
szerkesztés
Módosítások
→Writing rules
Attribute Conversion only adds attributes (or values) to the attribute set; use [[JRA5AttributeFiltering | Attribute Filtering]] for filtering out unnecessary attributes. It also means that if no rules match an attribute, then it will go to the filter unmodified - so conversion works with a '''default by-pass policy'''.
== Writing rules Attribute conversion rule concepts==
Most of the rules are based on standard [http://en.wikipedia.org/wiki/Regular_expression regular expressions] and [http://en.wikipedia.org/wiki/Unified_Expression_Language Unified Expression Language].
Each rule works on the actual attribute set which is not necessarily the initial set, as each rule can alter the set (ie. by changing values or names, adding new attributes to the set). This means that the '''order of the rules is important'''.
* remote peer's name (RemoteProviderMatch)
* attribute name values (AttributeMatch)* attribute valueThe rule's action is to create new attributes (or to modify existing ones). Please refer to the detailed BasicRule, MergeRule, SplitRule documentation below. === Rule context ===When the conversion rules are processed one after another, each rule has its own rule context bound to it. This context holds references to all the matched attributes too. The rule context is also responsible for supporting the rule's action.
=== BasicRule ===
=== MergeRule ===
=== CustomRule ===
=== Quick guide for using unified EL with rules ===
== Using name mapper ==
== Testing ==
=== XMLTest.sh ===
=== Real-life examples ===