public class VirtualFileFactory extends Object implements AbstractFileFactory<VirtualFile>
Modifier and Type | Field and Description |
---|---|
protected boolean |
cached |
protected VirtualMountTemplate |
homeMountTemplate |
protected List<VirtualMountTemplate> |
mountTemplates |
Constructor and Description |
---|
VirtualFileFactory(AbstractFileFactory<?> defaultFileFactory) |
VirtualFileFactory(VirtualMountTemplate homeMount,
VirtualMountTemplate... additionalMounts) |
Modifier and Type | Method and Description |
---|---|
void |
addMountTemplate(VirtualMountTemplate virtualMount) |
AbstractFileFactory<?> |
getDefaultFileFactory() |
VirtualFile |
getDefaultPath(Connection con) |
VirtualFile |
getFile(String path,
Connection con) |
VirtualMountTemplate |
getHomeMountTemplate() |
VirtualMountManager |
getMountManager(Connection con) |
void |
init(AbstractFileHomeFactory homeFactory) |
void |
init(String defaultPath) |
boolean |
isCached() |
Event |
populateEvent(Event evt) |
void |
setCached(boolean cached) |
protected List<VirtualMountTemplate> mountTemplates
protected VirtualMountTemplate homeMountTemplate
protected boolean cached
public VirtualFileFactory(AbstractFileFactory<?> defaultFileFactory)
public VirtualFileFactory(VirtualMountTemplate homeMount, VirtualMountTemplate... additionalMounts)
public boolean isCached()
public void setCached(boolean cached)
public VirtualFile getFile(String path, Connection con) throws PermissionDeniedException, IOException
getFile
in interface AbstractFileFactory<VirtualFile>
PermissionDeniedException
IOException
public VirtualMountTemplate getHomeMountTemplate()
public VirtualMountManager getMountManager(Connection con) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
public AbstractFileFactory<?> getDefaultFileFactory()
public void addMountTemplate(VirtualMountTemplate virtualMount)
public void init(String defaultPath) throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
public Event populateEvent(Event evt)
populateEvent
in interface AbstractFileFactory<VirtualFile>
public VirtualFile getDefaultPath(Connection con) throws PermissionDeniedException, IOException
getDefaultPath
in interface AbstractFileFactory<VirtualFile>
PermissionDeniedException
IOException
public void init(AbstractFileHomeFactory homeFactory)
Copyright © 2024. All rights reserved.