jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1157158 - /jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Date Fri, 12 Aug 2011 15:35:15 GMT
Author: mduerig
Date: Fri Aug 12 15:35:15 2011
New Revision: 1157158

URL: http://svn.apache.org/viewvc?rev=1157158&view=rev
Log:
spi2microkernel (WIP)
- adjust descriptors

Modified:
    jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java

Modified: jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java?rev=1157158&r1=1157157&r2=1157158&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
Fri Aug 12 15:35:15 2011
@@ -84,14 +84,36 @@ import java.util.concurrent.ConcurrentHa
 
 import static javax.jcr.Repository.IDENTIFIER_STABILITY;
 import static javax.jcr.Repository.IDENTIFIER_STABILITY_METHOD_DURATION;
+import static javax.jcr.Repository.LEVEL_1_SUPPORTED;
 import static javax.jcr.Repository.LEVEL_2_SUPPORTED;
 import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_SAME_NAME_SIBLINGS_SUPPORTED;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_PROPERTY_TYPES;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_PRIMARY_ITEM_NAME_SUPPORTED;
 import static javax.jcr.Repository.OPTION_NODE_TYPE_MANAGEMENT_SUPPORTED;
 import static javax.jcr.Repository.OPTION_OBSERVATION_SUPPORTED;
 import static javax.jcr.Repository.OPTION_UPDATE_MIXIN_NODE_TYPES_SUPPORTED;
 import static javax.jcr.Repository.OPTION_WORKSPACE_MANAGEMENT_SUPPORTED;
+import static javax.jcr.Repository.QUERY_XPATH_DOC_ORDER;
 import static javax.jcr.Repository.SPEC_NAME_DESC;
 import static javax.jcr.Repository.WRITE_SUPPORTED;
+import static javax.jcr.Repository.SPEC_VERSION_DESC;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_AUTOCREATED_DEFINITIONS_SUPPORTED;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_MULTIVALUED_PROPERTIES_SUPPORTED;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_ORDERABLE_CHILD_NODES_SUPPORTED;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_RESIDUAL_DEFINITIONS_SUPPORTED;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_OVERRIDES_SUPPORTED;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_INHERITANCE;
+import static javax.jcr.Repository.REP_NAME_DESC;
+import static javax.jcr.Repository.OPTION_BASELINES_SUPPORTED;
+import static javax.jcr.Repository.OPTION_ACTIVITIES_SUPPORTED;
+import static javax.jcr.Repository.OPTION_NODE_AND_PROPERTY_WITH_SAME_NAME_SUPPORTED;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_MULTIPLE_BINARY_PROPERTIES_SUPPORTED;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_UPDATE_IN_USE_SUPORTED;
+import static javax.jcr.Repository.NODE_TYPE_MANAGEMENT_VALUE_CONSTRAINTS_SUPPORTED;
+import static javax.jcr.Repository.QUERY_XPATH_POS_INDEX;
+import static javax.jcr.Repository.OPTION_QUERY_SQL_SUPPORTED;
+import static javax.jcr.Repository.REP_VENDOR_URL_DESC;
+import static javax.jcr.Repository.REP_VENDOR_DESC;
 import static org.apache.jackrabbit.spi.commons.name.NameConstants.JCR_CREATED;
 import static org.apache.jackrabbit.spi.commons.name.NameConstants.JCR_CREATEDBY;
 import static org.apache.jackrabbit.spi.commons.name.NameConstants.JCR_MIXINTYPES;
@@ -125,6 +147,10 @@ public class RepositoryServiceImpl exten
 
         try {
             put(SPEC_NAME_DESC, new QValue[]{Values.objectToValue("Content Repository for
Java Technology API")});
+            put(SPEC_VERSION_DESC, new QValue[]{Values.objectToValue("2.0")});
+            put(REP_NAME_DESC, new QValue[]{Values.objectToValue("Jackrabbit 3 Microkernel
prototype")});
+            put(REP_VENDOR_URL_DESC, new QValue[]{Values.objectToValue("http://www.apache.org/")});
+            put(REP_VENDOR_DESC, new QValue[]{Values.objectToValue("Apache Software Foundation")});
             put(NODE_TYPE_MANAGEMENT_SAME_NAME_SIBLINGS_SUPPORTED, FALSE);
             put(OPTION_WORKSPACE_MANAGEMENT_SUPPORTED, TRUE);
             put(OPTION_OBSERVATION_SUPPORTED, TRUE);
@@ -132,7 +158,25 @@ public class RepositoryServiceImpl exten
             put(IDENTIFIER_STABILITY, new QValue[] {Values.objectToValue(IDENTIFIER_STABILITY_METHOD_DURATION)});
             put(OPTION_UPDATE_MIXIN_NODE_TYPES_SUPPORTED, TRUE);
             put(OPTION_NODE_TYPE_MANAGEMENT_SUPPORTED, TRUE);
+            put(NODE_TYPE_MANAGEMENT_AUTOCREATED_DEFINITIONS_SUPPORTED, TRUE);
+            put(NODE_TYPE_MANAGEMENT_RESIDUAL_DEFINITIONS_SUPPORTED, TRUE);
+            put(NODE_TYPE_MANAGEMENT_PROPERTY_TYPES, TRUE);
+            put(NODE_TYPE_MANAGEMENT_PRIMARY_ITEM_NAME_SUPPORTED, TRUE);
+            put(NODE_TYPE_MANAGEMENT_MULTIVALUED_PROPERTIES_SUPPORTED, TRUE);
+            put(NODE_TYPE_MANAGEMENT_UPDATE_IN_USE_SUPORTED, TRUE);
+            put(NODE_TYPE_MANAGEMENT_MULTIPLE_BINARY_PROPERTIES_SUPPORTED, TRUE);
+            put(NODE_TYPE_MANAGEMENT_VALUE_CONSTRAINTS_SUPPORTED, TRUE);
+            put(NODE_TYPE_MANAGEMENT_ORDERABLE_CHILD_NODES_SUPPORTED, TRUE);
+            put(NODE_TYPE_MANAGEMENT_OVERRIDES_SUPPORTED, TRUE);
+            put(NODE_TYPE_MANAGEMENT_INHERITANCE, TRUE);
+            put(OPTION_BASELINES_SUPPORTED, FALSE);
+            put(OPTION_ACTIVITIES_SUPPORTED, FALSE);
+            put(OPTION_NODE_AND_PROPERTY_WITH_SAME_NAME_SUPPORTED, TRUE);
+            put(QUERY_XPATH_DOC_ORDER, FALSE);
+            put(QUERY_XPATH_POS_INDEX, FALSE);
+            put(LEVEL_1_SUPPORTED, TRUE);
             put(LEVEL_2_SUPPORTED, TRUE);
+            put(OPTION_QUERY_SQL_SUPPORTED, FALSE);
         }
         catch (RepositoryException e) {
             throw new IllegalStateException(e); // should not happen 



Mime
View raw message