net.sourceforge.taverna.publish.local
Class LocalRepository

java.lang.Object
  extended by net.sourceforge.taverna.publish.AbstractRepository
      extended by net.sourceforge.taverna.publish.local.LocalRepository
All Implemented Interfaces:
Repository

public class LocalRepository
extends AbstractRepository
implements Repository

This class provides a local file system implementation of the repository. Last edited by $Author: sowen70 $

Version:
$Revision: 1.3 $
Author:
Mark

Constructor Summary
LocalRepository(java.lang.String rootFileUrl)
          Constructor
 
Method Summary
 void publish(org.apache.commons.vfs.FileObject[] filelist, org.apache.commons.vfs.FileObject startingDir)
          This method publishes a list of files, to selected directory.
 
Methods inherited from class net.sourceforge.taverna.publish.AbstractRepository
delete, getBaseURL, getFileList, getFileList, getFileSystem, getFsManager, getName, getRoot, searchByFileName, searchByWorkFlowAuthor, searchByWorkFlowDescription, setBaseURL, setFileSystem, setFsManager, setName, setRoot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.taverna.publish.Repository
delete, getBaseURL, getName, getRoot, searchByFileName, searchByWorkFlowAuthor, searchByWorkFlowDescription, setBaseURL, setName
 

Constructor Detail

LocalRepository

public LocalRepository(java.lang.String rootFileUrl)
Constructor

Parameters:
rootFileUrl - The root directory of the repository.
Method Detail

publish

public void publish(org.apache.commons.vfs.FileObject[] filelist,
                    org.apache.commons.vfs.FileObject startingDir)
             throws PublicationException
Description copied from interface: Repository
This method publishes a list of files, to selected directory. If the directory is null, the filelist will be published to the root of the repository.

Specified by:
publish in interface Repository
Specified by:
publish in class AbstractRepository
Parameters:
filelist - The list of files to be written.
startingDir - The directory in which to deposit the files. This directory is relative to the repository root directory.
Throws:
PublicationException
See Also:
Repository.publish(org.apache.commons.vfs.FileObject[], org.apache.commons.vfs.FileObject)