This repository has been archived by the owner. It is now read-only.
forked from InCommon/inc-meta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add int_cobweb channel for COBWEB project metadata.
- Loading branch information
Showing
3 changed files
with
162 additions
and
0 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| <?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: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-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="int_cobweb_productionAggregate_url" class="java.lang.String"> | ||
| <constructor-arg value="https://cobweb.edina.ac.uk/metadata/cobweb-metadata.xml"/> | ||
| </bean> | ||
|
|
||
| <!-- | ||
| Fetch the production aggregate. | ||
| --> | ||
| <bean id="int_cobweb_productionAggregate" parent="DOMResourceSourceStage" | ||
| p:id="int_cobweb_productionAggregate"> | ||
| <property name="DOMResource"> | ||
| <bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource"> | ||
| <constructor-arg name="client" ref="httpClient"/> | ||
| <constructor-arg name="url" ref="int_cobweb_productionAggregate_url"/> | ||
| </bean> | ||
| </property> | ||
| </bean> | ||
|
|
||
| <!-- | ||
| Signing certificate. | ||
| --> | ||
| <bean id="int_cobweb_signingCertificate" class="net.shibboleth.ext.spring.factory.X509CertificateFactoryBean"> | ||
| <property name="certificateFile"> | ||
| <bean class="java.io.File"> | ||
| <constructor-arg value="#{ systemProperties['basedir'] }/mdx/int_cobweb/cobweb.pem"/> | ||
| </bean> | ||
| </property> | ||
| </bean> | ||
|
|
||
| <!-- | ||
| Check signing signature. | ||
| --> | ||
| <bean id="int_cobweb_checkSignature" parent="XMLSignatureValidationStage" | ||
| p:id="int_cobweb_checkSignature"> | ||
| <property name="verificationCertificate" ref="int_cobweb_signingCertificate"/> | ||
| </bean> | ||
|
|
||
| <!-- | ||
| Fetch the production entities as a collection. | ||
| --> | ||
| <bean id="int_cobweb_productionEntities" parent="CompositeStage" | ||
| p:id="int_cobweb_productionEntities"> | ||
| <property name="composedStages"> | ||
| <list> | ||
| <ref bean="int_cobweb_productionAggregate"/> | ||
|
|
||
| <!-- | ||
| Check for fatal errors at the aggregate level: | ||
| missing or expired validUntil attribute | ||
| invalid signature | ||
| --> | ||
| <ref bean="check_validUntil"/> | ||
| <ref bean="errorTerminatingFilter"/> | ||
|
|
||
| <ref bean="disassemble"/> | ||
| </list> | ||
| </property> | ||
| </bean> | ||
|
|
||
| <!-- | ||
| Select primary export aggregate. | ||
| --> | ||
| <alias alias="int_cobweb_exportedAggregate" name="int_cobweb_productionAggregate"/> | ||
| <alias alias="int_cobweb_exportedEntities" name="int_cobweb_productionEntities"/> | ||
| </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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| -----BEGIN CERTIFICATE----- | ||
| MIIDwTCCAqmgAwIBAgIJANQTFZkwy3GRMA0GCSqGSIb3DQEBBQUAMHcxCzAJBgNV | ||
| BAYTAkdCMREwDwYDVQQIDAhTY290bGFuZDESMBAGA1UEBwwJRWRpbmJ1cmdoMSAw |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Z7uoaLUM6ll6HrChBDPIhju6GcfGxcNgSe7EwHho/Uj23 | ||
| ntdXeYamcn4bgh3ZOBmm/d+AjjEZpKFsS5qF2j155nV+h5jZB3ZIpFlVWrW0Bmlk | ||
| mhrM4/yu4l8QWjzkRwKJahD0gJLiwP2gyXH9BCpYFD3biG94wtmMqk2wDiXdjIJd | ||
| R55Ymss= | ||
| -----END CERTIFICATE----- |
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,58 @@ | ||
| <?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: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-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="classpath:common-beans.xml"/> | ||
|
|
||
| <!-- | ||
| Import channel-specific beans. | ||
| --> | ||
| <import resource="classpath:int_cobweb/beans.xml"/> | ||
|
|
||
| <bean id="serializeImported" parent="SerializationStage" | ||
| p:id="serializeImported"> | ||
| <property name="outputFile"> | ||
| <bean class="java.io.File"> | ||
| <constructor-arg value="#{ systemProperties['basedir'] }/mdx/int_cobweb/imported.xml"/> | ||
| </bean> | ||
| </property> | ||
| </bean> | ||
|
|
||
| <bean id="importProduction" parent="SimplePipeline" | ||
| p:id="importProduction"> | ||
| <property name="stages"> | ||
| <list> | ||
| <ref bean="int_cobweb_productionEntities"/> | ||
| <ref bean="standardImportActions"/> | ||
| <ref bean="standardImportTail"/> | ||
| <ref bean="serializeImported"/> | ||
| </list> | ||
| </property> | ||
| </bean> | ||
|
|
||
| <bean id="importProductionRaw" parent="SimplePipeline" | ||
| p:id="importProductionRaw"> | ||
| <property name="stages"> | ||
| <list> | ||
| <ref bean="int_cobweb_productionAggregate"/> | ||
| <ref bean="serializeImported"/> | ||
| </list> | ||
| </property> | ||
| </bean> | ||
|
|
||
| <alias alias="import" name="importProduction"/> | ||
| <alias alias="importRaw" name="importProductionRaw"/> | ||
| </beans> |