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">
6 <!-- JCR repositories -->
7 <bean id=
"javaRepository" parent=
"template.jcrRepository">
8 <property name=
"homeDirectory" value=
"${slc.repo.jcr.reposBase}/java" />
9 <property name=
"configuration" value=
"${slc.repo.jcr.configuration.java}" />
11 <bean id=
"distRepository" parent=
"template.jcrRepository">
12 <property name=
"homeDirectory" value=
"${slc.repo.jcr.reposBase}/dist" />
13 <property name=
"configuration" value=
"${slc.repo.jcr.configuration.dist}" />
15 <bean id=
"rpmRepository" parent=
"template.jcrRepository">
16 <property name=
"homeDirectory" value=
"${slc.repo.jcr.reposBase}/rpm" />
17 <property name=
"configuration" value=
"${slc.repo.jcr.configuration.rpm}" />
20 <!-- JCR authorizations -->
21 <bean parent=
"template.jcrAuthorizations">
22 <property name=
"repository" ref=
"javaRepository" />
24 <bean parent=
"template.jcrAuthorizations">
25 <property name=
"repository" ref=
"distRepository" />
27 <bean parent=
"template.jcrAuthorizations">
28 <property name=
"repository" ref=
"rpmRepository" />
32 class=
"org.argeo.security.core.AuthenticatedApplicationContextInitialization">
33 <property name=
"authenticationManager" ref=
"authenticationManager" />
37 <bean id=
"template.jcrRepository" abstract=
"true"
38 class=
"org.argeo.jackrabbit.JackrabbitContainer" init-method=
"init"
39 destroy-method=
"destroy">
40 <property name=
"variables" value=
"osgibundle:/repo.properties" />
41 <property name=
"cndFiles">
43 <value>/org/argeo/jcr/argeo.cnd
</value>
44 <value>/org/argeo/slc/jcr/slc.cnd
</value>
45 <value>/org/argeo/slc/repo/repo.cnd
</value>
48 <property name=
"bundleContext" ref=
"bundleContext" />
49 <property name=
"forceCndImport" value=
"${slc.repo.jcr.forceCndImport}" />
52 <bean id=
"template.jcrAuthorizations" abstract=
"true"
53 class=
"org.argeo.jackrabbit.JackrabbitAuthorizations" init-method=
"run">
54 <property name=
"principalPrivileges">
56 <entry key=
"jcr:all" value=
"ROLE_SLC" />
57 <entry key=
"jcr:all" value=
"ROLE_ADMIN" />
60 <property name=
"workspace" value=
"*" />