@StableMinor(version="12.4", sinceVersion="4.1") public enum PortalBaseFolder extends Enum<PortalBaseFolder> implements IPortalBaseFolder
Enum Constant and Description |
---|
DATA
Indicates the path is relative to the portal data (lumisdata/shared/data) folder.
|
DEF
Indicates the path is relative to the portal definition (lumisdata/shared/def) folder.
|
SERVER_BASE_SOURCE_PATH
Indicates the path is relative to the portal base source folder.
|
WWW
Deprecated.
Since 6.2.0,
replaced by
IWebsite.getWebRootBaseFolder()
due to the inclusion of multiple websites, and consequently, multiple
web roots.
For best compatibility, this enumeration value refers to the default website's web root folder. If there is no default website, it will cause an exception when converting the paths. |
Modifier and Type | Method and Description |
---|---|
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. 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. The new filesystem API is highly recommended to be used
instead. |
PortalFilePath |
toPortalFilePath(String relativePath)
Returns a new
PortalFilePath using this base folder and the given relative path. |
static PortalBaseFolder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortalBaseFolder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
equals, getClass, notify, notifyAll, toString, wait, wait, wait
equals, toString
@Deprecated public static final PortalBaseFolder WWW
IWebsite.getWebRootBaseFolder()
due to the inclusion of multiple websites, and consequently, multiple
web roots.
For best compatibility, this enumeration value refers to the default website's web root folder. If there is no default website, it will cause an exception when converting the paths.
public static final PortalBaseFolder DATA
public static final PortalBaseFolder DEF
public static final PortalBaseFolder SERVER_BASE_SOURCE_PATH
ServerConfiguration.getBaseSourcePath()
. If it is not defined,
use lumisData
instead.public static PortalBaseFolder[] values()
for (PortalBaseFolder c : PortalBaseFolder.values()) System.out.println(c);
public static PortalBaseFolder valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Deprecated public 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. The new filesystem
API is highly recommended to be used
instead.getAbsolutePath
in interface IPortalBaseFolder
relativePath
- the relative path.@Deprecated public 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. The new filesystem
API is highly recommended to be used
instead.getRelativePath
in interface IPortalBaseFolder
absolutePath
- the absolute path.IllegalArgumentException
- if the given absolute path is invalid
or does not belongs to this base folder area.public PortalFilePath toPortalFilePath(String relativePath)
PortalFilePath
using this base folder and the given relative path.relativePath
- the relative path.PortalFilePath
using this base folder and the given relative path.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.