Skip to content

Commit

Permalink
Add a channel for the Latvian LAIFE federation.
Browse files Browse the repository at this point in the history
NOTE: no metadata signature used.
  • Loading branch information
iay committed Jun 28, 2011
1 parent f11b0d4 commit ce1f19a
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,10 @@
<CHANNEL.import channel="jp_gakunin"/>
</target>

<target name="flow.lv_laife.import">
<CHANNEL.import channel="lv_laife"/>
</target>

<target name="flow.se_swamid.import">
<CHANNEL.import channel="se_swamid"/>
</target>
Expand Down
41 changes: 41 additions & 0 deletions mdx/lv_laife/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Common beans for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

<!--
Fetch the production aggregate.
-->
<bean id="lv_laife_productionAggregate" class="net.shibboleth.metadata.dom.DomHttpSourceStage"
init-method="initialize" lazy-init="true">
<property name="id" value="lv_laife_productionAggregate"/>
<property name="parserPool" ref="parserPool"/>
<property name="sourceUrl" value="https://laife.lanet.lv/metadata/laife-metadata.xml"/>
</bean>

<!--
Fetch and process the exported entities as a collection.
-->
<bean id="lv_laife_exportedEntities" class="net.shibboleth.metadata.pipeline.CompositeStage"
init-method="initialize" lazy-init="true">
<property name="id" value="lv_laife_exportedEntities"/>
<property name="composedStages">
<list>
<!-- no export aggregate; use the production one instead -->
<ref bean="lv_laife_productionAggregate"/>

<!-- this metadata is not signed -->

<!-- failure to validate signature is fatal -->
<ref bean="errorTerminatingFilter"/>

<ref bean="disassemble"/>

<ref bean="standardImportActions"/>
</list>
</property>
</bean>

</beans>
52 changes: 52 additions & 0 deletions mdx/lv_laife/verbs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Verb definitions for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

<!--
Import commonly used beans.
-->
<import resource="../common-beans.xml"/>

<!--
Import channel-specific beans.
-->
<import resource="beans.xml"/>

<bean id="serializeImported" class="net.shibboleth.metadata.pipeline.SerializationStage"
init-method="initialize" lazy-init="true">
<property name="id" value="serializeImported"/>
<property name="serializer" ref="serializer"/>
<property name="outputFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/lv_laife/imported.xml"/>
</bean>
</property>
</bean>

<bean id="import" class="net.shibboleth.metadata.pipeline.SimplePipeline"
init-method="initialize" lazy-init="true">
<property name="id" value="import"/>
<property name="stages">
<list>
<ref bean="lv_laife_exportedEntities"/>
<ref bean="standardImportTail"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

<bean id="importRaw" class="net.shibboleth.metadata.pipeline.SimplePipeline"
init-method="initialize" lazy-init="true">
<property name="id" value="importRaw"/>
<property name="stages">
<list>
<ref bean="lv_laife_productionAggregate"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

</beans>

0 comments on commit ce1f19a

Please sign in to comment.