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:
Britt Park
2006-08-10 21:50:34 +00:00
parent 9a2a67605c
commit 06df2021c8
28 changed files with 744 additions and 865 deletions

View File

@@ -16,6 +16,8 @@
*/
package org.alfresco.repo.avm;
import org.alfresco.service.cmr.repository.ContentData;
/**
* Interface for the generic idea of a file.
* @author britt
@@ -23,15 +25,15 @@ package org.alfresco.repo.avm;
interface FileNode extends AVMNode
{
/**
* Get the content object associated with this node, for reading.
* @return A FileContent object.
* Set the ContentData for this file.
* @param contentData The value to set.
*/
public FileContent getContentForRead();
public void setContentData(ContentData contentData);
/**
* Get the content object for writing. This will do COW
* as needed.
* @return A FileContent object.
* Get the ContentData for this file.
* @param lPath The Lookup used to get here.
* @return The ContentData object for this file.
*/
public FileContent getContentForWrite();
public ContentData getContentData(Lookup lPath);
}