OrphanReaper now cleans up content as well.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3678 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-04 14:14:39 +00:00
parent c03b967e71
commit 8c2ad19b2f
2 changed files with 14 additions and 22 deletions

View File

@@ -316,18 +316,6 @@ public class AVMStoreImpl implements AVMStore, Serializable
throw new AVMNotFoundException(path + " has no content.");
}
return reader.getContentInputStream();
/*
Lookup lPath = lookup(version, path, false);
AVMNode node = lPath.getCurrentNode();
if (node.getType() != AVMNodeType.PLAIN_FILE &&
node.getType() != AVMNodeType.LAYERED_FILE)
{
throw new AVMExistsException("Not a file: " + path + " r " + version);
}
FileNode file = (FileNode)node;
FileContent content = file.getContentForRead();
return content.getInputStream();
*/
}
/**
@@ -352,9 +340,6 @@ public class AVMStoreImpl implements AVMStore, Serializable
NodeRef nodeRef = AVMNodeConverter.ToNodeRef(-1, fName + ":" + path);
ContentWriter writer =
AVMContext.fgInstance.getContentService().getWriter(nodeRef, ContentModel.PROP_CONTENT, true);
// TODO This can't perform very well. What this gets down to
// is that integration with ContentService is awkward.
// setContentData(path, writer.getContentData());
return writer;
}