|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.loom.persistence.file.ExternalFileManager
public class ExternalFileManager
Stores file data in a database table, and file contents in a configured system folder.
| Constructor Summary | |
|---|---|
ExternalFileManager()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
PersistentFile |
find(java.lang.Integer id)
|
java.io.File |
getContainingFolder(int id)
|
protected java.io.File |
getFileLocation(PersistentFile file)
Return the file location of a persistent file. |
int |
getMaxFilesPerFolder()
|
java.io.File |
getRootFolder()
|
PersistentFile |
merge(FileParameter parameter)
Stores a file in the database and return the persistent instance |
PersistentFile |
merge(PersistentFile file)
Stores a file in the database and return the persistent instance |
PersistentFile |
remove(java.lang.Integer id)
Removes a persistent file from the database |
void |
setEntityManager(ExtendedEntityManager entityManager)
|
void |
setMaxFilesPerFolder(int maxFilesPerFolder)
|
void |
setRootFolder(java.io.File rootFolder)
|
void |
setRootFolderLocation(java.lang.String location)
|
void |
setStorageRoot(java.lang.String storageRoot)
Deprecated. use setRootFolderLocation() instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExternalFileManager()
| Method Detail |
|---|
@PostConstruct
public void afterPropertiesSet()
throws java.lang.Exception
java.lang.Exception@Transactional public PersistentFile merge(FileParameter parameter)
FileManager
merge in interface FileManagerparameter - the uploaded parameter file
@Transactional public PersistentFile merge(PersistentFile file)
FileManager
merge in interface FileManagerfile - the modified file to store
protected java.io.File getFileLocation(PersistentFile file)
public java.io.File getContainingFolder(int id)
public PersistentFile find(java.lang.Integer id)
find in interface FileManagerid - the persistent file id
@Transactional public PersistentFile remove(java.lang.Integer id)
FileManager
remove in interface FileManagerid - the file id to remove
public void setStorageRoot(java.lang.String storageRoot)
public void setRootFolderLocation(java.lang.String location)
public void setEntityManager(ExtendedEntityManager entityManager)
public java.io.File getRootFolder()
public void setRootFolder(java.io.File rootFolder)
public int getMaxFilesPerFolder()
public void setMaxFilesPerFolder(int maxFilesPerFolder)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||