|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.vfs.filebrowser.AbstractDescriptor
org.torweg.pulse.vfs.filebrowser.VFSDirectoryDescriptor
public class VFSDirectoryDescriptor
is a DirectoryDescriptor for directories in the
VirtualFileSystem.
| Nested Class Summary | |
|---|---|
static class |
VFSDirectoryDescriptor.FileBrowserActions
contains the different actions of the FileBrowser as
constants. |
| Constructor Summary | |
|---|---|
protected |
VFSDirectoryDescriptor()
Default constructor. |
|
VFSDirectoryDescriptor(VirtualFile f)
builds a new VFSDirectoryDescriptor for the given directory. |
| Method Summary | |
|---|---|
Command |
buildListDirectoriesCommand(Command template, User u,
int i)
builds a Command which lists the child
DirectoryDescriptors of the DirectoryDescriptor
. |
Command |
buildListFilesCommand(Command template, User u,
int i)
builds a Command which lists the child
FileDescriptors of the DirectoryDescriptor. |
int |
compareTo(DirectoryDescriptor f)
compares the name of the given DirectoryDescriptor with the
name of the DirectoryDescriptor. |
org.jdom.Element |
deserializeToJDOM()
deserialises the descriptor. |
boolean |
equals(java.lang.Object o)
|
java.util.List<VFSDirectoryDescriptor> |
getChildren(User u)
returns the child directories of the DirectoryDescriptor. |
VirtualFile |
getDir()
returns the VirtualFile of the
DirectoryDescriptor. |
java.util.List<VFSFileDescriptor> |
getFiles(User u)
returns the files of the DirectoryDescriptor. |
java.lang.String |
getName()
returns the name of the directory. |
java.net.URI |
getURI()
returns the URI for the DirectoryDescriptor. |
int |
hashCode()
|
net.sf.json.JSONObject |
toJSON()
returns a JSON-representation of the VFSDirectoryDescriptor. |
| Methods inherited from class org.torweg.pulse.vfs.filebrowser.AbstractDescriptor |
|---|
getServiceRequest, insertVirtualFileInformation, setServiceRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.torweg.pulse.vfs.filebrowser.DirectoryDescriptor |
|---|
setServiceRequest |
| Constructor Detail |
|---|
protected VFSDirectoryDescriptor()
public VFSDirectoryDescriptor(VirtualFile f)
VFSDirectoryDescriptor for the given directory.
f - the directory| Method Detail |
|---|
public final java.util.List<VFSDirectoryDescriptor> getChildren(User u)
throws java.io.IOException
DirectoryDescriptor.
getChildren in interface DirectoryDescriptoru - the user who is accessing the directory
DirectoryDescriptor
java.io.IOException - on I/O errorsDirectoryDescriptor.getChildren(User)
public final java.util.List<VFSFileDescriptor> getFiles(User u)
throws java.io.IOException
DirectoryDescriptor.
getFiles in interface DirectoryDescriptoru - the user who is accessing the directory
DirectoryDescriptor
java.io.IOException - on I/O errorsDirectoryDescriptor.getFiles(User)public final org.jdom.Element deserializeToJDOM()
deserializeToJDOM in interface JDOMable
public final Command buildListDirectoriesCommand(Command template, User u,
int i)
Command which lists the child
DirectoryDescriptors of the DirectoryDescriptor
.
buildListDirectoriesCommand in interface DirectoryDescriptortemplate - the Command to be used as a templateu - the User to be used for access checksi - the id of the BrowsingAdapter
Command which lists the child
DirectoryDescriptors of the
DirectoryDescriptor or null, if
User.hasAllowanceFor(Command) returns falseCommand
public final Command buildListFilesCommand(Command template, User u,
int i)
Command which lists the child
FileDescriptors of the DirectoryDescriptor.
buildListFilesCommand in interface DirectoryDescriptortemplate - the Command to be used as a templateu - the User to be used for access checksi - the id of the BrowsingAdapter
Command which lists the child
FileDescriptors of the
DirectoryDescriptor or null, if
User.hasAllowanceFor(Command) returns falseCommandpublic final java.lang.String getName()
getName in interface INamedgetName in interface DirectoryDescriptorpublic final java.net.URI getURI()
URI for the DirectoryDescriptor.
getURI in interface DirectoryDescriptorURI for the DirectoryDescriptorpublic VirtualFile getDir()
VirtualFile of the
DirectoryDescriptor.
getDir in interface DirectoryDescriptorVirtualFile of the
DirectoryDescriptorpublic final int compareTo(DirectoryDescriptor f)
DirectoryDescriptor with the
name of the DirectoryDescriptor.
compareTo in interface java.lang.Comparable<DirectoryDescriptor>f - the DirectoryDescriptor to compare with
public final boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare to
true, if the directory names match in lower case.public final int hashCode()
hashCode in class java.lang.ObjectVFSDirectoryDescriptorObject.hashCode()public final net.sf.json.JSONObject toJSON()
VFSDirectoryDescriptor.
toJSON in interface DirectoryDescriptorVFSDirectoryDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||