Skip to content

Commit

Permalink
More internal documentation in the generate pipeline.
Browse files Browse the repository at this point in the history
Refactor merge stages by adding a parent which defaults to deduplication.
Add a merge stage for production MDX relationships (none at present).
  • Loading branch information
iay committed Aug 11, 2012
1 parent 422a93d commit 01de207
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 9 deletions.
15 changes: 15 additions & 0 deletions mdx/common-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@
<property name="serializer" ref="serializer"/>
</bean>

<!--
merge_parent
Parent for merge stages. Defaults strategy to deduplication.
-->
<bean id="merge_parent" abstract="true" parent="stage_parent"
class="net.shibboleth.metadata.pipeline.PipelineMergeStage">
<property name="collectionMergeStrategy" ref="deduplicateMergeStrategy"/>
</bean>

<!--
***********************************************
*** ***
Expand Down Expand Up @@ -595,4 +605,9 @@
-->
<bean id="serializer" class="net.shibboleth.metadata.dom.DomElementSerializer"/>

<!--
Merge strategy that removes duplicates.
-->
<bean id="deduplicateMergeStrategy" class="net.shibboleth.metadata.DeduplicatingItemIdMergeStrategy"/>

</beans>
77 changes: 68 additions & 9 deletions mdx/uk/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,17 @@
-->
<ref bean="uk_stripAdminContacts"/>

<!--
***********************************************
*** ***
*** R E G I S T R A R E N T I T I E S ***
*** ***
***********************************************
At this point, the collection contains only
entities registered by the UK federation registrar.
-->

<!--
Fork into new pipelines for the export aggregate and for
the registrar statistics.
Expand Down Expand Up @@ -426,12 +437,44 @@
-->
<ref bean="uk_performFixups"/>

<!--
***************************************************
*** ***
*** P R O D U C T I O N M D X M E R G E ***
*** ***
***************************************************
Merge in entities from production metadata exchange sources.
-->

<bean id="mergeProductionMDXEntities" parent="merge_parent"
p:id="mergeProductionMDXortedEntities">
<property name="mergedPipelines">
<list>
<!-- entries earlier in the list have higher precedence -->
</list>
</property>
</bean>

<!--
*************************************************
*** ***
*** P R O D U C T I O N E N T I T I E S ***
*** ***
*************************************************
At this point, the collection contains entities
registered by the UK federation registrar plus
entities received through production-status MDX
relationships.
-->

<!--
Fork into new pipelines for the production, fallback and WAYF aggregates.
-->
<bean id="otherDemux" parent="stage_parent"
<bean id="productionDemux" parent="stage_parent"
class="net.shibboleth.metadata.pipeline.PipelineDemultiplexerStage"
p:id="otherDemux">
p:id="productionDemux">
<property name="pipelineAndSelectionStrategies">
<list>
<bean class="net.shibboleth.utilities.java.support.collection.Pair">
Expand All @@ -457,22 +500,38 @@
<ref bean="uk_default_regauth"/>

<!--
***********************************************************
*** ***
*** P R E - P R O D U C T I O N M D X M E R G E ***
*** ***
***********************************************************
Merge in entities from pre-production metadata exchange sources.
-->
<bean id="mergePreproductionImportedEntities" parent="stage_parent"
class="net.shibboleth.metadata.pipeline.PipelineMergeStage"
p:id="mergePreproductionImportedEntities">
<property name="collectionMergeStrategy">
<bean id="deduplicateMergeStrategy" class="net.shibboleth.metadata.DeduplicatingItemIdMergeStrategy"
lazy-init="true"/>
</property>

<bean id="mergePreproductionMDXEntities" parent="merge_parent"
p:id="mergePreproductionMDXEntities">
<property name="mergedPipelines">
<list>
<!-- entries earlier in the list have higher precedence -->
<ref bean="uk_ie_edugate_importPipeline"/>
</list>
</property>
</bean>

<!--
*********************************************************
*** ***
*** P R E - P R O D U C T I O N E N T I T I E S ***
*** ***
*********************************************************
At this point, the collection contains entities
registered by the UK federation registrar plus
entities received through both production-status
and pre-production-status MDX relationships.
-->

<!-- pipeline continues to generate test aggregate -->
<ref bean="uk_assembleHierarchicalAggregate"/>
<ref bean="uk_addTrustRoots"/>
Expand Down

0 comments on commit 01de207

Please sign in to comment.