|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vinculumtech.platform.repository.RepositoryHandler
The RepositoryHandler abstract class provides a basic file management interface.
Field Summary | |
static java.lang.String |
REPOSITORY_HANDLER
|
static java.lang.String |
REPOSITORY_HANDLER_CLASS
|
Constructor Summary | |
RepositoryHandler()
|
Method Summary | |
abstract void |
deleteFile(java.lang.String[] path,
java.lang.String filename)
Removes the given file from the repository. |
void |
deleteFile(java.lang.String path,
java.lang.String filename)
Removes the given file from the repository. |
abstract java.io.File |
getFile(java.lang.String[] path,
java.lang.String filename)
Returns a File referenced by the given filename and path. |
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. |
abstract 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. |
abstract java.util.List |
getFolderList(java.lang.String[] path)
Returns a List of strings representing all the folders in the given repository path or folder. |
static RepositoryHandler |
getHandler(java.util.Properties properties)
Returns the singleton registered RepositoryHandler sub-class. |
abstract java.io.File |
getRootDirectory()
Returns the root directory used by this RepositoryHandler instance. |
protected static boolean |
isEmpty(java.lang.String string)
|
static java.lang.String |
makePath(java.lang.String[] pathArray)
Collapses the given path array into a String. |
static java.lang.String |
makePath(java.lang.String[] pathArray,
java.lang.String delim)
Collapses the given path array into a String. |
static java.lang.String[] |
makePathArray(java.lang.String path)
Breaks the given path into a path array. |
static java.lang.String[] |
makePathArray(java.lang.String path,
java.lang.String delim)
Breaks the given path into a path array. |
abstract 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. |
abstract 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. |
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. |
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 REPOSITORY_HANDLER
public static final java.lang.String REPOSITORY_HANDLER_CLASS
Constructor Detail |
public RepositoryHandler()
Method Detail |
public static RepositoryHandler getHandler(java.util.Properties properties)
properties
-
public abstract java.io.File getRootDirectory() throws RepositoryException
RepositoryException
public abstract java.io.File getFile(java.lang.String[] path, java.lang.String filename) throws RepositoryException
path
- filename
-
RepositoryException
public java.io.File getFile(java.lang.String path, java.lang.String filename) throws RepositoryException
path
- filename
-
RepositoryException
public abstract java.util.List getFileList(java.lang.String[] path) throws RepositoryException
path
-
RepositoryException
public java.util.List getFileList(java.lang.String path) throws RepositoryException
path
-
RepositoryException
public abstract java.util.List getFolderList(java.lang.String[] path) throws RepositoryException
path
-
RepositoryException
public java.util.List getFolderList(java.lang.String path) throws RepositoryException
path
-
RepositoryException
public abstract void putFile(java.io.File file, java.lang.String[] path, java.lang.String filename, java.lang.String contentType) throws RepositoryException
file
- path
- filename
- contentType
- the mimetype sent of the file
RepositoryException
public abstract void putFile(java.io.File file, java.lang.String[] path, java.lang.String filename, java.lang.String contentType, boolean deleteOriginal) throws RepositoryException
file
- path
- filename
- contentType
- deleteOriginal
- 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) throws RepositoryException
file
- path
- filename
- contentType
-
RepositoryException
public abstract void deleteFile(java.lang.String[] path, java.lang.String filename) throws RepositoryException
path
- filename
-
RepositoryException
public void deleteFile(java.lang.String path, java.lang.String filename) throws RepositoryException
path
- filename
-
RepositoryException
protected static boolean isEmpty(java.lang.String string)
public static java.lang.String makePath(java.lang.String[] pathArray)
pathArray
-
public static java.lang.String makePath(java.lang.String[] pathArray, java.lang.String delim)
pathArray
- delim
-
public static java.lang.String[] makePathArray(java.lang.String path)
path
-
public static java.lang.String[] makePathArray(java.lang.String path, java.lang.String delim)
path
- delim
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |