jackrabbit-commits mailing list archives

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

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

- NodeTypeManager#hasNodeType(String)

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=772895&r1=772894&r2=772895&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:56:47 2009
@@ -349,7 +349,14 @@
      * @see NodeTypeManager#hasNodeType(String)
      */
     public boolean hasNodeType(String name) throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1591");
+        try {
+            Name qName = resolver().getQName(name);
+            return hasNodeType(qName);
+        } catch (NamespaceException e) {
+            return false;
+        } catch (NameException e) {
+            return false;
+        }
     }
     
     /**



Mime
View raw message