|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.util.vfs.LocalImpl
org.olat.core.util.vfs.LocalFolderImpl
public class LocalFolderImpl
Description:
VFSContainer implementation that is based on a java.io.File from a local
filesystem. It implements a regular directory
Initial Date: 23.06.2005
| Constructor Summary | |
|---|---|
LocalFolderImpl(java.io.File folderFile)
Constructor |
|
| Method Summary | |
|---|---|
VFSStatus |
canWrite()
|
VFSStatus |
copyFrom(VFSItem source)
copy either a file or a folder to this folder. |
VFSContainer |
createChildContainer(java.lang.String name)
Create a new child container (of same type) if possible. |
VFSLeaf |
createChildLeaf(java.lang.String name)
Create a new leaf (of same type) if possible, |
VFSStatus |
delete()
deltes the item. |
VFSItemFilter |
getDefaultItemFilter()
|
java.util.List<VFSItem> |
getItems()
|
java.util.List<VFSItem> |
getItems(VFSItemFilter filter)
|
VFSStatus |
rename(java.lang.String newname)
|
VFSItem |
resolve(java.lang.String path)
a relative path. |
void |
setDefaultItemFilter(VFSItemFilter defaultFilter)
Set a default filter that will be applied to this container getItems method |
java.lang.String |
toString()
|
| Methods inherited from class org.olat.core.util.vfs.LocalImpl |
|---|
canCopy, canDelete, canRename, getBasefile, getLastModified, getLocalSecurityCallback, getName, getParentContainer, isSame, setLocalSecurityCallback, setParentContainer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.olat.core.util.vfs.VFSItem |
|---|
canCopy, canDelete, canRename, getLastModified, getLocalSecurityCallback, getName, getParentContainer, isSame, setLocalSecurityCallback, setParentContainer |
| Constructor Detail |
|---|
public LocalFolderImpl(java.io.File folderFile)
folderFile - The real file of type directory wrapped by this VFSContainer| Method Detail |
|---|
public java.util.List<VFSItem> getItems()
getItems in interface VFSContainerVFSContainer.getItems()public java.util.List<VFSItem> getItems(VFSItemFilter filter)
getItems in interface VFSContainerVFSContainer.getItems(org.olat.core.util.vfs.filters.VFSItemFilter)public void setDefaultItemFilter(VFSItemFilter defaultFilter)
VFSContainer
setDefaultItemFilter in interface VFSContainerVFSContainer.setDefaultItemFilter(org.olat.core.util.vfs.filters.VFSItemFilter)public VFSStatus copyFrom(VFSItem source)
VFSContainer
copyFrom in interface VFSContainersource - the source (must exist)
VFSContainer.copyFrom(org.olat.core.util.vfs.VFSItem)public VFSStatus canWrite()
canWrite in interface VFSItemcanWrite in class LocalImplVFSItem.canWrite()public VFSStatus rename(java.lang.String newname)
rename in interface VFSItemrename in class LocalImplnewname - e.g test.txt or myfolder (no path prepended)
VFSItem.rename(java.lang.String)public VFSStatus delete()
VFSItem
delete in interface VFSItemdelete in class LocalImplVFSItem.delete()public VFSItem resolve(java.lang.String path)
VFSItem
resolve in interface VFSItemorg.olat.core.util.vfs.VFSItem#resolveFile(java.lang.String)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public VFSContainer createChildContainer(java.lang.String name)
VFSContainer
createChildContainer in interface VFSContainerVFSContainer.createChildContainer(java.lang.String)public VFSLeaf createChildLeaf(java.lang.String name)
VFSContainer
createChildLeaf in interface VFSContainerVFSContainer.createChildLeaf(java.lang.String)public VFSItemFilter getDefaultItemFilter()
getDefaultItemFilter in interface VFSContainerVFSContainer.getDefaultItemFilter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||