mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added getContentReader and createContentWriter to AVMService. Also added convenience
getDirectoryListingArray() calls which return listings as arrays instead of Maps. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4377 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,8 @@ import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
|
||||
import org.alfresco.service.cmr.avm.AVMStoreDescriptor;
|
||||
import org.alfresco.service.cmr.avm.VersionDescriptor;
|
||||
import org.alfresco.service.cmr.repository.ContentData;
|
||||
import org.alfresco.service.cmr.repository.ContentReader;
|
||||
import org.alfresco.service.cmr.repository.ContentWriter;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
/**
|
||||
@@ -114,6 +116,14 @@ public interface AVMStore
|
||||
*/
|
||||
public InputStream getInputStream(int version, String path);
|
||||
|
||||
/**
|
||||
* Get a ContentReader from a file.
|
||||
* @param version The version to look under.
|
||||
* @param path The path to the file.
|
||||
* @return A ContentReader
|
||||
*/
|
||||
public ContentReader getContentReader(int version, String path);
|
||||
|
||||
/**
|
||||
* Get a listing of the designated directory.
|
||||
* @param version The version to look under.
|
||||
@@ -149,6 +159,13 @@ public interface AVMStore
|
||||
*/
|
||||
public OutputStream getOutputStream(String path);
|
||||
|
||||
/**
|
||||
* Get a ContentWriter to a file.
|
||||
* @param path The path to the file.
|
||||
* @return A ContentWriter.
|
||||
*/
|
||||
public ContentWriter createContentWriter(String path);
|
||||
|
||||
/**
|
||||
* Remove a node and all of its contents.
|
||||
* @param path The path to the node's parent directory.
|
||||
|
Reference in New Issue
Block a user