mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix to DictionaryRepositoryBootstrap - ignore working copy of Dictionary Model
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6777 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -262,17 +262,22 @@ public class DictionaryRepositoryBootstrap extends AbstractLifecycleBean impleme
|
|||||||
|
|
||||||
for (NodeRef dictionaryModel : nodeRefs)
|
for (NodeRef dictionaryModel : nodeRefs)
|
||||||
{
|
{
|
||||||
boolean isActive = ((Boolean)nodeService.getProperty(dictionaryModel, ContentModel.PROP_MODEL_ACTIVE)).booleanValue();
|
// Ignore if the node is a working copy or if its inactive
|
||||||
if (isActive)
|
if (nodeService.hasAspect(dictionaryModel, ContentModel.ASPECT_WORKING_COPY) == false)
|
||||||
{
|
{
|
||||||
M2Model model = createM2Model(dictionaryModel);
|
Boolean isActive = (Boolean)nodeService.getProperty(dictionaryModel, ContentModel.PROP_MODEL_ACTIVE);
|
||||||
if (model != null)
|
|
||||||
{
|
if ((isActive != null) && (isActive.booleanValue() == true))
|
||||||
for (M2Namespace namespace : model.getNamespaces())
|
{
|
||||||
{
|
M2Model model = createM2Model(dictionaryModel);
|
||||||
modelMap.put(namespace.getUri(), model);
|
if (model != null)
|
||||||
}
|
{
|
||||||
}
|
for (M2Namespace namespace : model.getNamespaces())
|
||||||
|
{
|
||||||
|
modelMap.put(namespace.getUri(), model);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user