jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r770155 - in /jackrabbit/trunk: jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/
Date Thu, 30 Apr 2009 10:38:17 GMT
Author: reschke
Date: Thu Apr 30 10:38:17 2009
New Revision: 770155

URL: http://svn.apache.org/viewvc?rev=770155&view=rev
Log:
JCR-1591: add missing methods to o.a.j.api.jsr283.nodetype.NodeTypeDefinition, add method
stubs in -core.


Modified:
    jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeTypeDefinition.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefinitionImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeTemplateImpl.java

Modified: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeTypeDefinition.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeTypeDefinition.java?rev=770155&r1=770154&r2=770155&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeTypeDefinition.java
(original)
+++ jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/nodetype/NodeTypeDefinition.java
Thu Apr 30 10:38:17 2009
@@ -111,6 +111,23 @@
     boolean hasOrderableChildNodes();
 
     /**
+     * Returns <code>true</code> if the node type is queryable, meaning that
the
+     * available-query-operators, full-text-searchable and query-orderable
+     * attributes of its property definitions take effect. See {@link
+     * javax.jcr.nodetype.PropertyDefinition#getAvailableQueryOperators()},
+     * {@link javax.jcr.nodetype.PropertyDefinition#isFullTextSearchable()} and
+     * {@link javax.jcr.nodetype.PropertyDefinition#isQueryOrderable()}.
+     * <p/>
+     * If a node type is declared non-queryable then these attributes of its
+     * property definitions have no effect.
+     *
+     * @return a <code>boolean</code>
+     *
+     * @since JCR 2.0
+     */
+    public boolean isQueryable();
+    
+    /**
      * Returns the name of the primary item (one of the child items of the nodes
      * of this node type). If this node has no primary item, then this method
      * returns <code>null</code>. This indicator is used by the method

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefinitionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefinitionImpl.java?rev=770155&r1=770154&r2=770155&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefinitionImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeDefinitionImpl.java
Thu Apr 30 10:38:17 2009
@@ -113,6 +113,11 @@
         return ntd.isMixin();
     }
 
+    public boolean isQueryable() {
+        // TODO 
+        throw new RuntimeException("Not implemented yet, see JCR-1591");
+    }
+
     /**
      * {@inheritDoc}
      */

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java?rev=770155&r1=770154&r2=770155&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeImpl.java
Thu Apr 30 10:38:17 2009
@@ -293,6 +293,11 @@
         return ntd.isMixin();
     }
 
+    public boolean isQueryable() {
+        // TODO 
+        throw new RuntimeException("Not implemented yet, see JCR-1591");
+    }
+
     /**
      * {@inheritDoc}
      */

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeTemplateImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeTemplateImpl.java?rev=770155&r1=770154&r2=770155&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeTemplateImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeTemplateImpl.java
Thu Apr 30 10:38:17 2009
@@ -169,6 +169,11 @@
         return mixin;
     }
 
+    public boolean isQueryable() {
+        // TODO 
+        throw new RuntimeException("Not implemented yet, see JCR-1591");
+    }
+
     /**
      * {@inheritDoc}
      */



Mime
View raw message