Skip to content

Commit

Permalink
Remove a custom namespace from the hu_eduid metadata, and filter out …
Browse files Browse the repository at this point in the history
…resulting empty Extensions elements.

Requires a couple of new stage definitions from the ukf-mda package V0.6.2.
  • Loading branch information
iay committed Sep 14, 2011
1 parent c141441 commit 2cc9969
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mdx/common-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@
<property name="id" value="populateItemIds"/>
</bean>

<!--
Remove any empty Extensions elements.
-->
<bean id="removeEmptyExtensions" class="uk.org.ukfederation.mda.RemoveEmptyExtensionsStage"
init-method="initialize" lazy-init="true">
<property name="id" value="removeEmptyExtensions"/>
</bean>

<!--
standardImportActions
Expand All @@ -187,6 +195,7 @@
<list>
<ref bean="populateItemIds"/>
<ref bean="cleanImport"/>
<ref bean="removeEmptyExtensions"/>
<ref bean="checkSchemas"/>
<ref bean="CHECK_imported"/>
<ref bean="errorAnnouncingFilter"/>
Expand Down
11 changes: 11 additions & 0 deletions mdx/hu_eduid/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@
<property name="verificationCertificate" ref="hu_eduid_signingCertificate"/>
</bean>

<!--
Remove the eduID.hu custom metadata tagging namespace.
-->
<bean id="hu_eduid_stripEntityAttributesNamespace" class="uk.org.ukfederation.mda.NamespaceStrippingStage"
init-method="initialize" lazy-init="true">
<property name="id" value="hu_eduid_stripEntityAttributesNamespace"/>
<property name="namespace" value="urn:geant:niif.hu:eduid.hu:entity-attributes:processing-info"/>
</bean>

<!--
Fetch and process the exported entities as a collection.
-->
Expand All @@ -58,6 +67,8 @@

<ref bean="disassemble"/>

<ref bean="hu_eduid_stripEntityAttributesNamespace"/>

<ref bean="standardImportActions"/>
</list>
</property>
Expand Down
Binary file removed tools/ukf-mda/ukf-mda-0.6.1.jar
Binary file not shown.
Binary file added tools/ukf-mda/ukf-mda-0.6.2.jar
Binary file not shown.

0 comments on commit 2cc9969

Please sign in to comment.