-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement two-phase fetch/process import for eduGAIN.
New target inc.edugain.download acquires new eduGAIN metadata and (if successful) writes it to a file which is then used instead of a direct download by the import pipeline. For consistency, the intermediate file is also used by inc.edugain.report.
- Loading branch information
Showing
5 changed files
with
136 additions
and
4 deletions.
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| edugain.xml | ||
| exported.xml | ||
| imported.xml | ||
| production.xml |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <!-- | ||
| Download eduGAIN 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 eduGAIN channel beans. | ||
| --> | ||
| <import resource="classpath:int_edugain/beans.xml"/> | ||
|
|
||
| <bean id="serializeImported" parent="SerializationStage"> | ||
| <property name="outputFile"> | ||
| <bean class="java.io.File"> | ||
| <constructor-arg value="${inc.edugain.xml}"/> | ||
| </bean> | ||
| </property> | ||
| </bean> | ||
|
|
||
| <!-- | ||
| Download eduGAIN aggregate. | ||
| --> | ||
| <bean id="download-edugain" parent="SimplePipeline"> | ||
| <property name="stages"> | ||
| <list> | ||
| <ref bean="int_edugain_productionAggregate"/> | ||
|
|
||
| <!-- | ||
| Check for fatal errors at the aggregate level: | ||
| missing or expired validUntil attribute | ||
| invalid signature | ||
| --> | ||
| <ref bean="check_validUntil"/> | ||
| <ref bean="int_edugain_checkSignature"/> | ||
| <ref bean="errorTerminatingFilter"/> | ||
|
|
||
| <!-- Write the downloaded aggregate out to a file. --> | ||
| <ref bean="serializeImported"/> | ||
| </list> | ||
| </property> | ||
| </bean> | ||
|
|
||
| </beans> |
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
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