X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.jcr%2Fsrc%2Forg%2Fargeo%2Fjcr%2FJcrRepositoryWrapper.java;h=d4bf4381ed1efd88149ea1bb00c44df680f51164;hb=1f4ff4da0e5d85821b005267dfa9eece9f8ca9bb;hp=1e08c18ac7aeb43a4c989bb035dc61eb1657c926;hpb=0d46a59c2e2a704b617c1a665fa5155bd4e40682;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.jcr/src/org/argeo/jcr/JcrRepositoryWrapper.java b/org.argeo.jcr/src/org/argeo/jcr/JcrRepositoryWrapper.java index 1e08c18ac..d4bf4381e 100644 --- a/org.argeo.jcr/src/org/argeo/jcr/JcrRepositoryWrapper.java +++ b/org.argeo.jcr/src/org/argeo/jcr/JcrRepositoryWrapper.java @@ -106,7 +106,7 @@ public abstract class JcrRepositoryWrapper implements Repository { else throw e; } - processNewSession(session); + processNewSession(session, workspaceName); return session; } @@ -123,7 +123,7 @@ public abstract class JcrRepositoryWrapper implements Repository { } /** Called after a session has been created, does nothing by default. */ - protected void processNewSession(Session session) { + protected void processNewSession(Session session, String workspaceName) { } /** Wraps access to the repository, making sure it is available. */ @@ -138,8 +138,8 @@ public abstract class JcrRepositoryWrapper implements Repository { } /** - * Logs in to the default workspace, creates the required workspace, logs - * out, logs in to the required workspace. + * Logs in to the default workspace, creates the required workspace, logs out, + * logs in to the required workspace. */ protected Session createWorkspaceAndLogsIn(Credentials credentials, String workspaceName) throws RepositoryException {