Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
inc-meta/mdx/incommon/export.xml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
117 lines (99 sloc)
5.04 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Construct InCommon eduGAIN export aggregate. | |
--> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
default-lazy-init="true" | |
xmlns:c="http://www.springframework.org/schema/c" | |
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.xsd | |
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> | |
<!-- | |
Import commonly used beans. | |
--> | |
<import resource="classpath:common-beans.xml"/> | |
<!-- | |
Import channel-specific beans. | |
--> | |
<import resource="classpath:incommon/beans.xml"/> | |
<import resource="classpath:incommon/export-whitelist.xml"/> | |
<bean id="serializeExported" parent="mda.SerializationStage"> | |
<property name="serializer" ref="serializer"/> | |
<property name="outputFile"> | |
<bean parent="File"> | |
<constructor-arg value="${inc.exported.xml}"/> | |
</bean> | |
</property> | |
</bean> | |
<!-- | |
Construct InCommon eduGAIN export aggregate. | |
--> | |
<bean id="export" parent="mda.SimplePipeline"> | |
<property name="stages"> | |
<list> | |
<!-- | |
Start with the InCommon production aggregate. | |
In a production environment, this will be the *unsigned* aggregate, | |
so we perform minimal checking on its contents. | |
--> | |
<bean id="production_aggregate" parent="mda.DOMResourceSourceStage"> | |
<property name="parserPool" ref="parserPool"/> | |
<property name="DOMResource"> | |
<bean parent="FileSystemResource" c:_0="${inc.production.xml}"/> | |
</property> | |
</bean> | |
<!-- Break down into individual entities. --> | |
<ref bean="disassemble"/> | |
<!-- Remove all but the entities we want to export. --> | |
<bean id="applyEntityWhitelist" parent="mda.EntityFilterStage" | |
p:keepingEntities="true" | |
p:designatedEntities-ref="incommon_edugain_export_whitelist"/> | |
<!-- Include a default registrationAuthority for each entity. --> | |
<ref bean="us_incommon_default_regauth"/> | |
<!-- | |
Replace the InCommon R&S category with the REFEDS equivalent. | |
Note: this is temporary, until the REFEDS R&S category is present in | |
InCommon production metadata | |
--> | |
<bean id="rands_to_refeds" parent="mda.XSLTransformationStage" | |
p:XSLResource="classpath:incommon/rands_to_refeds.xsl"/> | |
<!-- Filter the entity attributes released to eduGAIN. --> | |
<bean id="entityAttributes" parent="mda.EntityAttributeFilteringStage"> | |
<property name="rules"> | |
<list> | |
<!-- Permit REFEDS R&S category membership --> | |
<bean parent="mda.EntityCategoryMatcher" | |
c:category="http://refeds.org/category/research-and-scholarship"/> | |
<!-- Permit REFEDS R&S category support --> | |
<bean parent="mda.EntityCategorySupportMatcher" | |
c:category="http://refeds.org/category/research-and-scholarship"/> | |
</list> | |
</property> | |
</bean> | |
<!-- Construct an aggregate from the collection of entities. --> | |
<ref bean="assemble"/> | |
<!-- Apply final tweaks to the aggregate. --> | |
<bean id="finalise" parent="incommon_finalise_parent"> | |
<property name="transformParameters"> | |
<map> | |
<entry key="extraText" value="eduGAIN export metadata"/> | |
<entry key="publisher" value-ref="us_incommon_registrar"/> | |
<entry key="validityDays" value="${validUntil.aggregate.days}"/> | |
<entry key="now_ISO" value-ref="now_ISO"/> | |
<entry key="now_local_ISO" value-ref="now_local_ISO"/> | |
<entry key="valid_until_ISO" value-ref="validUntil_aggregate_ISO"/> | |
</map> | |
</property> | |
</bean> | |
<!-- Normalise the use of namespace prefixes in the resulting XML document. --> | |
<bean id="normalise" parent="mda.XSLTransformationStage" | |
p:XSLResource="classpath:incommon/ns_norm_export.xsl"/> | |
<!-- Write the resulting aggregate out to a file. --> | |
<ref bean="serializeExported"/> | |
</list> | |
</property> | |
</bean> | |
</beans> |