Skip to content

Commit

Permalink
Build a hierarchical structure for the test aggregate. Requires an up…
Browse files Browse the repository at this point in the history
…date to ukf-mda to correct the UK sorting rules.
  • Loading branch information
iay committed Sep 20, 2011
1 parent f9dd927 commit 6f042c7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
18 changes: 17 additions & 1 deletion mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@


<!--
UK federation EntitiesDescriptor assembler pipeline stage.
UK federation named EntitiesDescriptor assembler pipeline stage.
Name attribute is set to the federation URI. UK ordering is applied.
-->
<bean id="uk_assemble" class="net.shibboleth.metadata.dom.saml.EntitiesDescriptorAssemblerStage"
init-method="initialize" lazy-init="true">
Expand All @@ -249,6 +251,20 @@
</bean>


<!--
UK federation unnamed EntitiesDescriptor assembler pipeline stage.
Name attribute is not set. UK ordering is applied.
-->
<bean id="uk_assembleUnnamed" class="net.shibboleth.metadata.dom.saml.EntitiesDescriptorAssemblerStage"
init-method="initialize" lazy-init="true">
<property name="id" value="uk_assembleUnnamed"/>
<property name="itemOrderingStrategy">
<bean class="uk.org.ukfederation.mda.UKEntityOrderingStrategy"/>
</property>
</bean>


<!--
Fetch and process the registered entities as a collection.
-->
Expand Down
18 changes: 9 additions & 9 deletions mdx/uk/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@


<!--
*******************************************************************
*** ***
*** S T R U C T U R E D A G G R E G A T E B U I L D E R ***
*** ***
*******************************************************************
***********************************************************************
*** ***
*** H I E R A R C H I C A L A G G R E G A T E B U I L D E R ***
*** ***
***********************************************************************
-->


<!--
Assemble a nested EntitiesDescriptor structure with the
UK federation entities inside an inner element.
-->
<bean id="uk_assembleStructuredAggregate" class="net.shibboleth.metadata.pipeline.CompositeStage"
<bean id="uk_assembleHierarchicalAggregate" class="net.shibboleth.metadata.pipeline.CompositeStage"
init-method="initialize" lazy-init="true">
<property name="id" value="uk_assembleStructuredAggregate"/>
<property name="id" value="uk_assembleHierarchicalAggregate"/>
<property name="composedStages">
<list>
<!--
Expand Down Expand Up @@ -89,7 +89,7 @@
Step 2: put that EntitiesDescriptor plus all remaining entities inside an
anonymous outer EntitiesDescriptor.
-->
<ref bean="assemble"/>
<ref bean="uk_assembleUnnamed"/>
</list>
</property>
</bean>
Expand Down Expand Up @@ -444,7 +444,7 @@
</bean>

<!-- pipeline continues to generate test aggregate -->
<ref bean="uk_assemble"/>
<ref bean="uk_assembleHierarchicalAggregate"/>
<ref bean="uk_addTrustRoots"/>
<ref bean="uk_finaliseTest"/>
<ref bean="uk_normaliseNamespaces"/>
Expand Down
Binary file not shown.

0 comments on commit 6f042c7

Please sign in to comment.