protected JcrSession loginInternalSession( String workspaceName ) throws RepositoryException { try { boolean readOnly = false; // assume not RunningState running = runningState(); ExecutionContext sessionContext = running.internalWorkerContext(); Map<String, Object> attributes = Collections.emptyMap(); JcrSession session = new JcrSession(JcrRepository.this, workspaceName, sessionContext, attributes, readOnly); running.addSession(session, true); return session; } catch (WorkspaceNotFoundException e) { throw new NoSuchWorkspaceException(e.getMessage(), e); } }
protected JcrSession loginInternalSession( String workspaceName ) throws RepositoryException { try { boolean readOnly = false; // assume not RunningState running = runningState(); ExecutionContext sessionContext = running.internalWorkerContext(); Map<String, Object> attributes = Collections.emptyMap(); JcrSession session = new JcrSession(JcrRepository.this, workspaceName, sessionContext, attributes, readOnly); running.addSession(session, true); return session; } catch (WorkspaceNotFoundException e) { throw new NoSuchWorkspaceException(e.getMessage(), e); } }
running.addSession(session, false); return session; } catch (AccessDeniedException ace) {
running.addSession(session, false); return session; } catch (AccessDeniedException ace) {