Módosítások

Attribute Conversion for eduGAIN

26 bájt hozzáadva, 2008. szeptember 8., 07:21
a
minor changes
This last example needs some more explanation. When you want to reference the regular expression matching groups (enclosed by parentheses), you must define the reference name with the 'id' parameter of <code>AttributeMatch</code>. Then, use <code>${id[0]}</code> to refer to the whole regular expression match (ie. the whole attribute value), and <code>${id[N]}</code> to refer to the Nth. matching group of the regular expression.
{{INFOINFO_EN|You cannot reference other rule's regular expressions.}}
=== MergeRule ===
The merge rule can merge two or more attributes into one. The attributes whose values you want to merge is declared using the InputAttribute node. You can also use the condition node, but only with <code>RemoteProviderMatch</code> (<code>AttributeMatch</code> is ignored).
 
This example shows how to combine two attribute values:
=== SplitRule ===
The '''SplitRule''' is very similar to the '''MergeRule''', the only difference is that the '''SplitRule''' containes contains one <code>InputAttribute</code> and more <code>Attribute</code> nodes.
<source lang="xml">
== Testing ==
=== XMLTest.sh ===
Attribute conversion library comes with XML-based test framework. The test can be invoked by the <code>net.geant.edugain.attributes.xmltest.AttributeConverterTest</code> main class. There is the '''Also there is the <code>XMLTest.sh</code> ''' script attached to the project, which makes it easy to execute the testing framework.'''
$ ./XMLTest.sh
==== Example test configuration ====
The <code>xmltest/</code> directory containes contains the following exampleexamples 
'''<code>AttributeNameMapper.xml</code>''' converter name mapper configuration
</AttributeMapper>
</source>
 
 
</AttributeConverter>
</source>
 
 
'''<code>AttributeTest.xml</code>''' test input xml
=== Real-life examples ===
{{TODO_EN|Please post your BE configuration here.}}==== Hungarnet ======== Example attribute mapper file = Home ========= Example attribute converter file = Remote =====

Navigációs menü