Fix to web-client performance issue in BrowseBean - approx 10% improvement for general browsing and searching page rendering

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3044 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-06-06 14:51:29 +00:00
parent 1066f2e6d2
commit a5d34f6c0d

View File

@@ -565,7 +565,7 @@ public class BrowseBean implements IContextListener
this.dictionaryService.isSubClass(type, ContentModel.TYPE_SYSTEM_FOLDER) == false) this.dictionaryService.isSubClass(type, ContentModel.TYPE_SYSTEM_FOLDER) == false)
{ {
// create our Node representation // create our Node representation
node = new MapNode(nodeRef, this.nodeService, false); node = new MapNode(nodeRef, this.nodeService, true);
node.addPropertyResolver("icon", this.resolverSpaceIcon); node.addPropertyResolver("icon", this.resolverSpaceIcon);
node.addPropertyResolver("smallIcon", this.resolverSmallIcon); node.addPropertyResolver("smallIcon", this.resolverSmallIcon);
@@ -575,7 +575,7 @@ public class BrowseBean implements IContextListener
else if (this.dictionaryService.isSubClass(type, ContentModel.TYPE_CONTENT)) else if (this.dictionaryService.isSubClass(type, ContentModel.TYPE_CONTENT))
{ {
// create our Node representation // create our Node representation
node = new MapNode(nodeRef, this.nodeService, false); node = new MapNode(nodeRef, this.nodeService, true);
setupCommonBindingProperties(node); setupCommonBindingProperties(node);
this.contentNodes.add(node); this.contentNodes.add(node);
@@ -584,7 +584,7 @@ public class BrowseBean implements IContextListener
else if (ContentModel.TYPE_FILELINK.equals(type)) else if (ContentModel.TYPE_FILELINK.equals(type))
{ {
// create our File Link Node representation // create our File Link Node representation
node = new MapNode(nodeRef, this.nodeService, false); node = new MapNode(nodeRef, this.nodeService, true);
node.addPropertyResolver("url", this.resolverLinkUrl); node.addPropertyResolver("url", this.resolverLinkUrl);
node.addPropertyResolver("webdavUrl", this.resolverLinkWebdavUrl); node.addPropertyResolver("webdavUrl", this.resolverLinkWebdavUrl);
node.addPropertyResolver("cifsPath", this.resolverLinkCifsPath); node.addPropertyResolver("cifsPath", this.resolverLinkCifsPath);
@@ -597,7 +597,7 @@ public class BrowseBean implements IContextListener
else if (ContentModel.TYPE_FOLDERLINK.equals(type)) else if (ContentModel.TYPE_FOLDERLINK.equals(type))
{ {
// create our Folder Link Node representation // create our Folder Link Node representation
node = new MapNode(nodeRef, this.nodeService, false); node = new MapNode(nodeRef, this.nodeService, true);
node.addPropertyResolver("icon", this.resolverSpaceIcon); node.addPropertyResolver("icon", this.resolverSpaceIcon);
node.addPropertyResolver("smallIcon", this.resolverSmallIcon); node.addPropertyResolver("smallIcon", this.resolverSmallIcon);