|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.platform.repository.RepositoryHandler com.vinculumtech.platform.repository.fs.FSRepositoryHandler
The FSRepository class is an implementation of the RepositoryHandler class.
This class provides a simple file system based repository implementation.
The repository root can be set with the PATH_ROOT
property.
Field Summary | |
static java.lang.String |
PATH_ROOT
|
protected java.lang.String |
pathRoot
|
Fields inherited from class com.vinculumtech.platform.repository.RepositoryHandler |
REPOSITORY_HANDLER, REPOSITORY_HANDLER_CLASS |
Constructor Summary | |
FSRepositoryHandler(java.util.Properties properties)
|
Method Summary | |
void |
deleteFile(java.lang.String[] path,
java.lang.String filename)
Removes the given file from the repository. |
java.io.File |
getFile(java.lang.String[] path,
java.lang.String filename)
Returns a File referenced by the given filename and path. |
java.util.List |
getFileList(java.lang.String[] path)
Returns a List of strings representing all the files in the given repository path or folder. |
java.util.List |
getFolderList(java.lang.String[] path)
Returns a List of strings representing all the folders in the given repository path or folder. |
java.io.File |
getRootDirectory()
Returns the root directory used by this RepositoryHandler instance. |
protected java.lang.String |
makeLocalPath(java.lang.String[] path)
|
void |
putFile(java.io.File file,
java.lang.String[] path,
java.lang.String filename,
java.lang.String contentType)
Puts the file referenced by the given File instance into the repository under the given path and named to the given filename. |
void |
putFile(java.io.File file,
java.lang.String[] path,
java.lang.String filename,
java.lang.String contentType,
boolean deleteOriginal)
Puts the file referenced by the given File instance into the repository under the given path and named to the given filename. |
Methods inherited from class com.vinculumtech.platform.repository.RepositoryHandler |
deleteFile, getFile, getFileList, getFolderList, getHandler, isEmpty, makePath, makePath, makePathArray, makePathArray, putFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PATH_ROOT
protected java.lang.String pathRoot
Constructor Detail |
public FSRepositoryHandler(java.util.Properties properties)
Method Detail |
public java.io.File getRootDirectory() throws RepositoryException
RepositoryHandler
getRootDirectory
in class RepositoryHandler
RepositoryException
public java.io.File getFile(java.lang.String[] path, java.lang.String filename) throws RepositoryException
RepositoryHandler
getFile
in class RepositoryHandler
path
- filename
-
RepositoryException
public java.util.List getFileList(java.lang.String[] path)
RepositoryHandler
getFileList
in class RepositoryHandler
path
-
public java.util.List getFolderList(java.lang.String[] path)
RepositoryHandler
getFolderList
in class RepositoryHandler
path
-
public void putFile(java.io.File file, java.lang.String[] path, java.lang.String filename, java.lang.String contentType) throws RepositoryException
RepositoryHandler
putFile
in class RepositoryHandler
file
- path
- filename
- contentType
- the mimetype sent of the file
RepositoryException
public void putFile(java.io.File file, java.lang.String[] path, java.lang.String filename, java.lang.String contentType, boolean deleteOriginal) throws RepositoryException
RepositoryHandler
putFile
in class RepositoryHandler
file
- path
- filename
- contentType
- deleteOriginal
- the mimetype sent of the file
RepositoryException
public void deleteFile(java.lang.String[] path, java.lang.String filename) throws RepositoryException
RepositoryHandler
deleteFile
in class RepositoryHandler
path
- filename
-
RepositoryException
protected java.lang.String makeLocalPath(java.lang.String[] path)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |