Package lumis.portal.filesystem

LumisXP provides a comprehensive file system API to abstract a virtual file system available on all portal servers on the same cluster.

The portal known files are those files that belong to some specific folders controlled by the LumisPortal.
These folders are abstracted by the IPortalBaseFolder interface.
A portal file is denoted by:

  1. A portal base folder
  2. A string that is the relative path of the file
By doing this the portal can easily identify a given file in any cluster server, even if the LumisPortal install path vary from server to server. The PortalFilePath class is the abstraction of these information.

The usage of portal known files must be performed through this API. The direct file manipulation could corrupt the portal file system.

The usage of this API provides the following advantages:

  • Events corresponding to the changes in the file system are raised.
  • Changes in the portal file system are reflected on other servers throughout the cluster.
  • The file system implementation is abstracted and may be easily changed without loss of functionality.

The entry points for this package are:

How the portal known files are persisted can be configured on the portal environment configuration. If it is desired to implement your own way of file persistence this can be done by implementing IFileSystem. It is important to notice, though, that file system implementations are not loaded from platform's classloader. They must be present in web application's classloader instead.

Since:
4.1.0
Version:
$Revision: 23103 $ $Date: 2019-09-03 12:45:21 -0300 (Tue, 03 Sep 2019) $
See Also:
ManagerFactory.getFileSystemManager(), IFileSystemManager, PortalFilePath, IFile