mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added accessors for node history. Added those to console.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3135 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -42,6 +42,13 @@ public interface AVMService
|
||||
*/
|
||||
public InputStream getFileInputStream(int version, String path);
|
||||
|
||||
/**
|
||||
* Get an input stream from a particular version of a file.
|
||||
* @param desc The node descriptor pointing at the node.
|
||||
* @return The InputStream.
|
||||
*/
|
||||
public InputStream getFileInputStream(AVMNodeDescriptor desc);
|
||||
|
||||
/**
|
||||
* Get an output stream to a file node. The file must already exist.
|
||||
* @param path The simple absolute path to the file node.
|
||||
@@ -248,4 +255,12 @@ public interface AVMService
|
||||
* @param path The full path.
|
||||
*/
|
||||
public void makePrimary(String path);
|
||||
|
||||
/**
|
||||
* Get a list of all the ancestor versions of a node.
|
||||
* @param desc The version of a node to find ancestors for.
|
||||
* @param count How many. -1 means all.
|
||||
* @return A List of ancestors starting with the most recent.
|
||||
*/
|
||||
public List<AVMNodeDescriptor> getHistory(AVMNodeDescriptor desc, int count);
|
||||
}
|
||||
|
Reference in New Issue
Block a user