chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1509552 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
Date Fri, 02 Aug 2013 06:30:32 GMT
Author: jens
Date: Fri Aug  2 06:30:32 2013
New Revision: 1509552

URL: http://svn.apache.org/r1509552
Log:
Fix missing document type properties in createChild...

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java?rev=1509552&r1=1509551&r2=1509552&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeDefinitionFactory.java
Fri Aug  2 06:30:32 2013
@@ -262,8 +262,8 @@ public class TypeDefinitionFactory {
         documentType.setIsVersionable(false);
         documentType.setContentStreamAllowed(ContentStreamAllowed.ALLOWED);
 
-        addBasePropertyDefinitions(documentType, cmisVersion, parentId == null);
-        addDocumentPropertyDefinitions(documentType, cmisVersion, parentId == null);
+        addBasePropertyDefinitions(documentType, cmisVersion, parentId != null);
+        addDocumentPropertyDefinitions(documentType, cmisVersion, parentId != null);
 
         return documentType;
     }
@@ -292,6 +292,8 @@ public class TypeDefinitionFactory {
         documentType.setQueryName(null);
         documentType.setId(null);
         documentType.setTypeMutability(parentTypeDefinition.getTypeMutability());
+        documentType.setIsVersionable(parentTypeDefinition.isVersionable());
+        documentType.setContentStreamAllowed(parentTypeDefinition.getContentStreamAllowed());
 
         copyPropertyDefinitions(parentTypeDefinition, documentType, true);
 



Mime
View raw message