Fix for ALF-11658 - "surf-config" folders are visible in search results

- the "surf-config" folder now has the IsIndexed=false property applied during creation for both new sites and the 3.X->4.0 migration patch

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32751 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2011-12-14 10:29:20 +00:00
parent f8d8ccdd0a
commit 24a84a82d6

View File

@@ -624,6 +624,9 @@ public class AVMToADMRemoteStorePatch extends AbstractPatch
ChildAssociationRef ref = this.nodeService.createNode(
rootRef, ContentModel.ASSOC_CONTAINS, assocQName, ContentModel.TYPE_FOLDER, properties);
surfConfigRef = ref.getChildRef();
Map<QName, Serializable> aspectProperties = new HashMap<QName, Serializable>(1, 1.0f);
aspectProperties.put(ContentModel.PROP_IS_INDEXED, false);
this.nodeService.addAspect(surfConfigRef, ContentModel.ASPECT_INDEX_CONTROL, aspectProperties);
}
catch (DuplicateChildNodeNameException dupErr)
{