Mod time and last modifier are properly set.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3891 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-22 15:20:24 +00:00
parent 37edacd63c
commit 4fb2dd6ebc

View File

@@ -463,19 +463,6 @@ public class AVMStoreImpl implements AVMStore, Serializable
{
ContentWriter writer = getWriter(path);
return writer.getContentOutputStream();
/*
Lookup lPath = lookup(-1, path, true);
AVMNode node = lPath.getCurrentNode();
if (node.getType() != AVMNodeType.PLAIN_FILE &&
node.getType() != AVMNodeType.LAYERED_FILE)
{
throw new AVMWrongTypeException("Not a file: " + path);
}
FileNode file = (FileNode)node;
FileContent content = file.getContentForWrite();
file.updateModTime();
return content.getOutputStream();
*/
}
/**
@@ -1121,6 +1108,7 @@ public class AVMStoreImpl implements AVMStore, Serializable
{
throw new AVMWrongTypeException("File Expected.");
}
node.updateModTime();
return ((FileNode)node).getContentData(lPath);
}