@StableMinor(version="7.1", 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/data) folder.
|
DEF
Indicates the path is relative to the portal definition (lumisdata/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)
Calculates the absolute path from a relative path to this base folder.
|
String |
getRelativePath(String absolutePath)
Calculates the relative path to this base folder from the given
absolute 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
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 nullpublic String getAbsolutePath(String relativePath)
getAbsolutePath
in interface IPortalBaseFolder
relativePath
- the relative path.public String getRelativePath(String absolutePath)
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.Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.