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:
@@ -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);
|
||||
}
|
Reference in New Issue
Block a user