Added annotation scheme in config & fixed authentication exceptions.
Change-Id: I19dd25b99f34c7aa51b2f1aea04837b2337838d8
diff --git a/full/src/main/resources/default-config.xml b/full/src/main/resources/default-config.xml
index c81bff5..625460f 100644
--- a/full/src/main/resources/default-config.xml
+++ b/full/src/main/resources/default-config.xml
@@ -58,7 +58,7 @@
p:configLocation='classpath:ehcache.xml' p:shared='true' />
<!-- props are injected from default-config.xml -->
- <bean id="kustvakt_config" class="de.ids_mannheim.korap.config.KustvaktConfiguration">
+ <bean id="kustvakt_config" class="de.ids_mannheim.korap.config.FullConfiguration">
<constructor-arg name="properties" ref="props" />
</bean>
@@ -160,12 +160,17 @@
<constructor-arg value="${krill.indexDir}"/>
</bean>
+
+ <bean id="kustvakt_rewrite" class="de.ids_mannheim.korap.rewrite.FullRewriteHandler">
+ <constructor-arg ref="kustvakt_config" />
+ </bean>
+
<bean id="kustvakt_auditing" class="de.ids_mannheim.korap.handlers.JDBCAuditing">
<constructor-arg ref="kustvakt_db" />
</bean>
<bean id="kustvakt_response"
- class="de.ids_mannheim.korap.web.utils.KustvaktResponseHandler">
+ class="de.ids_mannheim.korap.web.FullResponseHandler">
<constructor-arg index="0" name="iface" ref="kustvakt_auditing"/>
</bean>
diff --git a/full/src/main/resources/kustvakt.conf b/full/src/main/resources/kustvakt.conf
index 8f465e3..ea9af81 100644
--- a/full/src/main/resources/kustvakt.conf
+++ b/full/src/main/resources/kustvakt.conf
@@ -1,4 +1,4 @@
-## index dir
+#Krill
krill.indexDir= ../sample-index
krill.index.commit.count = 134217000
@@ -6,22 +6,27 @@
krill.index.commit.auto = 500
krill.index.relations.max = 100
-# default layers
+## LDAP
+ldap.config = file-path-to-ldap-config
+
+# Kustvakt
+## default layers
default.layer.p = tt
default.layer.l = tt
default.layer.o = opennlp
default.layer.d = mate
default.layer.c = corenlp
-# availability regex
+## availability regex
availability.regex.free = CC-BY.*
availability.regex.public = ACA.*
availability.regex.all = QAO.*
-kustvakt.management.registration=enable
+## authentication
+authentication.scheme = ldap
-#LDAP
-ldap.config = file-path-to-ldap-config
+
+kustvakt.management.registration=enable
## options referring to the security module!