Skip to content

Commit

Permalink
Merge in exported entities from ie_edugate channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jul 12, 2011
1 parent 63cd8f8 commit ec52f13
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 10 deletions.
7 changes: 7 additions & 0 deletions mdx/common-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@
</property>
</bean>

<!--
everythingSelector
An item selection strategy that selects all items.
-->
<bean id="everythingSelector" class="net.shibboleth.metadata.AlwaysItemSelectionStrategy"/>

<!--
Standard serializer.
-->
Expand Down
16 changes: 16 additions & 0 deletions mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,20 @@
</bean>


<!--
uk_stripExtensions
Strip those UK federation extensions which we never publish.
-->
<bean id="uk_stripExtensions" class="net.shibboleth.metadata.dom.XSLTransformationStage"
init-method="initialize" lazy-init="true">
<property name="id" value="uk_stripExtensions"/>
<property name="xslResource">
<bean class="org.opensaml.util.resource.FilesystemResource">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/uk/strip_extensions.xsl"/>
</bean>
</property>
</bean>


</beans>
49 changes: 39 additions & 10 deletions mdx/uk/generate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,33 @@
Import channel-specific beans.
-->
<import resource="beans.xml"/>

<!--
Import beans from other channels.
-->
<import resource="../ie_edugate/beans.xml"/>


<bean id="everythingSelector" class="net.shibboleth.metadata.AlwaysItemSelectionStrategy"/>
<!--
*******************************************
*** ***
*** I M P O R T P I P E L I N E S ***
*** ***
*******************************************
-->

<bean id="uk_stripExtensions" class="net.shibboleth.metadata.dom.XSLTransformationStage"
<bean id="uk_ie_edugate_importPipeline" class="net.shibboleth.metadata.pipeline.SimplePipeline"
init-method="initialize" lazy-init="true">
<property name="id" value="uk_stripExtensions"/>
<property name="xslResource">
<bean class="org.opensaml.util.resource.FilesystemResource">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/uk/strip_extensions.xsl"/>
</bean>
<property name="id" value="uk_ie_edugate_importPipeline"/>
<property name="stages">
<list>
<ref bean="ie_edugate_exportedEntities"/>
<ref bean="uk_performFixups"/>
</list>
</property>
</bean>


<!--
***************************************************
*** ***
Expand Down Expand Up @@ -323,9 +337,9 @@
<!--
Fork into new pipelines for the production, fallback and WAYF aggregates.
-->
<bean id="wayfDemux" class="net.shibboleth.metadata.pipeline.PipelineDemultiplexerStage"
<bean id="otherDemux" class="net.shibboleth.metadata.pipeline.PipelineDemultiplexerStage"
init-method="initialize" lazy-init="true">
<property name="id" value="wayfDemux"/>
<property name="id" value="otherDemux"/>
<property name="pipelineAndSelectionStrategies">
<list>
<bean class="org.opensaml.util.Pair">
Expand All @@ -345,7 +359,22 @@
<property name="waitingForPipelines" value="true"/>
</bean>

<!-- merge in entities from other metadata sources -->
<!--
Merge in entities from other metadata sources.
-->
<bean id="mergeImportedEntities" class="net.shibboleth.metadata.pipeline.PipelineMergeStage"
init-method="initialize" lazy-init="true">
<property name="id" value="mergeImportedEntities"/>
<property name="collectionMergeStrategy">
<bean id="deduplicateMergeStrategy" class="net.shibboleth.metadata.DeduplicatingItemIdMergeStrategy"
lazy-init="true"/>
</property>
<property name="mergedPipelines">
<list>
<ref bean="uk_ie_edugate_importPipeline"/>
</list>
</property>
</bean>

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

0 comments on commit ec52f13

Please sign in to comment.