|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.util.vfs.NamedLeaf
public class NamedLeaf
Initial Date: 30.05.2007
| Constructor Summary | |
|---|---|
NamedLeaf(java.lang.String name,
VFSLeaf delegate)
Constructor |
|
| Method Summary | |
|---|---|
VFSStatus |
canCopy()
|
VFSStatus |
canDelete()
|
VFSStatus |
canRename()
|
VFSStatus |
canWrite()
|
VFSStatus |
delete()
deltes the item. |
java.io.InputStream |
getInputStream()
|
long |
getLastModified()
Return the last modified date of this item or -1 if not available. |
VFSSecurityCallback |
getLocalSecurityCallback()
Get the local security callback for this item. |
java.lang.String |
getName()
|
java.io.OutputStream |
getOutputStream(boolean append)
|
VFSContainer |
getParentContainer()
Get the parent of this vfsItem. |
long |
getSize()
|
boolean |
isSame(VFSItem vfsItem)
Test if this is the same item as ourselves. |
VFSStatus |
rename(java.lang.String newname)
|
VFSItem |
resolve(java.lang.String path)
a relative path. |
void |
setLocalSecurityCallback(VFSSecurityCallback secCallback)
Set a custom security callback for this item. |
void |
setParentContainer(VFSContainer parentContainer)
Sets the parent container. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedLeaf(java.lang.String name,
VFSLeaf delegate)
name - Name under which the leaf should appeardelegate - The delegate leaf| Method Detail |
|---|
public java.io.InputStream getInputStream()
getInputStream in interface VFSLeafVFSLeaf.getInputStream()public java.io.OutputStream getOutputStream(boolean append)
getOutputStream in interface VFSLeafVFSLeaf.getOutputStream(boolean)public long getSize()
getSize in interface VFSLeafVFSLeaf.getSize()public VFSStatus canCopy()
canCopy in interface VFSItemVFSItem.canCopy()public VFSStatus canDelete()
canDelete in interface VFSItemVFSItem.canDelete()public VFSStatus canRename()
canRename in interface VFSItemVFSItem.canRename()public VFSStatus canWrite()
canWrite in interface VFSItemVFSItem.canWrite()public VFSStatus delete()
VFSItem
delete in interface VFSItemVFSItem.delete()public long getLastModified()
VFSItem
getLastModified in interface VFSItemVFSItem.getLastModified()public VFSSecurityCallback getLocalSecurityCallback()
VFSItem
getLocalSecurityCallback in interface VFSItemVFSItem.getLocalSecurityCallback()public java.lang.String getName()
getName in interface VFSItemVFSItem.getName()public VFSContainer getParentContainer()
VFSItem
getParentContainer in interface VFSItemVFSItem.getParentContainer()public boolean isSame(VFSItem vfsItem)
VFSItem
isSame in interface VFSItemVFSItem.isSame(org.olat.core.util.vfs.VFSItem)public VFSStatus rename(java.lang.String newname)
rename in interface VFSItemnewname - e.g test.txt or myfolder (no path prepended)
VFSItem.rename(java.lang.String)public VFSItem resolve(java.lang.String path)
VFSItem
resolve in interface VFSItemVFSItem.resolve(java.lang.String)public void setLocalSecurityCallback(VFSSecurityCallback secCallback)
VFSItem
setLocalSecurityCallback in interface VFSItemVFSItem.setLocalSecurityCallback(org.olat.core.util.vfs.callbacks.VFSSecurityCallback)public void setParentContainer(VFSContainer parentContainer)
VFSItem
setParentContainer in interface VFSItemVFSItem.setParentContainer(org.olat.core.util.vfs.VFSContainer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||