Removed "on demand" addition of TITLED and UIFACETS aspects to files and folders during display of details dialog (now that import speed is "acceptable"

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4001 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-10-03 07:58:08 +00:00
parent 5483afc279
commit 1c6e3a68f0
2 changed files with 7 additions and 29 deletions

View File

@@ -436,24 +436,6 @@ public class AVMBrowseBean implements IContextListener
public void setAVMNodeDescriptor(AVMNodeDescriptor avmRef)
{
AVMNode avmNode = new AVMNode(avmRef);
// TODO: remove this once we can add the aspect quickly in the ImportWebsiteDialog!
if (avmNode.isDirectory())
{
if (this.nodeService.hasAspect(avmNode.getNodeRef(), ContentModel.ASPECT_UIFACETS) == false)
{
this.nodeService.addAspect(avmNode.getNodeRef(), ContentModel.ASPECT_UIFACETS, null);
}
}
else
{
if (this.nodeService.hasAspect(avmNode.getNodeRef(), ContentModel.ASPECT_TITLED) == false)
{
// add titled aspect for the read/edit properties screens
Map<QName, Serializable> titledProps = new HashMap<QName, Serializable>(1, 1.0f);
titledProps.put(ContentModel.PROP_TITLE, avmNode.getName());
this.nodeService.addAspect(avmNode.getNodeRef(), ContentModel.ASPECT_TITLED, titledProps);
}
}
this.avmNode = avmNode;
}