Skip to content

Commit

Permalink
Add an in_infed mdx channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Feb 22, 2013
1 parent 8938aaa commit 06c6677
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@
<CHANNEL.do verb="importProduction" channel="fi_haka"/>
<CHANNEL.do verb="importProduction" channel="gr_grnet"/>
<CHANNEL.do verb="importProduction" channel="hu_eduid"/>
<CHANNEL.do verb="importProduction" channel="in_infed"/>
<CHANNEL.do verb="importProduction" channel="it_idem"/>
<CHANNEL.do verb="importProduction" channel="nl_surfnet"/>
<CHANNEL.do verb="importProduction" channel="no_feide"/>
Expand Down Expand Up @@ -948,6 +949,7 @@
<CHANNEL.do verb="importRaw" channel="hr_eduhr"/>
<CHANNEL.do verb="importRaw" channel="hu_eduid"/>
<CHANNEL.do verb="importRaw" channel="ie_edugate"/>
<CHANNEL.do verb="importRaw" channel="in_infed"/>
<CHANNEL.do verb="importRaw" channel="int_edugain"/>
<CHANNEL.do verb="importRaw" channel="int_testshib"/>
<CHANNEL.do verb="importRaw" channel="it_idem"/>
Expand Down
67 changes: 67 additions & 0 deletions mdx/in_infed/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Common beans for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
default-lazy-init="true"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
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
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

<!--
Location of various resources.
-->
<bean id="in_infed_productionAggregate_url" class="java.lang.String">
<constructor-arg value="http://parichay.inflibnet.ac.in/metadata/infed.xml"/>
</bean>

<!--
Fetch the production aggregate.
-->
<bean id="in_infed_productionAggregate" parent="domResourceStage_parent"
p:id="in_infed_productionAggregate">
<property name="domResource">
<bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
<constructor-arg name="client" ref="httpClient"/>
<constructor-arg name="url" ref="in_infed_productionAggregate_url"/>
</bean>
</property>
</bean>

<!--
Fetch and process the production entities as a collection.
-->
<bean id="in_infed_productionEntities" parent="composite_parent"
p:id="in_infed_productionEntities">
<property name="composedStages">
<list>
<!-- no export aggregate; use the production one instead -->
<ref bean="in_infed_productionAggregate"/>

<!--
Check for fatal errors at the aggregate level:
missing or expired validUntil attribute
invalid signature
-->
<!-- no validUntil, no signature yet
<ref bean="check_validUntil"/>
<ref bean="at_aconet_checkSignature"/>
<ref bean="errorTerminatingFilter"/>
-->

<ref bean="disassemble"/>

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

<!--
Select primary export aggregate.
-->
<alias alias="in_infed_exportedAggregate" name="in_infed_productionAggregate"/>
<alias alias="in_infed_exportedEntities" name="in_infed_productionEntities"/>
</beans>
56 changes: 56 additions & 0 deletions mdx/in_infed/verbs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Verb definitions for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
default-lazy-init="true"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
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
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

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

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

<bean id="serializeImported" parent="serialize_parent"
p:id="serializeImported">
<property name="outputFile">
<bean class="java.io.File">
<constructor-arg value="#{ systemProperties['basedir'] }/mdx/in_infed/imported.xml"/>
</bean>
</property>
</bean>

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

<bean id="importProductionRaw" parent="pipeline_parent"
p:id="importProductionRaw">
<property name="stages">
<list>
<ref bean="in_infed_productionAggregate"/>
<ref bean="serializeImported"/>
</list>
</property>
</bean>

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

0 comments on commit 06c6677

Please sign in to comment.