jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1394092 - in /jackrabbit/oak/trunk/oak-core/src/main: java/org/apache/jackrabbit/oak/plugins/type/InitialContent.java resources/org/apache/jackrabbit/oak/plugins/type/builtin_nodetypes.cnd
Date Thu, 04 Oct 2012 14:33:49 GMT
Author: alexparvulescu
Date: Thu Oct  4 14:33:49 2012
New Revision: 1394092

URL: http://svn.apache.org/viewvc?rev=1394092&view=rev
Log:
OAK-365 Add Query Index definition node type

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/InitialContent.java
    jackrabbit/oak/trunk/oak-core/src/main/resources/org/apache/jackrabbit/oak/plugins/type/builtin_nodetypes.cnd

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/InitialContent.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/InitialContent.java?rev=1394092&r1=1394091&r2=1394092&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/InitialContent.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/type/InitialContent.java
Thu Oct  4 14:33:49 2012
@@ -54,7 +54,7 @@ public class InitialContent extends Defa
         if (!root.hasChildNode("oak:index")) {
             // FIXME: user-mgt related unique properties (rep:authorizableId, rep:principalName)
are implementation detail and not generic for repo
             // FIXME: rep:principalName only needs to be unique if defined with user/group
nodes -> add defining nt-info to uniqueness constraint otherwise ac-editing will fail.
-            mk.commit("/", "+\"oak:index\":{\"jcr:uuid\":{\"unique\":true},\"rep:authorizableId\":{\"unique\":true},\"rep:principalName\":{\"unique\":true}}",
null, null);
+            mk.commit("/", "+\"oak:index\":{\"jcr:uuid\":{\"jcr:primaryType\":\"nam:nt:queryIndexDefinition\",
\"type\":\"property\", \"unique\":true},\"rep:authorizableId\":{\"jcr:primaryType\":\"nam:nt:queryIndexDefinition\",
\"type\":\"property\",\"unique\":true},\"rep:principalName\":{\"jcr:primaryType\":\"nam:nt:queryIndexDefinition\",
\"type\":\"property\",\"unique\":true}}", null, null);
         }
 
         BuiltInNodeTypes.register(createRoot(mk));

Modified: jackrabbit/oak/trunk/oak-core/src/main/resources/org/apache/jackrabbit/oak/plugins/type/builtin_nodetypes.cnd
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/resources/org/apache/jackrabbit/oak/plugins/type/builtin_nodetypes.cnd?rev=1394092&r1=1394091&r2=1394092&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/resources/org/apache/jackrabbit/oak/plugins/type/builtin_nodetypes.cnd
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/resources/org/apache/jackrabbit/oak/plugins/type/builtin_nodetypes.cnd
Thu Oct  4 14:33:49 2012
@@ -464,6 +464,15 @@
   - jcr:statement (STRING)
   - jcr:language (STRING)
 
+/**
+ * Index definitions storage
+ *
+ * @since oak 0.6
+ */
+[nt:queryIndexDefinition] > nt:unstructured
+  - type (STRING) mandatory
+  + reindex (BOOLEAN)
+
 //------------------------------------------------------------------------------
 // L I F E C Y C L E   M A N A G E M E N T
 //------------------------------------------------------------------------------



Mime
View raw message