From b447e3b9f28ea84ff16af9342e44ed60ea076644 Mon Sep 17 00:00:00 2001 From: Jan Vonka Date: Mon, 28 Sep 2009 09:18:11 +0000 Subject: [PATCH] Dynamic models - allow incremental updates to property indexing definition (note: does not change existing index) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16548 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../repo/dictionary/M2PropertyDefinition.java | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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)