Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DARIAH-DE OAI-PMH Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DARIAH-DE
DARIAH-DE OAI-PMH Services
Commits
72ba2e4f
Commit
72ba2e4f
authored
6 years ago
by
mbrodhu
Browse files
Options
Downloads
Patches
Plain Diff
adapted beans.xml in oaipmh-webapp to new classes for DC and MetsMods
parent
1b92db69
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml
+14
-28
14 additions, 28 deletions
oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml
with
14 additions
and
28 deletions
oaipmh-webapp/src/main/webapp/WEB-INF/beans.xml
+
14
−
28
View file @
72ba2e4f
...
...
@@ -20,8 +20,7 @@
<import
resource=
"classpath:META-INF/cxf/cxf.xml"
/>
<import
resource=
"classpath:META-INF/cxf/cxf-servlet.xml"
/>
<bean
id=
"propertyPlaceholderConfigurer"
class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
>
<bean
id=
"propertyPlaceholderConfigurer"
class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
>
<property
name=
"locations"
>
<list>
<value>
file:/etc/dhrep/oaipmh/oaipmh.properties
</value>
...
...
@@ -31,28 +30,21 @@
<property
name=
"ignoreUnresolvablePlaceholders"
value=
"true"
/>
</bean>
<bean
id=
"ElasticSearchClient"
class=
"info.textgrid.middleware.OAI_ESClient"
>
<constructor-arg
index=
"0"
value=
"${elasticSearch.url}"
/>
<constructor-arg
index=
"1"
value=
"${elasticSearch.port}"
/>
<constructor-arg
index=
"2"
value=
"${elasticSearch.clusterName}"
/>
<bean
id=
"ElasticSearchClient"
class=
"info.textgrid.middleware.OAI_ESClient"
>
<constructor-arg
index=
"0"
value=
"${elasticSearch.url}"
/>
<constructor-arg
index=
"1"
value=
"${elasticSearch.port}"
/>
<constructor-arg
index=
"2"
value=
"${elasticSearch.clusterName}"
/>
<property
name=
"esIndex"
value=
"${elasticSearch.index}"
/>
<property
name=
"esType"
value=
"${elasticSearch.type}"
/>
</bean>
<!--bean id="drc" class="info.textgrid.middleware.oaipmh.${DeletedRecordInfo}" -->
<bean
id=
"RepIdentification"
class=
"info.textgrid.middleware.RepIdentification"
>
<bean
id=
"RepIdentification"
class=
"info.textgrid.middleware.RepIdentification"
>
<constructor-arg
index=
"0"
value=
"${RepositoryName}"
/>
<constructor-arg
index=
"1"
value=
"${BaseUrl}"
/>
<constructor-arg
index=
"2"
value=
"${DeletedRecordInfo}"
/>
<constructor-arg
index=
"3"
value=
"${EarliestDateStamp}"
/>
<constructor-arg
index=
"2"
value=
"${DeletedRecordInfo}"
/>
<constructor-arg
index=
"3"
value=
"${EarliestDateStamp}"
/>
<constructor-arg
index=
"4"
value=
"${Granularity}"
/>
<constructor-arg
index=
"5"
value=
"${ProtocolVersion}"
/>
<constructor-arg
index=
"6"
value=
"${AdminMail}"
/>
...
...
@@ -162,30 +154,26 @@
<constructor-arg
index=
"1"
value=
"${dariah}"
/>
</bean>
<bean
id=
"SetDeliverer"
class=
"info.textgrid.middleware.SetDeliverer"
>
<bean
id=
"SetDeliverer"
class=
"info.textgrid.middleware.SetDeliverer"
>
<constructor-arg
ref=
"ElasticSearchClient"
/>
<constructor-arg
index=
"1"
value=
"${textgrid}"
/>
<constructor-arg
index=
"2"
value=
"${dariah}"
/>
<property
name=
"formatField"
value=
"${formatField}"
/>
<property
name=
"formatToFilter"
value=
"${formatToFilter}"
/>
<property
name=
"identifierField"
value=
"${identifierField}"
/>
<property
name=
"repositoryObjectURIPrefix"
value=
"${repositoryObjectURIPrefix}"
/>
<property
name=
"repositoryObjectURIPrefix"
value=
"${repositoryObjectURIPrefix}"
/>
<property
name=
"specField"
value=
"${specField}"
/>
<property
name=
"specFieldPrefix"
value=
"${specFieldPrefix}"
/>
</bean>
<bean
id=
"MetadataFormatList"
class=
"info.textgrid.middleware.MetadataFormatListDeliverer"
>
<bean
id=
"MetadataFormatList"
class=
"info.textgrid.middleware.MetadataFormatListDeliverer"
>
<constructor-arg
ref=
"ElasticSearchClient"
/>
</bean>
<!-- REST Interface -->
<bean
id=
"rest"
class=
"info.textgrid.middleware.Rest"
/>
<bean
id=
"cors-filter"
class=
"org.apache.cxf.rs.security.cors.CrossOriginResourceSharingFilter"
>
<bean
id=
"cors-filter"
class=
"org.apache.cxf.rs.security.cors.CrossOriginResourceSharingFilter"
>
<property
name=
"allowOrigins"
>
<util:list
/>
</property>
...
...
@@ -206,8 +194,7 @@
<property
name=
"dariah"
value=
"${dariah}"
/>
</bean>
<jaxrs:server
id=
"root"
address=
"/root"
publishedEndpointUrl=
"${RS_ENDPOINT}"
>
<jaxrs:server
id=
"root"
address=
"/root"
publishedEndpointUrl=
"${RS_ENDPOINT}"
>
<jaxrs:serviceBeans>
<ref
bean=
"rest"
/>
</jaxrs:serviceBeans>
...
...
@@ -216,8 +203,7 @@
</jaxrs:providers>
</jaxrs:server>
<jaxrs:server
id=
"queryEndpoint"
address=
"/oai"
publishedEndpointUrl=
"${RS_ENDPOINT}"
>
<jaxrs:server
id=
"queryEndpoint"
address=
"/oai"
publishedEndpointUrl=
"${RS_ENDPOINT}"
>
<jaxrs:serviceBeans>
<ref
bean=
"oai"
/>
</jaxrs:serviceBeans>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment