diff --git a/config/alfresco/content-services-context.xml b/config/alfresco/content-services-context.xml
index e321bf7507..bb74a675bf 100644
--- a/config/alfresco/content-services-context.xml
+++ b/config/alfresco/content-services-context.xml
@@ -520,6 +520,22 @@
+
+
+
+
+
+
+
+
+
+
+ text/plain
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/plain
+ application/pdf
+
+
+
diff --git a/source/java/org/alfresco/repo/dictionary/DictionaryModelType.java b/source/java/org/alfresco/repo/dictionary/DictionaryModelType.java
index 93d0e84d20..870e819ccf 100644
--- a/source/java/org/alfresco/repo/dictionary/DictionaryModelType.java
+++ b/source/java/org/alfresco/repo/dictionary/DictionaryModelType.java
@@ -140,6 +140,8 @@ public class DictionaryModelType implements ContentServicePolicies.OnContentUpda
private List storeUrls; // stores against which model deletes should be validated
+ /** Validation marker */
+ private boolean doValidation = true;
/**
* Set the dictionary DAO
@@ -239,6 +241,10 @@ public class DictionaryModelType implements ContentServicePolicies.OnContentUpda
this.storeUrls = storeUrls;
}
+ public void setDoValidation(boolean doValidation)
+ {
+ this.doValidation = doValidation;
+ }
/**
* The initialise method
@@ -676,7 +682,10 @@ public class DictionaryModelType implements ContentServicePolicies.OnContentUpda
nodeService.setProperties(nodeRef, props);
// Validate model against dictionary - could be new, unchanged or updated
- validateModel(modelDefinition.getName(), m2Model, compiledModel);
+ if (doValidation == true)
+ {
+ validateModel(modelDefinition.getName(), m2Model, compiledModel);
+ }
// invalidate - to force lazy re-init
//dictionaryDAO.destroy();