]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - server/runtime/org.argeo.server.jackrabbit/src/main/java/org/argeo/jackrabbit/JackrabbitContainer.java
Add authorizations to JCR
[lgpl/argeo-commons.git] / server / runtime / org.argeo.server.jackrabbit / src / main / java / org / argeo / jackrabbit / JackrabbitContainer.java
index 51063ace7640b2323e3cf23e1cf676de2a01ae20..942313f8a5b68d3b0dba896629ddf3c248469dab 100644 (file)
@@ -98,7 +98,7 @@ public class JackrabbitContainer implements InitializingBean, DisposableBean,
                                throw new ArgeoException("Remote Davex repository " + uri
                                                + " not found");
                        log.info("Initialized Jackrabbit repository " + repository
-                                       + " from uri " + uri);
+                                       + " from URI " + uri);
                        // do not perform further initialization since we assume that the
                        // remote repository has been properly configured
                        return;
@@ -165,6 +165,7 @@ public class JackrabbitContainer implements InitializingBean, DisposableBean,
                                Session session = null;
                                try {
                                        session = repository.login(credentialsToUse);
+                                       processNewSession(session);
                                        // Load cnds as resources
                                        for (String resUrl : cndFiles) {
                                                Resource res = resourceLoader.getResource(resUrl);
@@ -191,7 +192,7 @@ public class JackrabbitContainer implements InitializingBean, DisposableBean,
                else
                        action.run();
        }
-
+       
        public void destroy() throws Exception {
                if (repository != null) {
                        if (repository instanceof JackrabbitRepository)
@@ -274,6 +275,7 @@ public class JackrabbitContainer implements InitializingBean, DisposableBean,
                try {
                        NamespaceHelper namespaceHelper = new NamespaceHelper(session);
                        namespaceHelper.registerNamespaces(namespaces);
+
                } catch (Exception e) {
                        throw new ArgeoException("Cannot process new session", e);
                }