|
||||||||||
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,
ClientState clientState)
|
Topic |
createChildFolderTopic(long folderTopicId,
String path,
ClientState clientState)
|
Topic |
createFileTopic(String path,
ClientState clientState)
Creates a File topic for a given path. |
void |
createFolder(String folderName,
String path)
|
Topic |
createFolderTopic(String path,
ClientState clientState)
Creates a Folder topic for a given 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 its 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,
ClientState clientState)
|
Method Detail |
---|
Topic createFileTopic(String path, ClientState clientState)
Topic createFolderTopic(String path, ClientState clientState)
Topic createChildFileTopic(long folderTopicId, String path, ClientState clientState)
Topic createChildFolderTopic(long folderTopicId, String path, ClientState clientState)
StoredFile storeFile(UploadedFile file, String path, ClientState clientState)
path
- The directory where to store the file. Relative to the file repository root path.
Must begin with slash ('/'), no slash at the end.
The directory must exist.void createFolder(String folderName, String path)
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 file repository 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 |