@StableMinor(version="12.3", sinceVersion="6.2") public interface IPortalBaseFolder extends Serializable
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.
PortalFilePath
,
PortalBaseFolder
,
IWebsite.getWebRootBaseFolder()
Modifier and Type | Method and 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. Every file
operation should use the
IFile interface, that can be
obtained from
IFileSystemManager.getFile(PortalFilePath) .
The direct
usage of Java file API can produce
unpredictable portal behavior, when not using the
LumisPortal default filesystem implementations. The new
filesystem API is highly
recommended to be used instead. |
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 the
IFile interface, that can be
obtained from
IFileSystemManager.getFile(PortalFilePath) .
The direct
usage of Java file API can produce
unpredictable portal behavior, when not using the
LumisPortal default filesystem implementations. The new
filesystem API is highly
recommended to be used instead. |
String |
toString()
A string for display purposes that identifies this base folder.
|
@Deprecated String getAbsolutePath(String relativePath)
IFile
interface, that can be
obtained from
IFileSystemManager.getFile(PortalFilePath)
.
The direct
usage of Java file API can produce
unpredictable portal behavior, when not using the
LumisPortal default filesystem implementations. The new
filesystem
API is highly
recommended to be used instead.relativePath
- the relative path.@Deprecated String getRelativePath(String absolutePath)
IFile
interface, that can be
obtained from
IFileSystemManager.getFile(PortalFilePath)
.
The direct
usage of Java file API can produce
unpredictable portal behavior, when not using the
LumisPortal default filesystem implementations. The new
filesystem
API is highly
recommended to be used instead.absolutePath
- the absolute path.IllegalArgumentException
- if the given absolute path is invalid or does not belongs to
this base folder area.boolean equals(Object obj)
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.
String toString()
In special, PortalFilePath
uses this string to create its
own toString
, in the form: [base folder]:/[relative path]
.
This method should return a value that keeps that form friendly.
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.