mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
This changes the AVM service to use ContentService for storage. This gives us,
in theory, AVM working underneath (more or less) NodeService and ContentService. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3481 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -295,17 +295,7 @@ class OrphanReaper implements Runnable
|
||||
}
|
||||
AVMContext.fgInstance.fAVMNodeDAO.delete(node);
|
||||
}
|
||||
else if (node.getType() == AVMNodeType.PLAIN_FILE)
|
||||
{
|
||||
AVMContext.fgInstance.fAVMNodeDAO.delete(node);
|
||||
// FileContent should be purged if nobody else references it.
|
||||
FileContent content = ((PlainFileNode)node).getContent();
|
||||
if (content.getRefCount() == 1)
|
||||
{
|
||||
content.delete();
|
||||
AVMContext.fgInstance.fFileContentDAO.delete(content);
|
||||
}
|
||||
}
|
||||
// TODO Need to properly clean up deleted files.
|
||||
else
|
||||
{
|
||||
AVMContext.fgInstance.fAVMNodeDAO.delete(node);
|
||||
|
Reference in New Issue
Block a user