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
This commit is contained in:
Jan Vonka
2009-09-28 09:18:11 +00:00
parent 084792f81d
commit b447e3b9f2

View File

@@ -473,24 +473,32 @@ import org.alfresco.util.EqualsHelper;
isUpdated = true; isUpdated = true;
} }
// check indexed //
// property indexing - is index enabled -> stored, atomic, tokenized (true, false, both)
//
// <index enabled="true">
// <atomic>true</atomic>
// <stored>false</stored>
// <tokenised>both</tokenised>
// </index>
//
if (isIndexed() != propDef.isIndexed()) if (isIndexed() != propDef.isIndexed())
{ {
isUpdated = true; isUpdatedIncrementally = true;
} }
// check stored in index
if (isStoredInIndex() != propDef.isStoredInIndex()) if (isStoredInIndex() != propDef.isStoredInIndex())
{ {
isUpdated = true; isUpdatedIncrementally = true;
} }
// check auto index
if (isIndexedAtomically() != propDef.isIndexedAtomically()) if (isIndexedAtomically() != propDef.isIndexedAtomically())
{ {
isUpdated = true; isUpdatedIncrementally = true;
} }
// check override // check override
if (isOverride() != propDef.isOverride()) if (isOverride() != propDef.isOverride())
{ {
@@ -503,6 +511,7 @@ import org.alfresco.util.EqualsHelper;
isUpdated = true; isUpdated = true;
} }
// TODO - check prop constraints (inline and referenced) // TODO - check prop constraints (inline and referenced)
if (isUpdated) if (isUpdated)