diff --git a/source/java/org/alfresco/repo/dictionary/M2PropertyDefinition.java b/source/java/org/alfresco/repo/dictionary/M2PropertyDefinition.java index 7d259bda7a..689d8ee49d 100644 --- a/source/java/org/alfresco/repo/dictionary/M2PropertyDefinition.java +++ b/source/java/org/alfresco/repo/dictionary/M2PropertyDefinition.java @@ -473,24 +473,32 @@ import org.alfresco.util.EqualsHelper; isUpdated = true; } - // check indexed + // + // property indexing - is index enabled -> stored, atomic, tokenized (true, false, both) + // + // + // true + // false + // both + // + // + if (isIndexed() != propDef.isIndexed()) { - isUpdated = true; + isUpdatedIncrementally = true; } - // check stored in index if (isStoredInIndex() != propDef.isStoredInIndex()) { - isUpdated = true; + isUpdatedIncrementally = true; } - // check auto index if (isIndexedAtomically() != propDef.isIndexedAtomically()) { - isUpdated = true; + isUpdatedIncrementally = true; } + // check override if (isOverride() != propDef.isOverride()) { @@ -503,6 +511,7 @@ import org.alfresco.util.EqualsHelper; isUpdated = true; } + // TODO - check prop constraints (inline and referenced) if (isUpdated)