mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added a method to AVMService and its dependent services to get an InputStream
directly from a node descriptor. It's a minor optimization for a few use scenarios. It's also convenient for accessing content of historical file versions directly. Another CLT, to list the versions of a store. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4496 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -97,9 +97,9 @@ public class AVMRemoteLocal implements AVMRemote
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.avm.AVMRemote#createSnapshot(java.lang.String)
|
||||
*/
|
||||
public int createSnapshot(String store)
|
||||
public int createSnapshot(String store, String label, String comment)
|
||||
{
|
||||
return fService.createSnapshot(store, null, null);
|
||||
return fService.createSnapshot(store, label, comment);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
@@ -219,6 +219,14 @@ public class AVMRemoteLocal implements AVMRemote
|
||||
return fService.getFileInputStream(version, path);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.avm.AVMRemote#getFileInputStream(org.alfresco.service.cmr.avm.AVMNodeDescriptor)
|
||||
*/
|
||||
public InputStream getFileInputStream(AVMNodeDescriptor desc)
|
||||
{
|
||||
return fService.getFileInputStream(desc);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.repo.avm.AVMRemote#getFileOutputStream(java.lang.String)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user