jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r772889 - /jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeManagerImpl.java
Date Fri, 08 May 2009 08:45:33 GMT
Author: angela
Date: Fri May  8 08:45:32 2009
New Revision: 772889

URL: http://svn.apache.org/viewvc?rev=772889&view=rev
Log:
JCR-2105: JSR 283 NodeType Management

- remove unused imports
- reorder methods to match the the existing logic
- add javadoc

Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeManagerImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeManagerImpl.java?rev=772889&r1=772888&r2=772889&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/nodetype/NodeTypeManagerImpl.java
Fri May  8 08:45:32 2009
@@ -37,12 +37,10 @@
 import javax.jcr.ValueFactory;
 import javax.jcr.NamespaceException;
 import javax.jcr.version.OnParentVersionAction;
-import javax.jcr.nodetype.InvalidNodeTypeDefinitionException;
 import javax.jcr.nodetype.NoSuchNodeTypeException;
 import javax.jcr.nodetype.NodeDefinitionTemplate;
 import javax.jcr.nodetype.NodeType;
 import javax.jcr.nodetype.NodeTypeDefinition;
-import javax.jcr.nodetype.NodeTypeExistsException;
 import javax.jcr.nodetype.NodeTypeIterator;
 import javax.jcr.nodetype.NodeTypeManager;
 import javax.jcr.nodetype.NodeTypeTemplate;
@@ -131,6 +129,7 @@
     private EffectiveNodeTypeProvider entProvider() {
         return mgrProvider.getEffectiveNodeTypeProvider();
     }
+
     //--------------------------------------------------------------------------
     /**
      * @param name
@@ -205,6 +204,7 @@
     NodeTypeRegistry getNodeTypeRegistry() {
         return ntReg;
     }
+    
     //-------------------------------------------< NodeTypeRegistryListener >---
     /**
      * {@inheritDoc}
@@ -345,6 +345,75 @@
         }
     }
 
+    /**
+     * @see NodeTypeManager#hasNodeType(String)
+     */
+    public boolean hasNodeType(String name) throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-1591");
+    }
+    
+    /**
+     * @see javax.jcr.nodetype.NodeTypeManager#createNodeTypeTemplate()
+     */
+    public NodeTypeTemplate createNodeTypeTemplate()
+            throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-1591");
+    }
+
+    /**
+     * @see NodeTypeManager#createNodeTypeTemplate(javax.jcr.nodetype.NodeTypeDefinition)
+     */
+    public NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition ntd)
+            throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-1591");
+    }
+
+    /**
+     * @see javax.jcr.nodetype.NodeTypeManager#createNodeDefinitionTemplate()
+     */
+    public NodeDefinitionTemplate createNodeDefinitionTemplate()
+            throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-1591");
+    }
+
+    /**
+     * @see javax.jcr.nodetype.NodeTypeManager#createPropertyDefinitionTemplate()
+     */
+    public PropertyDefinitionTemplate createPropertyDefinitionTemplate()
+            throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-1591");
+    }
+
+    /**
+     * @see NodeTypeManager#registerNodeType(javax.jcr.nodetype.NodeTypeDefinition, boolean)
+     */
+    public NodeType registerNodeType(NodeTypeDefinition ntd, boolean allowUpdate)
+            throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-1591");
+    }
+
+    /**
+     * @see NodeTypeManager#registerNodeTypes(javax.jcr.nodetype.NodeTypeDefinition[], boolean)
+     */
+    public NodeTypeIterator registerNodeTypes(NodeTypeDefinition[] ntds, boolean allowUpdate)
+            throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-1591");
+    }
+
+    /**
+     * @see NodeTypeManager#unregisterNodeType(String)
+     */
+    public void unregisterNodeType(String name) throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-1591");
+    }
+
+    /**
+     * @see NodeTypeManager#unregisterNodeTypes(String[])
+     */
+    public void unregisterNodeTypes(String[] names) throws RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-1591");
+    }
+
     //-----------------------------------------------------------< Dumpable >---
     /**
      * {@inheritDoc}
@@ -433,51 +502,4 @@
             e.printStackTrace(ps);
         }
     }
-
-    public NodeDefinitionTemplate createNodeDefinitionTemplate()
-            throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1591");
-    }
-
-    public NodeTypeTemplate createNodeTypeTemplate()
-            throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1591");
-    }
-
-    public NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition ntd)
-            throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1591");
-    }
-
-    public PropertyDefinitionTemplate createPropertyDefinitionTemplate()
-            throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1591");
-    }
-
-    public boolean hasNodeType(String name) throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1591");
-    }
-
-    public NodeType registerNodeType(
-            NodeTypeDefinition ntd, boolean allowUpdate)
-            throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1591");
-    }
-
-    public NodeTypeIterator registerNodeTypes(
-            NodeTypeDefinition[] ntds, boolean allowUpdate)
-            throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1591");
-    }
-
-    public void unregisterNodeType(String name)
-            throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1591");
-    }
-
-    public void unregisterNodeTypes(String[] names)
-            throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1591");
-    }
-
 }



Mime
View raw message