Package lumis.portal.filesystem
Interface IFileSystemManager
-
- All Known Implementing Classes:
FileSystemManager
@StableMinor(version="17.0", sinceVersion="4.1") public interface IFileSystemManager
Provides operations for manipulating the file system.- Since:
- 4.1.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
copyFile(PortalFile source, PortalFile destination)
Deprecated.since 8.0.0 replaced byIFile.copyTo(IFile)
.IFile
getFile(PortalFilePath portalFilePath)
Returns theIFile
to perform operations in portal known files.void
writeFile(PortalFile file, byte[] content)
Deprecated.since 8.0.0 replaced byIFile.getOutputStream()
.void
writeFile(PortalFile file, java.io.InputStream content)
Deprecated.since 8.0.0 replaced byIFile.getOutputStream()
.
-
-
-
Method Detail
-
writeFile
@Deprecated void writeFile(PortalFile file, byte[] content) throws java.io.IOException
Deprecated.since 8.0.0 replaced byIFile.getOutputStream()
.Writes content in the specified file. The change is replicated across the cluster.- Parameters:
file
- the file to write. If it already exists it is overwritten.content
- the content.- Throws:
java.io.IOException
- Since:
- 4.1.0
-
writeFile
@Deprecated void writeFile(PortalFile file, java.io.InputStream content) throws java.io.IOException
Deprecated.since 8.0.0 replaced byIFile.getOutputStream()
.Writes content in the specified file. The change is replicated across the cluster.- Parameters:
file
- the file to write. If it already exists it is overwritten.content
- the content.- Throws:
java.io.IOException
- Since:
- 4.1.0
-
copyFile
@Deprecated void copyFile(PortalFile source, PortalFile destination) throws java.io.IOException
Deprecated.since 8.0.0 replaced byIFile.copyTo(IFile)
.Performs a file copy. The copy operation is repeated across the cluster.- Parameters:
source
- the source file.destination
- the destination file. If it already exists it is overwritten.- Throws:
java.io.IOException
- Since:
- 4.1.0
-
getFile
IFile getFile(PortalFilePath portalFilePath)
Returns theIFile
to perform operations in portal known files.- Parameters:
portalFilePath
- thePortalFilePath
that represents the desired file.- Returns:
- the
IFile
to perform operations in portal known files. - Throws:
java.lang.IllegalArgumentException
- ifportalFilePath
isnull
.- Since:
- 8.0.0
- See Also:
lumis.portal.filesystem
-
-