|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.taverna.publish.AbstractRepository
public abstract class AbstractRepository
This class provides base-level functionality for repositories. Last edited by $Author: sowen70 $
| Constructor Summary | |
|---|---|
AbstractRepository()
|
|
| Method Summary | |
|---|---|
void |
delete(org.apache.commons.vfs.FileObject[] filelist)
This method deletes a list of files from the repository. |
java.lang.String |
getBaseURL()
This method sets the base URL for the repository. |
org.apache.commons.vfs.FileObject[] |
getFileList()
This method gets all files |
org.apache.commons.vfs.FileObject[] |
getFileList(org.apache.commons.vfs.FileObject startingDir,
org.apache.commons.vfs.FileSelector selector,
boolean searchRecursively)
This method returns a list a files that have been filtered |
org.apache.commons.vfs.FileSystem |
getFileSystem()
Constructor |
org.apache.commons.vfs.FileSystemManager |
getFsManager()
This method gets the file system manager. |
java.lang.String |
getName()
This method gets the name of the Repository. |
org.apache.commons.vfs.FileObject |
getRoot()
This method returns the FileObject corresponding to the baseURL. |
abstract void |
publish(org.apache.commons.vfs.FileObject[] filelist,
org.apache.commons.vfs.FileObject startingDir)
This method publishes a list of files, to selected directory. |
org.apache.commons.vfs.FileObject[] |
searchByFileName(org.apache.commons.vfs.FileObject startingDir,
java.lang.String regex,
boolean srchRecursively)
This method searches the repository for a file whose |
org.apache.commons.vfs.FileObject[] |
searchByWorkFlowAuthor(org.apache.commons.vfs.FileObject root,
java.lang.String authorName,
boolean srchRecursively)
This method searches for workflows whose author is specified by a |
org.apache.commons.vfs.FileObject[] |
searchByWorkFlowDescription(org.apache.commons.vfs.FileObject startingDir,
java.lang.String regex,
boolean srchRecursively)
|
void |
setBaseURL(java.lang.String baseURL)
This method sets the base URL for the repository |
void |
setFileSystem(org.apache.commons.vfs.FileSystem fileSystem)
This method sets the file system. |
void |
setFsManager(org.apache.commons.vfs.FileSystemManager fsManager)
This method sets the file system manager. |
void |
setName(java.lang.String name)
This method sets the name of the Repository. |
void |
setRoot(org.apache.commons.vfs.FileObject root)
This method sets the root of the repository. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRepository()
| Method Detail |
|---|
public org.apache.commons.vfs.FileSystem getFileSystem()
public void setFileSystem(org.apache.commons.vfs.FileSystem fileSystem)
fileSystem - public java.lang.String getBaseURL()
Repository
getBaseURL in interface RepositoryRepository.getBaseURL()public void setBaseURL(java.lang.String baseURL)
Repository
setBaseURL in interface RepositoryRepository.setBaseURL(java.lang.String)public java.lang.String getName()
Repository
getName in interface RepositoryRepository.getName()public void setName(java.lang.String name)
Repository
setName in interface RepositoryRepository.setName(java.lang.String)
public abstract void publish(org.apache.commons.vfs.FileObject[] filelist,
org.apache.commons.vfs.FileObject startingDir)
throws PublicationException
Repository
publish in interface Repositoryfilelist - 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.
PublicationExceptionnet.sourceforge.taverna.publish.Repository#publish(java.io.File[],
java.io.File)public org.apache.commons.vfs.FileSystemManager getFsManager()
public void setFsManager(org.apache.commons.vfs.FileSystemManager fsManager)
fsManager - public org.apache.commons.vfs.FileObject getRoot()
Repository
getRoot in interface RepositoryRepository.getRoot()public void setRoot(org.apache.commons.vfs.FileObject root)
root -
public org.apache.commons.vfs.FileObject[] getFileList(org.apache.commons.vfs.FileObject startingDir,
org.apache.commons.vfs.FileSelector selector,
boolean searchRecursively)
startingDir - filter - searchRecursively -
public org.apache.commons.vfs.FileObject[] getFileList()
public org.apache.commons.vfs.FileObject[] searchByFileName(org.apache.commons.vfs.FileObject startingDir,
java.lang.String regex,
boolean srchRecursively)
Repository
searchByFileName in interface RepositorystartingDir - The directory from which to start the search. This should
default to "/" the root directory.regex - A regular expression that can be applied to each file.srchRecursively - Indicates whether subdirectories should also be searched for
files that match the regular expression
net.sourceforge.taverna.publish.Repository#searchByFileName(java.io.File,
java.lang.String, boolean)
public org.apache.commons.vfs.FileObject[] searchByWorkFlowDescription(org.apache.commons.vfs.FileObject startingDir,
java.lang.String regex,
boolean srchRecursively)
searchByWorkFlowDescription in interface RepositorystartingDir - The directory from which to start the search. This should
default to "/" the root directory.regex - A regular expression that can be applied to each file.srchRecursively - Indicates whether subdirectories should also be searched for
files that match the regular expression
net.sourceforge.taverna.publish.Repository#searchByWorkFlowDescription(java.io.File,
java.lang.String, boolean)
public org.apache.commons.vfs.FileObject[] searchByWorkFlowAuthor(org.apache.commons.vfs.FileObject root,
java.lang.String authorName,
boolean srchRecursively)
Repository
searchByWorkFlowAuthor in interface Repositoryroot - The directory from which to start the search. This should
default to "/" the root directory.srchRecursively - Indicates whether subdirectories should also be searched for
files that match the regular expression
net.sourceforge.taverna.publish.Repository#searchByWorkFlowAuthor(java.io.File[],
java.lang.String, boolean)
public void delete(org.apache.commons.vfs.FileObject[] filelist)
throws PublicationException
Repository
delete in interface RepositoryPublicationExceptionnet.sourceforge.taverna.publish.Repository#delete(java.io.File[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||