Skip to content

Commit

Permalink
Convert to new conventions for us_incommon channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jul 17, 2012
1 parent 75ba2c4 commit 7e1c2a8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,6 @@
<CHANNEL.import channel="nz_tuakiri"/>
<CHANNEL.import channel="si_arnes"/>
<CHANNEL.import channel="uk_eduserv"/>
<CHANNEL.import channel="us_incommon"/>
</target>

<!--
Expand All @@ -895,6 +894,7 @@
<CHANNEL.do verb="importProduction" channel="nl_surfnet"/>
<CHANNEL.do verb="importProduction" channel="no_feide"/>
<CHANNEL.do verb="importProduction" channel="se_swamid"/>
<CHANNEL.do verb="importProduction" channel="us_incommon"/>
</target>

<!--
Expand Down
22 changes: 17 additions & 5 deletions mdx/us_incommon/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

<!--
Fetch the InCommon production metadata aggregate.
Location of various resources.
-->
<bean id="us_incommon_productionAggregate_url" class="java.lang.String">
<constructor-arg value="http://wayf.incommonfederation.org/InCommon/InCommon-metadata.xml"/>
</bean>

<!--
Fetch the production aggregate.
-->
<bean id="us_incommon_productionAggregate" parent="domResourceStage_parent"
p:id="us_incommon_productionAggregate">
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" value="http://wayf.incommonfederation.org/InCommon/InCommon-metadata.xml"/>
<constructor-arg name="url" ref="us_incommon_productionAggregate_url"/>
</bean>
</property>
</bean>
Expand All @@ -45,10 +52,10 @@
</bean>

<!--
Fetch and process the exported entities as a collection.
Fetch and process the production entities as a collection.
-->
<bean id="us_incommon_exportedEntities" parent="composite_parent"
p:id="us_incommon_exportedEntities">
<bean id="us_incommon_productionEntities" parent="composite_parent"
p:id="us_incommon_productionEntities">
<property name="composedStages">
<list>
<!-- no export aggregate; use the production one instead -->
Expand All @@ -70,4 +77,9 @@
</property>
</bean>

<!--
Select primary export aggregate.
-->
<alias alias="us_incommon_exportedAggregate" name="us_incommon_productionAggregate"/>
<alias alias="us_incommon_exportedEntities" name="us_incommon_productionEntities"/>
</beans>
12 changes: 7 additions & 5 deletions mdx/us_incommon/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@
</property>
</bean>

<bean id="import" parent="pipeline_parent"
p:id="import">
<bean id="importProduction" parent="pipeline_parent"
p:id="importProduction">
<property name="stages">
<list>
<ref bean="us_incommon_exportedEntities"/>
<ref bean="us_incommon_productionEntities"/>
<ref bean="standardImportTail"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

<bean id="importRaw" parent="pipeline_parent"
p:id="importRaw">
<bean id="importProductionRaw" parent="pipeline_parent"
p:id="importProductionRaw">
<property name="stages">
<list>
<ref bean="us_incommon_productionAggregate"/>
Expand All @@ -54,4 +54,6 @@
</property>
</bean>

<alias alias="import" name="importProduction"/>
<alias alias="importRaw" name="importProductionRaw"/>
</beans>

0 comments on commit 7e1c2a8

Please sign in to comment.