Fix for ALF-10797 - "Recently added" and "Recently modified" sections in "My content" page are empty

- addition of index control aspect to surf-config objects - config xml files no longer indexed at all
 - refactoring of My Profile user contents fts-alfresco queries to search specific known containers only rather than all

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31288 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2011-10-17 14:48:17 +00:00
parent b8e734f836
commit 38d03ca5ae

View File

@@ -553,6 +553,9 @@ public class AVMToADMRemoteStorePatch extends AbstractPatch
// create new node and perform writer content copy of the content from the AVM to the DM store // create new node and perform writer content copy of the content from the AVM to the DM store
FileInfo fileInfo = fileFolderService.create( FileInfo fileInfo = fileFolderService.create(
parentFolder, avmNode.getName(), ContentModel.TYPE_CONTENT); parentFolder, avmNode.getName(), ContentModel.TYPE_CONTENT);
Map<QName, Serializable> aspectProperties = new HashMap<QName, Serializable>(1, 1.0f);
aspectProperties.put(ContentModel.PROP_IS_INDEXED, false);
nodeService.addAspect(fileInfo.getNodeRef(), ContentModel.ASPECT_INDEX_CONTROL, aspectProperties);
ContentWriter writer = contentService.getWriter( ContentWriter writer = contentService.getWriter(
fileInfo.getNodeRef(), ContentModel.PROP_CONTENT, true); fileInfo.getNodeRef(), ContentModel.PROP_CONTENT, true);
writer.putContent(avmService.getContentReader(-1, avmNode.getPath())); writer.putContent(avmService.getContentReader(-1, avmNode.getPath()));
@@ -567,6 +570,9 @@ public class AVMToADMRemoteStorePatch extends AbstractPatch
// create new node and perform writer content copy of the content from the AVM to the DM store // create new node and perform writer content copy of the content from the AVM to the DM store
FileInfo fileInfo = fileFolderService.create( FileInfo fileInfo = fileFolderService.create(
parentFolder, avmNode.getName(), ContentModel.TYPE_CONTENT); parentFolder, avmNode.getName(), ContentModel.TYPE_CONTENT);
Map<QName, Serializable> aspectProperties = new HashMap<QName, Serializable>(1, 1.0f);
aspectProperties.put(ContentModel.PROP_IS_INDEXED, false);
nodeService.addAspect(fileInfo.getNodeRef(), ContentModel.ASPECT_INDEX_CONTROL, aspectProperties);
ContentWriter writer = contentService.getWriter( ContentWriter writer = contentService.getWriter(
fileInfo.getNodeRef(), ContentModel.PROP_CONTENT, true); fileInfo.getNodeRef(), ContentModel.PROP_CONTENT, true);
writer.putContent(avmService.getContentReader(-1, avmNode.getPath())); writer.putContent(avmService.getContentReader(-1, avmNode.getPath()));