Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Support reading back from the UK export aggregate as an import channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Mar 1, 2013
1 parent ee65896 commit 63ad884
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 1 deletion.
42 changes: 41 additions & 1 deletion mdx/uk/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<constructor-arg value="http://metadata.ukfederation.org.uk/ukfederation-metadata.xml"/>
</bean>
<bean id="uk_exportAggregate_url" class="java.lang.String">
<constructor-arg value="http://metadata.ukfederation.org.uk/ukfederation-metadata.xml"/>
<constructor-arg value="http://metadata.ukfederation.org.uk/ukfederation-export.xml"/>
</bean>


Expand Down Expand Up @@ -555,4 +555,44 @@
</property>
</bean>

<!--
#################################################
### ###
### U K E X P O R T A S I M P O R T ###
### ###
#################################################
-->

<!--
Fetch and process the export entities as a collection.
-->
<bean id="uk_exportedEntities" parent="composite_parent"
p:id="uk_exportedEntities">
<property name="composedStages">
<list>
<ref bean="uk_exportAggregate"/>

<!--
Check for fatal errors at the aggregate level:
missing or expired validUntil attribute
invalid signature
-->
<ref bean="uk_check_validUntil"/>
<ref bean="uk_checkSignature"/>
<ref bean="errorTerminatingFilter"/>

<ref bean="disassemble"/>

<ref bean="uk_default_regauth"/>
<ref bean="uk_check_regauth"/>

<ref bean="standardImportActions"/>

<!-- Strip all entity attributes from this source. -->
<ref bean="stripMdattrNamespace"/>

</list>
</property>
</bean>

</beans>
40 changes: 40 additions & 0 deletions mdx/uk/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,45 @@
</list>
</property>
</bean>

<!--
#################################################
### ###
### U K E X P O R T A S I M P O R T ###
### ###
#################################################
-->

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

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

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

<alias alias="import" name="importExported"/>
<alias alias="importRaw" name="importExportedRaw"/>
</beans>

0 comments on commit 63ad884

Please sign in to comment.