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@16552 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2009-09-28 10:29:27 +00:00
parent b447e3b9f2
commit b7570baf41

View File

@@ -498,6 +498,11 @@ import org.alfresco.util.EqualsHelper;
isUpdatedIncrementally = true;
}
if (! EqualsHelper.nullSafeEquals(getIndexTokenisationMode().toString(), propDef.getIndexTokenisationMode().toString(), false))
{
isUpdatedIncrementally = true;
}
// check override
if (isOverride() != propDef.isOverride())
@@ -505,13 +510,6 @@ import org.alfresco.util.EqualsHelper;
isUpdated = true;
}
// check index tokenisation mode
if (! EqualsHelper.nullSafeEquals(getIndexTokenisationMode().toString(), propDef.getIndexTokenisationMode().toString(), false))
{
isUpdated = true;
}
// TODO - check prop constraints (inline and referenced)
if (isUpdated)