jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r770217 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype: NodeTypeTemplateImpl.java PropertyDefinitionImpl.java PropertyDefinitionTemplateImpl.java
Date Thu, 30 Apr 2009 13:30:18 GMT
Author: jukka
Date: Thu Apr 30 13:30:17 2009
New Revision: 770217

URL: http://svn.apache.org/viewvc?rev=770217&view=rev
Log:
JCR-2091: Searchability settings in PropertyDefinition

Add hardcoded settings

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/NodeTypeTemplateImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/PropertyDefinitionImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/PropertyDefinitionTemplateImpl.java

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=770217&r1=770216&r2=770217&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 13:30:17 2009
@@ -140,6 +140,10 @@
         return nodeDefinitionTemplates;
     }
 
+    public void setQueryable(boolean queryable) {
+        // ignored, TODO JCR-2091
+    }
+
     //---------------------------------------------------< NodeTypeDefinition >
     /**
      * {@inheritDoc}
@@ -211,4 +215,5 @@
                     new NodeDefinition[nodeDefinitionTemplates.size()]);
         }
     }
+
 }

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/PropertyDefinitionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/PropertyDefinitionImpl.java?rev=770217&r1=770216&r2=770217&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/PropertyDefinitionImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/PropertyDefinitionImpl.java
Thu Apr 30 13:30:17 2009
@@ -24,6 +24,7 @@
 import javax.jcr.RepositoryException;
 import javax.jcr.Value;
 import javax.jcr.nodetype.PropertyDefinition;
+import javax.jcr.query.qom.QueryObjectModelConstants;
 
 /**
  * This class implements the <code>PropertyDefinition</code> interface.
@@ -113,5 +114,26 @@
     public boolean isMultiple() {
         return ((PropDef) itemDef).isMultiple();
     }
-}
 
+    public String[] getAvailableQueryOperators() {
+        // TODO: JCR-2091
+        return new String[] {
+                QueryObjectModelConstants.JCR_OPERATOR_EQUAL_TO,
+                QueryObjectModelConstants.JCR_OPERATOR_GREATER_THAN,
+                QueryObjectModelConstants.JCR_OPERATOR_GREATER_THAN_OR_EQUAL_TO,
+                QueryObjectModelConstants.JCR_OPERATOR_LESS_THAN,
+                QueryObjectModelConstants.JCR_OPERATOR_LESS_THAN_OR_EQUAL_TO,
+                QueryObjectModelConstants.JCR_OPERATOR_LIKE,
+                QueryObjectModelConstants.JCR_OPERATOR_NOT_EQUAL_TO
+        };
+    }
+
+    public boolean isFullTextSearchable() {
+        return true; // TODO: JCR-2091
+    }
+
+    public boolean isQueryOrderable() {
+        return true; // TODO: JCR-2091
+    }
+
+}

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/PropertyDefinitionTemplateImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/PropertyDefinitionTemplateImpl.java?rev=770217&r1=770216&r2=770217&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/PropertyDefinitionTemplateImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/nodetype/PropertyDefinitionTemplateImpl.java
Thu Apr 30 13:30:17 2009
@@ -21,6 +21,7 @@
 import javax.jcr.PropertyType;
 import javax.jcr.Value;
 import javax.jcr.nodetype.PropertyDefinition;
+import javax.jcr.query.qom.QueryObjectModelConstants;
 
 /**
  * A <code>PropertyDefinitionTemplateImpl</code> ...
@@ -83,6 +84,18 @@
         this.multiple = multiple;
     }
 
+    public void setAvailablrQueryOperators(String[] operators) {
+        // ignored, TODO JCR-2091
+    }
+
+    public void setFullTextSearchable(boolean searchable) {
+        // ignored, TODO JCR-2091
+    }
+
+    public void setQueryOrderable(boolean orderable) {
+        // ignored, TODO JCR-2091
+    }
+
     //---------------------------------------------------< PropertyDefinition >
     /**
      * {@inheritDoc}
@@ -111,4 +124,25 @@
     public boolean isMultiple() {
         return multiple;
     }
+
+    public String[] getAvailableQueryOperators() {
+        // TODO: JCR-2091
+        return new String[] {
+                QueryObjectModelConstants.JCR_OPERATOR_EQUAL_TO,
+                QueryObjectModelConstants.JCR_OPERATOR_GREATER_THAN,
+                QueryObjectModelConstants.JCR_OPERATOR_GREATER_THAN_OR_EQUAL_TO,
+                QueryObjectModelConstants.JCR_OPERATOR_LESS_THAN,
+                QueryObjectModelConstants.JCR_OPERATOR_LESS_THAN_OR_EQUAL_TO,
+                QueryObjectModelConstants.JCR_OPERATOR_LIKE,
+                QueryObjectModelConstants.JCR_OPERATOR_NOT_EQUAL_TO
+        };
+    }
+
+    public boolean isFullTextSearchable() {
+        return true; // TODO: JCR-2091
+    }
+
+    public boolean isQueryOrderable() {
+        return true; // TODO: JCR-2091
+    }
 }



Mime
View raw message