Class NativeFileSystemFactory

    • Field Detail

      • DEFAULT_USERS_HOME

        public static final java.lang.String DEFAULT_USERS_HOME
        See Also:
        Constant Field Values
      • createHome

        private boolean createHome
      • usersHomeDir

        private java.lang.String usersHomeDir
    • Constructor Detail

      • NativeFileSystemFactory

        public NativeFileSystemFactory()
      • NativeFileSystemFactory

        public NativeFileSystemFactory​(boolean createHome)
    • Method Detail

      • getUsersHomeDir

        public java.lang.String getUsersHomeDir()
        Returns:
        The root location where users home is to be created - never null/empty.
      • setUsersHomeDir

        public void setUsersHomeDir​(java.lang.String usersHomeDir)
        Set the root location where users home is to be created
        Parameters:
        usersHomeDir - The root location where users home is to be created - never null/empty.
        See Also:
        isCreateHome()
      • isCreateHome

        public boolean isCreateHome()
        Should the home directories be created automatically
        Returns:
        true if the file system will create the home directory if not available
      • setCreateHome

        public void setCreateHome​(boolean createHome)
        Set if the home directories be created automatically
        Parameters:
        createHome - true if the file system should create the home directory automatically if not available
        See Also:
        getUsersHomeDir()
      • createFileSystem

        public java.nio.file.FileSystem createFileSystem​(Session session)
                                                  throws java.io.IOException
        Description copied from interface: FileSystemFactory
        Create user specific file system.
        Specified by:
        createFileSystem in interface FileSystemFactory
        Parameters:
        session - The session created for the user
        Returns:
        The current FileSystem for the provided session
        Throws:
        java.io.IOException - if the filesystem can not be created