]> git.argeo.org Git - gpl/argeo-slc.git/blob - modules/org.argeo.slc.server.repo/META-INF/spring/jcr.xml
Fix issue with RCP launch
[gpl/argeo-slc.git] / modules / org.argeo.slc.server.repo / META-INF / spring / jcr.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
5
6 <bean id="jcrSession" class="org.argeo.security.jcr.SecureThreadBoundSession">
7 <property name="repository" ref="jcrRepository" />
8 </bean>
9
10 <bean id="jcrRepository" class="org.argeo.jackrabbit.JackrabbitContainer"
11 init-method="init" destroy-method="destroy">
12 <property name="homeDirectory" value="${osgi.instance.area}/repos/java" />
13 <property name="configuration" value="osgibundle:repository-h2.xml" />
14 <property name="variables" value="osgibundle:/repo.properties" />
15 <property name="cndFiles">
16 <list>
17 <value>/org/argeo/jcr/argeo.cnd</value>
18 <value>/org/argeo/slc/jcr/slc.cnd</value>
19 <value>/org/argeo/slc/repo/repo.cnd</value>
20 </list>
21 </property>
22 <property name="bundleContext" ref="bundleContext" />
23 <property name="forceCndImport" value="${org.argeo.slc.repo.forceCndImport}" />
24 </bean>
25
26 <!-- Security -->
27 <bean class="org.argeo.jackrabbit.JackrabbitAuthorizations"
28 init-method="run">
29 <property name="principalPrivileges">
30 <map>
31 <entry key="jcr:all" value="ROLE_SLC" />
32 <entry key="jcr:all" value="ROLE_ADMIN" />
33 </map>
34 </property>
35 <property name="repository" ref="jcrRepository" />
36 <property name="workspace" value="*" />
37 </bean>
38
39 <bean
40 class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
41 <property name="authenticationManager" ref="authenticationManager" />
42 </bean>
43 </beans>