]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - modules/server/org.argeo.slc.node.jackrabbit/META-INF/spring/jackrabbit.xml
Give all accesses to members of group SLC
[gpl/argeo-slc.git] / modules / server / org.argeo.slc.node.jackrabbit / META-INF / spring / jackrabbit.xml
index 12f8265f00cca4184ffc9f8a6a91da315e024c22..311698e8f7c5c183283fc66006f213c4c1e694c9 100644 (file)
                </property>
        </bean>
 
-       <bean id="jcrRepository" class="org.argeo.jackrabbit.JackrabbitContainer">
-               <property name="repository" ref="nodeRepository" />
-               <property name="namespaces">
-                       <map>
-                               <entry key="slc" value="http://www.argeo.org/slc" />
-                       </map>
-               </property>
+       <bean id="jcrRepository" class="org.argeo.jackrabbit.JackrabbitContainer"
+               init-method="init" destroy-method="destroy">
                <property name="cndFiles">
                        <list>
-                               <value>classpath:/org/argeo/slc/repo/repo.cnd</value>
+                               <value>/org/argeo/slc/jcr/slc.cnd</value>
+<!--                           <value>/org/argeo/slc/repo/repo.cnd</value> -->
                        </list>
                </property>
-               <property name="systemExecutor" ref="systemExecutionService" />
+               <property name="repository" ref="nodeRepository" />
+               <property name="bundleContext" ref="bundleContext" />
+       </bean>
+
+       <!-- Security -->
+       <bean class="org.argeo.jackrabbit.JackrabbitAuthorizations"
+               init-method="run">
+               <property name="principalPrivileges">
+                       <map>
+                               <entry key="jcr:all" value="ROLE_SLC" />
+                       </map>
+               </property>
+               <property name="repository" ref="jcrRepository" />
+       </bean>
+
+       <bean
+               class="org.argeo.security.core.AuthenticatedApplicationContextInitialization">
+               <description><![CDATA[Executes initialization with a system authentication]]></description>
+               <property name="authenticationManager" ref="authenticationManager" />
        </bean>
 
 </beans>
\ No newline at end of file