org.olat.core.commons.modules.bc.vfs
Class OlatRootFolderImpl

java.lang.Object
  extended by org.olat.core.util.vfs.LocalImpl
      extended by org.olat.core.util.vfs.LocalFolderImpl
          extended by org.olat.core.commons.modules.bc.vfs.OlatRootFolderImpl
All Implemented Interfaces:
MetaTagged, OlatRelPathImpl, VFSContainer, VFSItem

public class OlatRootFolderImpl
extends LocalFolderImpl
implements OlatRelPathImpl, MetaTagged


Constructor Summary
OlatRootFolderImpl(java.lang.String folderRelPath, VFSContainer parent)
           
 
Method Summary
 VFSContainer createChildContainer(java.lang.String name)
          Wrapp all LocalImpls to OlatRootImpls
 VFSLeaf createChildLeaf(java.lang.String name)
          Wrapp all LocalImpls to OlatRootImpls
 java.util.List<VFSItem> getItems()
          Wrapp all LocalImpls to OlatRootImpls
 java.util.List<VFSItem> getItems(VFSItemFilter filter)
           
 MetaInfo getMetaInfo()
           
 java.lang.String getRelPath()
           
 
Methods inherited from class org.olat.core.util.vfs.LocalFolderImpl
canWrite, copyFrom, delete, getDefaultItemFilter, rename, resolve, setDefaultItemFilter, 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

OlatRootFolderImpl

public OlatRootFolderImpl(java.lang.String folderRelPath,
                          VFSContainer parent)
Method Detail

createChildContainer

public VFSContainer createChildContainer(java.lang.String name)
Wrapp all LocalImpls to OlatRootImpls

Specified by:
createChildContainer in interface VFSContainer
Overrides:
createChildContainer in class LocalFolderImpl
Returns:
VFSItem if successfull, null otherwise.
See Also:
VFSContainer.createChildContainer(java.lang.String)

createChildLeaf

public VFSLeaf createChildLeaf(java.lang.String name)
Wrapp all LocalImpls to OlatRootImpls

Specified by:
createChildLeaf in interface VFSContainer
Overrides:
createChildLeaf in class LocalFolderImpl
Returns:
VFSItem if successfull, null otherwise.
See Also:
VFSContainer.createChildLeaf(java.lang.String)

getItems

public java.util.List<VFSItem> getItems()
Wrapp all LocalImpls to OlatRootImpls

Specified by:
getItems in interface VFSContainer
Overrides:
getItems in class LocalFolderImpl
Returns:
a list of VFSItem containing
See Also:
VFSContainer.getItems()

getItems

public java.util.List<VFSItem> getItems(VFSItemFilter filter)
Specified by:
getItems in interface VFSContainer
Overrides:
getItems in class LocalFolderImpl
Returns:
a list of VFSItem which are accepted by the given filter. If a default filter is set, the default filter will be applied in addition to the given filter in this method
See Also:
LocalFolderImpl.getItems(org.olat.core.util.vfs.filters.VFSItemFilter)

getRelPath

public java.lang.String getRelPath()
Specified by:
getRelPath in interface OlatRelPathImpl
See Also:
OlatRelPathImpl.getRelPath()

getMetaInfo

public MetaInfo getMetaInfo()
Specified by:
getMetaInfo in interface MetaTagged
Returns:
The MetaInfo object
See Also:
MetaTagged.getMetaInfo()