Package lumis.portal.filesystem
Class FileSystemManager
- java.lang.Object
-
- lumis.portal.filesystem.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 Summary
Constructors Constructor Description FileSystemManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
copyFile(PortalFile source, PortalFile destination)
Deprecated.IFile
getFile(PortalFilePath portalFilePath)
Returns theIFile
to perform operations in portal known files.static void
initFileSystem()
Initializes the file system.static boolean
isInitialized()
Returns whether the file system is initialized.void
writeFile(PortalFile file, byte[] content)
Deprecated.void
writeFile(PortalFile file, java.io.InputStream content)
Deprecated.
-
-
-
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 interfaceIFileSystemManager
- 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 interfaceIFileSystemManager
- 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 interfaceIFileSystemManager
- Parameters:
source
- the source file.destination
- the destination file. If it already exists it is overwritten.- Throws:
java.io.IOException
-
getFile
public IFile getFile(PortalFilePath portalFilePath)
Description copied from interface:IFileSystemManager
Returns theIFile
to perform operations in portal known files.- Specified by:
getFile
in interfaceIFileSystemManager
- Parameters:
portalFilePath
- thePortalFilePath
that represents the desired file.- Returns:
- the
IFile
to perform operations in portal known files. - See Also:
lumis.portal.filesystem
-
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
-
-