public class NativeFileSystemFactory extends AbstractLoggingBean implements FileSystemFactory
| Modifier and Type | Field and Description |
|---|---|
private boolean |
createHome |
static java.lang.String |
DEFAULT_USERS_HOME |
static NativeFileSystemFactory |
INSTANCE |
private java.lang.String |
usersHomeDir |
log| Constructor and Description |
|---|
NativeFileSystemFactory() |
NativeFileSystemFactory(boolean createHome) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.FileSystem |
createFileSystem(Session session)
Create user specific file system.
|
java.lang.String |
getUsersHomeDir() |
boolean |
isCreateHome()
Should the home directories be created automatically
|
void |
setCreateHome(boolean createHome)
Set if the home directories be created automatically
|
void |
setUsersHomeDir(java.lang.String usersHomeDir)
Set the root location where users home is to be created
|
getSimplifiedLoggerpublic static final java.lang.String DEFAULT_USERS_HOME
public static final NativeFileSystemFactory INSTANCE
private boolean createHome
private java.lang.String usersHomeDir
public NativeFileSystemFactory()
public NativeFileSystemFactory(boolean createHome)
public java.lang.String getUsersHomeDir()
null/empty.public void setUsersHomeDir(java.lang.String usersHomeDir)
usersHomeDir - The root location where users home is to be created - never null/empty.isCreateHome()public boolean isCreateHome()
true if the file system will create the home directory if not availablepublic void setCreateHome(boolean createHome)
createHome - true if the file system should create the home directory
automatically if not availablegetUsersHomeDir()public java.nio.file.FileSystem createFileSystem(Session session) throws java.io.IOException
FileSystemFactorycreateFileSystem in interface FileSystemFactorysession - The session created for the userFileSystem for the provided sessionjava.io.IOException - if the filesystem can not be created