jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1148297 - in /jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel: RepositoryServiceImpl.java util/ItemInfos.java
Date Tue, 19 Jul 2011 12:23:24 GMT
Author: mduerig
Date: Tue Jul 19 12:23:23 2011
New Revision: 1148297

URL: http://svn.apache.org/viewvc?rev=1148297&view=rev
Log:
spi2microkernel (WIP)
- fix node type defs for jcr:primaryType and jcr:mixinTypes

Modified:
    jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/RepositoryServiceImpl.java
    jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/ItemInfos.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=1148297&r1=1148296&r2=1148297&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
Tue Jul 19 12:23:23 2011
@@ -498,7 +498,7 @@ public class RepositoryServiceImpl exten
             try {
                 StringBuilder sb = new StringBuilder();
                 JsonBuilder.create(sb)
-                    .value(Paths.nameToString(JCR_PRIMARYTYPE), nodetypeName.toString())
+                    .value(Paths.nameToString(JCR_PRIMARYTYPE), "7:" + nodetypeName.toString())
 // fixme factor type encoding out
                     .build();
 
                 jsop.append('+').append(target(parentId, nodeName)).append(" : ").append(sb.toString()).append('\n');

Modified: jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/ItemInfos.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/ItemInfos.java?rev=1148297&r1=1148296&r2=1148297&view=diff
==============================================================================
--- jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/ItemInfos.java
(original)
+++ jackrabbit/sandbox/spi2microkernel/src/main/java/org/apache/jackrabbit/spi2microkernel/util/ItemInfos.java
Tue Jul 19 12:23:23 2011
@@ -277,6 +277,7 @@ public final class ItemInfos {
                     // xxx workaround for JCR-2992: set to string. This seems to be accepted
by clients. 
                     propertyInfoBuilder.setType(PropertyType.STRING);
                 }
+                propertyInfoBuilder.setMultivalued(true);
                 propertyInfoBuilder.build();
                 propertyInfoBuilder = null;
                 return !infoListener.done();



Mime
View raw message