jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1136883 - /jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Date Fri, 17 Jun 2011 13:49:50 GMT
Author: mduerig
Date: Fri Jun 17 13:49:50 2011
New Revision: 1136883

URL: http://svn.apache.org/viewvc?rev=1136883&view=rev
Log:
spi2microkernel prototype (WIP)
clean up

Modified:
    jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java

Modified: jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java?rev=1136883&r1=1136882&r2=1136883&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Fri Jun 17 13:49:50 2011
@@ -47,9 +47,7 @@ import org.apache.jackrabbit.spi2microke
 import org.json.simple.parser.JSONParser;
 import org.json.simple.parser.ParseException;
 
-import javax.jcr.AccessDeniedException;
 import javax.jcr.Credentials;
-import javax.jcr.NamespaceException;
 import javax.jcr.NoSuchWorkspaceException;
 import javax.jcr.PathNotFoundException;
 import javax.jcr.RepositoryException;
@@ -77,13 +75,11 @@ public class RepositoryServiceImpl exten
         put(LEVEL_2_SUPPORTED, TRUE);
     }};
 
-    private static final Map<String, String> NAMESPACES = Collections.emptyMap();
-
     private final MicroKernel microKernel;
     private final Map<SessionInfo, String> sessions = new HashMap<SessionInfo, String>();
 
     public RepositoryServiceImpl(MicroKernel microKernel) throws RepositoryException {
-        super(DESCRIPTORS, NAMESPACES, NodeTypes.getDefaultNodeTypes());
+        super(DESCRIPTORS, Collections.<String, String>emptyMap(), NodeTypes.getDefaultNodeTypes());
 
         try {
             this.microKernel = microKernel;  // xxx who disposes the micro kernel?
@@ -323,12 +319,12 @@ public class RepositoryServiceImpl exten
     //------------------------------------------< Name space management >---
 
     @Override
-    public void registerNamespace(SessionInfo sessionInfo, String prefix, String uri) throws
NamespaceException, UnsupportedRepositoryOperationException, AccessDeniedException, RepositoryException
{
+    public void registerNamespace(SessionInfo sessionInfo, String prefix, String uri) throws
RepositoryException {
         namespaces.setMapping(prefix, uri);
     }
 
     @Override
-    public void unregisterNamespace(SessionInfo sessionInfo, String uri) throws NamespaceException,
UnsupportedRepositoryOperationException, AccessDeniedException, RepositoryException {
+    public void unregisterNamespace(SessionInfo sessionInfo, String uri) throws RepositoryException
{
         namespaces.removeMapping(uri);
     }
 



Mime
View raw message