mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user