Package lumis.portal.filesystem
Interface IPortalBaseFolder
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
IWebRootPortalBaseFolder
,IWebRootPortalBaseFolderSPI
- All Known Implementing Classes:
AbstractPortalBaseFolder
,LocalDataFilePortalBaseFolder
,PortalBaseFolder
@StableMinor(version="14.1", sinceVersion="6.2") public interface IPortalBaseFolder extends Serializable
A portal base folder represents a logical folder known to the portal. It provides operations to convert between relative (logical) and absolute (real) paths for resource inside the structure represented by it.A portal base folder implementation must be serializable in such way that after being transferred between LumisXP instances, it resolves to the equivalent files in the new instance.
- Since:
- 6.2.0
- Version:
- $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
- See Also:
PortalFilePath
,PortalBaseFolder
,IWebsite.getWebRootBaseFolder()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
Indicates whether this base folder is equivalent to the given base folder.String
getAbsolutePath(String relativePath)
Deprecated.since 8.0.0 it is not recommended to be used anymore due to the filesystem abstraction layer.String
getRelativePath(String absolutePath)
Deprecated.since 8.0.0 it is not recommended to be used anymore due to the filesystem abstraction layer.String
toString()
A string for display purposes that identifies this base folder.
-
-
-
Method Detail
-
getAbsolutePath
@Deprecated String getAbsolutePath(String relativePath)
Deprecated.since 8.0.0 it is not recommended to be used anymore due to the filesystem abstraction layer. Every file operation should use theIFile
interface, that can be obtained fromIFileSystemManager.getFile(PortalFilePath)
. The direct usage of Java file API can produce unpredictable portal behavior, when not using the LumisPortal default filesystem implementations. The newfilesystem
API is highly recommended to be used instead.Calculates the absolute path from a relative path to this base folder.- Parameters:
relativePath
- the relative path.- Returns:
- the absolute path.
- Since:
- 6.2.0
-
getRelativePath
@Deprecated String getRelativePath(String absolutePath)
Deprecated.since 8.0.0 it is not recommended to be used anymore due to the filesystem abstraction layer. Every file operation should use theIFile
interface, that can be obtained fromIFileSystemManager.getFile(PortalFilePath)
. The direct usage of Java file API can produce unpredictable portal behavior, when not using the LumisPortal default filesystem implementations. The newfilesystem
API is highly recommended to be used instead.Calculates the relative path to this base folder for the given absolute path.- Parameters:
absolutePath
- the absolute path.- Returns:
- the calculated relative path, relative to this base folder.
- Throws:
IllegalArgumentException
- if the given absolute path is invalid or does not belongs to this base folder area.- Since:
- 6.2.0
-
equals
boolean equals(Object obj)
Indicates whether this base folder is equivalent to the given base folder.Equivalent base folders represent the same real folder and semantics. Two equivalent base folders have the same results on its conversions between absolute and relative paths. But it is possible to two base folders to resolve its conversions the same way, but not be considered equivalent, if they do not share the same semantics.
-
toString
String toString()
A string for display purposes that identifies this base folder.In special,
PortalFilePath
uses this string to create its owntoString
, in the form:[base folder]:/[relative path]
. This method should return a value that keeps that form friendly.
-
-