AnsweredAssumed Answered

How to download a file from Repository through java?

Question asked by v317173 on Jun 15, 2010
Latest reply on Jun 16, 2010 by gyro.gearless
I am using alfresco to act as a file transfer hub between various application.
Now I want to customize an action which can ftp or copy the file to a target location outside of alfresco (it should a physical folder on OS level, not an alfresco virtual drive)
So I extend the class: ActionExecuterAbstractBase
I check the source:
http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/source/java/org/alfresco/repo/action/executer/ExporterActionExecuter.java
There is a method: public void executeImpl(Action ruleAction, NodeRef actionedUponNodeRef){ }
But I don't know how to use this Action and NodeRef to read file from repository.

Anyone can give a hint how to read file from alfresco repository? I just need to read a file from repository and store it locally.

Outcomes