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 4d0c2ac857
commit 5a4a496e8d

View File

@@ -766,6 +766,8 @@ public class ADMRemoteStore extends BaseRemoteStore
* Return the "surf-config" noderef under the given root. Optionally create the
* folder if it does not exist yet. NOTE: must only be set to create if within a
* WRITE transaction context.
* <p>
* Adds the "isIndexed = false" property to the surf-config folder node.
*
* @param rootRef Root node reference where the "surf-config" folder should live
* @param create True to create the folder if missing, false otherwise
@@ -786,6 +788,9 @@ public class ADMRemoteStore extends BaseRemoteStore
ChildAssociationRef ref = this.unprotNodeService.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.unprotNodeService.addAspect(surfConfigRef, ContentModel.ASPECT_INDEX_CONTROL, aspectProperties);
}
return surfConfigRef;
}