|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FilesService
Method Summary | |
---|---|
Topic |
createChildFileTopic(long folderTopicId,
String path)
|
Topic |
createChildFolderTopic(long folderTopicId,
String path)
|
Topic |
createFile(InputStream in,
String path)
Creates a file in the file repository, and creates a corresponding File topic. |
Topic |
createFileTopic(String path)
Creates and returns a File topic representing the file at a given repository path. |
void |
createFolder(String folderName,
String path)
Creates a folder in the file repository. |
Topic |
createFolderTopic(String path)
Creates and returns a Folder topic representing the folder at a given repository path. |
DirectoryListing |
getDirectoryListing(String path)
|
File |
getFile(long fileTopicId)
Accesses a file/directory in the file repository that is represented by the given File/Folder topic. |
File |
getFile(String path)
Accesses a file/directory in the file repository by the given repository path. |
String |
getRepositoryPath(URL url)
Checks if the given URL refers to the file repository of this DeepaMehta installation. |
ResourceInfo |
getResourceInfo(String path)
|
void |
openFile(long fileTopicId)
|
StoredFile |
storeFile(UploadedFile file,
String path)
Receives an uploaded file, stores it in the file repository, and creates a corresponding File topic. |
Method Detail |
---|
Topic createFileTopic(String path)
path
- A repository path. Relative to the repository base path.
Must begin with slash, no slash at the end.Topic createFolderTopic(String path)
path
- A repository path. Relative to the repository base path.
Must begin with slash, no slash at the end.Topic createChildFileTopic(long folderTopicId, String path)
Topic createChildFolderTopic(long folderTopicId, String path)
StoredFile storeFile(UploadedFile file, String path)
path
- The directory where to store the uploaded file.
A repository path. Relative to the repository base path.
Must begin with slash, no slash at the end.
The directory must exist.
Topic createFile(InputStream in, String path)
in
- The input stream the file content is read from.path
- The path and filename of the file to be created.
A repository path. Relative to the repository base path.
Must begin with slash, no slash at the end.
If that file exists already it is overwritten. ### TODO: rethink overwriting
void createFolder(String folderName, String path)
path
- The directory where to create the folder.
A repository path. Relative to the repository base path.
Must begin with slash, no slash at the end.ResourceInfo getResourceInfo(String path)
DirectoryListing getDirectoryListing(String path)
String getRepositoryPath(URL url)
null
if the URL
does not refer to the file repository of this DeepaMehta installation.File getFile(String path)
path
- A repository path. Relative to the repository base path.
Must begin with slash, no slash at the end.File getFile(long fileTopicId)
void openFile(long fileTopicId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |