Class FileSystemManager

  • All Implemented Interfaces:
    IFileSystemManager

    public class FileSystemManager
    extends java.lang.Object
    implements IFileSystemManager
    Implementation of the file system manager.
    Since:
    4.1.0
    Version:
    $Revision: 23103 $ $Date: 2019-09-03 12:45:21 -0300 (Tue, 03 Sep 2019) $
    • Constructor Detail

      • FileSystemManager

        public FileSystemManager()
    • Method Detail

      • writeFile

        @Deprecated
        public void writeFile​(PortalFile file,
                              byte[] content)
                       throws java.io.IOException
        Deprecated.
        Description copied from interface: IFileSystemManager
        Writes content in the specified file. The change is replicated across the cluster.
        Specified by:
        writeFile in interface IFileSystemManager
        Parameters:
        file - the file to write. If it already exists it is overwritten.
        content - the content.
        Throws:
        java.io.IOException
      • writeFile

        @Deprecated
        public void writeFile​(PortalFile file,
                              java.io.InputStream content)
                       throws java.io.IOException
        Deprecated.
        Description copied from interface: IFileSystemManager
        Writes content in the specified file. The change is replicated across the cluster.
        Specified by:
        writeFile in interface IFileSystemManager
        Parameters:
        file - the file to write. If it already exists it is overwritten.
        content - the content.
        Throws:
        java.io.IOException
      • copyFile

        @Deprecated
        public void copyFile​(PortalFile source,
                             PortalFile destination)
                      throws java.io.IOException
        Deprecated.
        Description copied from interface: IFileSystemManager
        Performs a file copy. The copy operation is repeated across the cluster.
        Specified by:
        copyFile in interface IFileSystemManager
        Parameters:
        source - the source file.
        destination - the destination file. If it already exists it is overwritten.
        Throws:
        java.io.IOException
      • initFileSystem

        public static void initFileSystem()
        Initializes the file system.
        Since:
        8.0.0
      • isInitialized

        public static boolean isInitialized()
        Returns whether the file system is initialized.
        Returns:
        whether the file system is initialized.
        Since:
        8.0.0