|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BrowsingAdapter
defines the interface for BrowsingAdapters, which are a bridge
between file stores and the FileBrowser.
| Method Summary | |
|---|---|
java.util.List<? extends DirectoryDescriptor> |
getChildDirectories(DirectoryDescriptor d, User u)
returns the child directories of the DirectoryDescriptor. |
DirectoryDescriptor |
getDirectoryDescriptor(java.net.URI dirUri, User user)
returns a DirectoryDescriptor for the given URI
. |
FileDescriptor |
getFileDescriptor(java.net.URI fileUri, User user)
returns a FileDescriptor for the given URI. |
java.util.List<? extends FileDescriptor> |
getFiles(DirectoryDescriptor d, User u)
returns the files of the DirectoryDescriptor. |
java.util.List<? extends DirectoryDescriptor> |
getRootDirectories(User u)
returns the root directories of the BrowsingAdapter. |
void |
setBaseURI(java.net.URI uri)
sets the base URI for the adapter. |
| Method Detail |
|---|
void setBaseURI(java.net.URI uri)
URI for the adapter.
The base URI can be used as a "jail root" to restrict access to a specified part of the file store.
uri - the base URI
java.util.List<? extends DirectoryDescriptor> getRootDirectories(User u)
throws java.io.IOException
BrowsingAdapter.
u - the User used for access
BrowsingAdapter
java.io.IOException - on I/O errorsjava.util.List<? extends DirectoryDescriptor> getChildDirectories(DirectoryDescriptor d, User u)
DirectoryDescriptor.
d - the DirectoryDescriptoru - the User used for access
DirectoryDescriptorjava.util.List<? extends FileDescriptor> getFiles(DirectoryDescriptor d, User u)
DirectoryDescriptor.
d - the DirectoryDescriptoru - the User used for access
DirectoryDescriptorDirectoryDescriptor getDirectoryDescriptor(java.net.URI dirUri, User user)
DirectoryDescriptor for the given URI
.
dirUri - the URIuser - the User used for access
DirectoryDescriptor for the given URI
, or null, if either the URI does not
denote a directory, the URI does not exist or the
URI is not below the base path.FileDescriptor getFileDescriptor(java.net.URI fileUri, User user)
FileDescriptor for the given URI.
fileUri - the URIuser - the User used for access
FileDescriptor for the given URI, or
null, if either the URI does not denote
a file, the URI does not exist or the
URI is not below the base path.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||